-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It should be possible to apply a pre/pitching loader to all files that transforms import.meta.url to __filename. This would allow correct Worker URL creation (solving #31) using URL:
const url = new URL('./my-worker.js', import.meta.url);
const worker = new Worker(url, { type: 'module' });I believe Webpack's simple partial evaluation should be enough to consider this a "static" URL under the current logic.
oppenheimj, SeonHyungJo and ipavelleds
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request