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

Add back a loader customization for full URL #1016

Merged
merged 1 commit into from
May 13, 2021
Merged

Add back a loader customization for full URL #1016

merged 1 commit into from
May 13, 2021

Conversation

RReverser
Copy link
Contributor

Emscripten uses dynamic import(fullUrlOfTheMainJS) in generated Workers.

It appears that upstream rollup-plugin-off-main-thread never handled this correctly, but we had a customization in Squoosh loader template that allowed those anyway, which I removed together with most other customizations in #1007, thus breaking Emscripten codecs.

This adds a hotfix back, but we need to fix this properly upstream too (TBD separately).

Emscripten uses dynamic `import(fullUrlOfTheMainJS)` in generated Workers.

It appears that upstream rollup-plugin-off-main-thread never handled this correctly, but we had a customization in Squoosh loader template that allowed those anyway, which I removed together with most other customizations in #1007, thus breaking Emscripten codecs.

This adds a hotfix back, but we need to fix this properly upstream too (TBD separately).
@RReverser RReverser requested a review from jakearchibald May 13, 2021 14:39
@google-cla google-cla bot added the CLA: Yes label May 13, 2021
@jakearchibald jakearchibald merged commit 10c5082 into dev May 13, 2021
@jakearchibald jakearchibald deleted the omt-hotfix branch May 13, 2021 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants