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

Doesn't work with npm CDNs #8

Open
jcbhmr opened this issue Jul 8, 2023 · 3 comments
Open

Doesn't work with npm CDNs #8

jcbhmr opened this issue Jul 8, 2023 · 3 comments

Comments

@jcbhmr
Copy link
Contributor

jcbhmr commented Jul 8, 2023

image

@jcbhmr
Copy link
Contributor Author

jcbhmr commented Jul 8, 2023

The fix for this is to wrap it in a data URL or something else

const u = `data:text/javascript,import ${JSON.stringify(corsURL)}`

@jimmywarting
Copy link
Owner

That looks like jsdelivr/jsdelivr#18488

@jcbhmr
Copy link
Contributor Author

jcbhmr commented Jul 8, 2023

I thought it was this? https://stackoverflow.com/questions/23953543/cross-domain-web-workers

But it might be the jsdelivr thing idk

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