From 257541e8b2630c58bd3204301f3eca4cd0fc9fa8 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 26 Jul 2018 07:19:04 -0400 Subject: [PATCH] remove solc require which is causing issues with browserify --- remix-solidity/src/compiler/compiler.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/remix-solidity/src/compiler/compiler.js b/remix-solidity/src/compiler/compiler.js index 4238cb6a0f..eb0e423610 100644 --- a/remix-solidity/src/compiler/compiler.js +++ b/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 = []