-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If this plugin is enabled and you try to import a worker like so:
const worker = new Worker(new URL('./worker.js', import.meta.url));It will compile completely fine, but it appears that this plugin completely removes the worker when attempting to inline the scripts. This leads to a 404 in the console as the page loads, because there is no file worker.js. I think ideally this plugin would transparently inline all worker scripts asset/source-style then load them as Blobs somehow, but I don't know how feasible that is.
Environment and package version
Webpack 5.60.0, html-webpack-plugin 5.5.0, html-inline-script-webpack-plugin 2.0.2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working