-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying URL in web worker chunk #16
Comments
Hi @sushain97! Thanks for discovering and reporting that issue! EDIT: Seems like the plugin doesn't support webworkers use case, I will need to implement it. I will keep you posted, prob won't take long |
Awesome! Thank you for investigating (and taking up the enhancement). FTR, my resolved Webpack version is |
@sushain97 Can you please share your webpack config |
@sushain97 That was an interesting problem! Would appreciate if you try to use
and follow the instructions https://github.com/agoldis/webpack-require-from/tree/next#web-worker Although I've validated the feature and implemented a test, I'd like to make sure it is clear how to use the pluging and support your use case. There's also a working example https://github.com/agoldis/webpack-require-from/tree/next/example I am waiting for your feedback regarding:
|
The solution works for me and the documentation looks good as well! The only note I have is that since Thanks for your fast (and great) work! |
Great, I will roll out a new npm release later this week |
I'm running to issues with an inline web worker with a dynamic import not being intercepted by this library. Since inline web workers are blobs and therefore need an absolute URL to successfully import scripts, I'm attempting to use this library to fix-up the URL.
e.g.
inside a web worker becomes something like
which calls into
Unfortunately, this isn't prepending the
path
it should be per the config below since it never actually results in the code below being called.(For now, I've used a hardcoded
path
to see if I could get it minimally working. In practice, it would be a variable that is set similar to the advice in https://stackoverflow.com/a/22582695/1266600.)Am I misunderstanding how something works or perhaps the intent of this library?
The text was updated successfully, but these errors were encountered: