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 {
10
10
ThreadsWorkerOptions ,
11
11
WorkerImplementation
12
12
} 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" )
15
19
16
20
interface WorkerGlobalScope {
17
21
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