remove solc require which is causing issues with browserify

pull/7/head
Iuri Matias 6 years ago
parent ef01fe2580
commit 257541e8b2
  1. 7
      remix-solidity/src/compiler/compiler.js

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

Loading…
Cancel
Save