webpack 5 and including worker js files in package

Currently I have a package (lets call it package A) that uses Webpack 5. Package A uses a worker. I am using the new Webpack 5 built in worker loader. I can clearly see that the file is being generated and is placed in Package A build directory.

However when I include package A as a dependency of package B the Javascript file that is used by the worker is not imported in to the build directory of the project B.



Read more here: https://stackoverflow.com/questions/66993772/webpack-5-and-including-worker-js-files-in-package

Content Attribution

This content was originally published by ZNackasha at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: