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 () {
if (worker === null) {
var compiler
if (typeof (window) === 'undefined') {
compiler = require('solc')
} else {
compiler = solc(window.Module)
}
var compiler = solc(window.Module)
compileJSON = function (source, optimize, cb) {
var missingInputs = []

Loading…
Cancel
Save