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

This reverts commit dd1824f3ff.
pull/5370/head
Iuri Matias 6 years ago
parent 89e8211a5d
commit b7c14f70dc
  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