Skip to content
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

Support for {Shared)Workers? #17

Open
pusewicz opened this issue Jun 21, 2021 · 2 comments
Open

Support for {Shared)Workers? #17

pusewicz opened this issue Jun 21, 2021 · 2 comments

Comments

@pusewicz
Copy link

Hi!

I've got this kind of code:

const workerUrl = new URL('./worker.js', import.meta.url)

and unfortunately it does not get detected and hashed. How would I go around making this happen?

@TylorS
Copy link
Owner

TylorS commented Jun 24, 2021

Hey @pusewicz, sorry things aren't quite working as expected. At present, I haven't added support for URL but it does seem like something that should be possible and desirable, it'll probably be similar to service worker support.

Side thought: I'm starting to think we should have the ability to customize more without making changes directly to this library.

@pusewicz
Copy link
Author

FWIW, I've added a custom plugin for snowpack that does the search and replace manually by looking at the manifest file, as the worker file does get hashed. Feel free to close this issue if you don't feel like spending time on it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants