|
|
|
@ -126,10 +126,11 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts: |
|
|
|
|
async.waterfall([ |
|
|
|
|
function loadCompiler(next) { |
|
|
|
|
compiler = new RemixCompiler() |
|
|
|
|
if(compilerConfig) { |
|
|
|
|
const {currentCompilerUrl, evmVersion, optimize, runs} = compilerConfig |
|
|
|
|
evmVersion ? compiler.set('evmVersion', evmVersion) : |
|
|
|
|
optimize ? compiler.set('optimize', optimize) : |
|
|
|
|
runs ? compiler.set('runs', runs) : '' |
|
|
|
|
evmVersion ? compiler.set('evmVersion', evmVersion) : null |
|
|
|
|
optimize ? compiler.set('optimize', optimize) : null |
|
|
|
|
runs ? compiler.set('runs', runs) : null |
|
|
|
|
if(currentCompilerUrl) { |
|
|
|
|
compiler.loadRemoteVersion(currentCompilerUrl) |
|
|
|
|
compiler.event.register('compilerLoaded', this, function (version) { |
|
|
|
@ -139,6 +140,10 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts: |
|
|
|
|
compiler.onInternalCompilerLoaded() |
|
|
|
|
next() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
compiler.onInternalCompilerLoaded() |
|
|
|
|
next() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
function doCompilation(next) { |
|
|
|
|
// @ts-ignore
|
|
|
|
|