File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ import {
1010 ThreadsWorkerOptions ,
1111 WorkerImplementation
1212} from "../types/master"
13- import { isWebpack , requireFunction } from "../webpack-hack"
14- export declare const __non_webpack_require__ : typeof require
13+
14+ // TODO remove webpack hacks. These hurt the performance for non-web-pack situations
15+ // Webpack hack
16+ declare const __non_webpack_require__ : typeof require
17+ const isWebpack = typeof __non_webpack_require__ === "function"
18+ const requireFunction : typeof require = isWebpack ? __non_webpack_require__ : eval ( "require" )
1519
1620interface WorkerGlobalScope {
1721 addEventListener ( eventName : string , listener : ( event : Event ) => void ) : void
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments