Dll From Web Worker
#13237
Replies: 1 comment 8 replies
-
Yes, there is the problem what |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have trouble using a dll (I mean the output of a webpack build with the DllPlugin) from a web worker. I put up a repository with the simplest setup I could figure out that reproduces the error: https://github.com/acransac/issue-webpack-dll-from-web-worker.
In summary: I have two entries "dll.js" and "app.js". I build the first one with the DllPlugin in a dedicated configuration. The second entry uses the dll (via DllReferencePlugin) in the main thread and starts a web worker that uses the same dll. The dll export is found in the main thread but from the worker I get the "dll is not defined" error.
Would someone take a look at my setup in the above repository and point me to configuration mistakes or possible work-arounds?
Thanks for your help, should you need to know something more I will answer.
PS: I use Webpack 5.35.1
Beta Was this translation helpful? Give feedback.
All reactions