You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone wants to open a PR that copies compiler.options.external to the ChildCompiler instance that should fix the Webpack error here.
Personally I'm not sure externals in the Worker compiler actually make sense: any values declared as external are unlikely to be available in the Worker context. Generally they're values defined by other scripts on the main thread, and those aren't automatically run in a Worker too.
Perhaps I'm not thinking about this correctly though, if anyone has a bit more detail on what they're wanting this for I'm all ears!
Awesome library! I've just found an edge case when workerizing a module that depends on a webpack external.
In my webpack config i have:
and in my worker module I have:
I'm using typescript in case that matters.
Here's the compilation error from webpack:
The text was updated successfully, but these errors were encountered: