File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " workerize-loader" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 1.2 .0" ,
4
4
"description" : " Automatically move a module into a Web Worker (Webpack loader)" ,
5
5
"main" : " dist/index.js" ,
6
6
"repository" : " developit/workerize-loader" ,
35
35
"devDependencies" : {
36
36
"eslint" : " ^6.8.0" ,
37
37
"eslint-config-developit" : " ^1.1.1" ,
38
- "karmatic" : " ^1.3.1 " ,
39
- "microbundle" : " ^ 0.12.0-next.8" ,
38
+ "karmatic" : " ^1.4.0 " ,
39
+ "microbundle" : " 0.12.0-next.8" ,
40
40
"webpack" : " ^4.39.2"
41
41
},
42
42
"dependencies" : {
Original file line number Diff line number Diff line change @@ -63,22 +63,23 @@ loader.pitch = function(request) {
63
63
if ( this . target !== 'webworker' && this . target !== 'web' ) {
64
64
( new NodeTargetPlugin ( ) ) . apply ( worker . compiler ) ;
65
65
}
66
-
66
+
67
67
// webpack >= v4 supports webassembly
68
68
let wasmPluginPath = null ;
69
69
try {
70
70
wasmPluginPath = require . resolve (
71
- 'webpack/lib/web/FetchCompileWasmTemplatePlugin'
71
+ 'webpack/lib/web/FetchCompileWasmTemplatePlugin'
72
72
) ;
73
- } catch ( _err ) {
73
+ }
74
+ catch ( _err ) {
74
75
// webpack <= v3, skipping
75
76
}
76
77
77
78
if ( wasmPluginPath ) {
78
- // eslint-disable-next-line global-require, import/no-dynamic-require
79
+ // eslint-disable-next-line global-require
79
80
const FetchCompileWasmTemplatePlugin = require ( wasmPluginPath ) ;
80
81
new FetchCompileWasmTemplatePlugin ( {
81
- mangleImports : this . _compiler . options . optimization . mangleWasmImports ,
82
+ mangleImports : this . _compiler . options . optimization . mangleWasmImports
82
83
} ) . apply ( worker . compiler ) ;
83
84
}
84
85
You can’t perform that action at this time.
0 commit comments