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

WASM: Only use import.meta.url in fallback scenario #410

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

nicksrandall
Copy link
Contributor

I'm currently using this in a "classic" (not module) worker and import.meta.url is not defined which is breaking the call to the URL constructor, which I don't even use because I send in the path the WASM module manually.

This change uses import.meta.url and the URL constructor only in the fallback case when a user doesn't pass in a custom url.

I'm currently using this in a "classic" (not module) worker and `import.meta.url` is not defined which is breaking the call to the `URL` constructor, which I don't even use because I send in the path the WASM module manually. 

This change uses `import.meta.url` and the `URL` constructor only in the fallback case when a user doesn't pass in a custom url.
@devongovett devongovett merged commit 7c28ec2 into parcel-bundler:master Feb 3, 2023
@devongovett
Copy link
Member

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

Successfully merging this pull request may close these issues.

None yet

2 participants