worker-plugin icon indicating copy to clipboard operation
worker-plugin copied to clipboard

👩‍🏭 Adds native Web Worker bundling support to Webpack.

Results 27 worker-plugin issues
Sort by recently updated
recently updated
newest added

Using vue (2.6.12) with webpack (5.32.0), when using workerPlugin, I get this error: ``` Module parse failed: parser.state.module.addPresentationalDependency is not a function File was processed with these loaders: * ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js...

For some reason, I can't import anything on my worker file. `SyntaxError: import declarations may only appear at top level of a module` I have this simple worker: ``` import...

![image](https://user-images.githubusercontent.com/20624744/75960528-28a62200-5efb-11ea-9045-371b93b7cf6c.png)

help wanted
needs more info

I tried to publish 3rd party script with webpack and `worker-plugin`. ``` https://cdn.example.com/main.js

enhancement

Using Webpack 5 beta 25 (latest as of today) and worker plugin 5.0.0. Initially reported at https://github.com/GoogleChromeLabs/worker-plugin/pull/84#issuecomment-657003936 but realized should have opened an issue. ``` TypeError: ParserHelpers.addParsedVariableToModule is not a...

I assume this is a side-effect of Angular's use of this plugin, but I can see how this could affect other setups. **Reproduction Steps** 1/ Clone test repo - https://github.com/xenobytezero/worker-plugin-nested-bug.git...

Understood if this is off-topic, and feel free to close, but I was just wondering if you'd considered compatibility with Node.js worker_threads here at all? It seems like the sort...

enhancement
help wanted

Hi there. When I include your plugin in my webpack.config.js file and run build I get a Javascript heap out of memory exception. When I provide the --max_old_space_size argument and...

needs more info

this error occurs: ``` bash [1] (node:27264) UnhandledPromiseRejectionWarning: TypeError: entries[0].files.values is not a function [1] at xxx/node_modules/worker-plugin/dist/loader.js:86:59 [1] at compile (xxx/node_modules/webpack/lib/Compiler.js:343:11) [1] at hooks.afterCompile.callAsync.err (xxx/node_modules/webpack/lib/Compiler.js:681:15) [1] at AsyncSeriesHook.eval [as callAsync]...

I get an deprecation warning when using this plugin with webpack 5.42.0: ``` [DEP_WEBPACK_COMPILATION_CACHE] DeprecationWarning: Compilation.cache was removed in favor of Compilation.getCache() ``` `compilation.cache` seems to be used multiple times...