Revert "remove solc require which is causing issues with browserify"

This reverts commit 257541e8b2.
pull/7/head
Iuri Matias 7 years ago
parent 9ac8b7861a
commit ba46fd3b51
  1. 7
      remix-solidity/src/compiler/compiler.js

@ -72,7 +72,12 @@ function Compiler (handleImportCall) {
function onInternalCompilerLoaded () {
if (worker === null) {
var compiler = solc(window.Module)
var compiler
if (typeof (window) === 'undefined') {
compiler = require('solc')
} else {
compiler = solc(window.Module)
}
compileJSON = function (source, optimize, cb) {
var missingInputs = []

Loading…
Cancel
Save