|
|
@ -1,7 +1,7 @@ |
|
|
|
'use strict' |
|
|
|
'use strict' |
|
|
|
|
|
|
|
|
|
|
|
import { update } from 'solc/abi' |
|
|
|
import { update } from 'solc/abi' |
|
|
|
import webworkify from 'webworkify' |
|
|
|
import * as webworkify from 'webworkify-webpack' |
|
|
|
import compilerInput from './compiler-input' |
|
|
|
import compilerInput from './compiler-input' |
|
|
|
import { EventManager } from '@remix-project/remix-lib' |
|
|
|
import { EventManager } from '@remix-project/remix-lib' |
|
|
|
import { default as txHelper } from './txHelper'; |
|
|
|
import { default as txHelper } from './txHelper'; |
|
|
@ -211,7 +211,7 @@ export class Compiler { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
loadWorker (url: string): void { |
|
|
|
loadWorker (url: string): void { |
|
|
|
this.state.worker = webworkify(require('./compiler-worker').default) |
|
|
|
this.state.worker = webworkify(require.resolve('./compiler-worker.js')) |
|
|
|
const jobs: Record<'sources', SourceWithTarget> [] = [] |
|
|
|
const jobs: Record<'sources', SourceWithTarget> [] = [] |
|
|
|
|
|
|
|
|
|
|
|
this.state.worker.addEventListener('message', (msg: Record <'data', MessageFromWorker>) => { |
|
|
|
this.state.worker.addEventListener('message', (msg: Record <'data', MessageFromWorker>) => { |
|
|
|