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).
* WIP: wasm-bindgen-rayon and new OMT plugin
* Bump package-lock
* Make OMT work again
* Update year
* Restore accidental change
* Prevent minification of `nextDefineUri`
* Delay loading external deps
This gives inline `define` calls a chance to define dependencies for earlier `define` calls on the same page.
* Add comment
* Cache correct assets
* Update lib/entry-data-plugin.js
Co-authored-by: Surma <surma@surma.dev>
* Actually commit the fix this time
Co-authored-by: Surma <surma@surma.dev>
* Paste button
* Logo and animated blobs
* Predictable initial blob position
* Initial blob shape
* Update canvas on resize if not updating every frame
* lol
* Get styles from CSS
* Background blobs
* Fade into the center
* Get initial focus
* Pause time while page is hidden
* Footer
* Optimise amount of initial CSS
* More CSS optimisation
* Install button
* Home page with demo loading
* Tweak size
* Replace thumbnails
* Responsive demo section
* Responsive main section
* Remove debug stuff
* Fix prerender SVG size
* Changes from feedback
* Blob nudges (#872)
* more smaller blobs
* less blobs that are practically invisible
* more dynamic speed range and stronger gravity
* Reverting resize observer change
The content rect is different to getBoundingClientRect
Co-authored-by: Adam Argyle <atom@argyleink.com>