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

Upgrade to ESM + Snowpack + Webpack 5 #155

Closed
eligrey opened this issue Oct 19, 2020 · 2 comments
Closed

Upgrade to ESM + Snowpack + Webpack 5 #155

eligrey opened this issue Oct 19, 2020 · 2 comments
Labels
standup-airgap Discuss during the Airgap standup usability webpack webpack bundling

Comments

@eligrey
Copy link
Member

eligrey commented Oct 19, 2020

We should upgrade to Snowpack + Webpack 5 and distribute builds as ECMAScript modules. This may enable us to reference Web Worker URLs without having to inline workers into Blob URIs.

Webpack 5 adds support for this native Worker loader syntax:

new Worker(new URL("./worker.js", import.meta.url))
@eligrey eligrey added webpack webpack bundling usability labels Oct 19, 2020
@eligrey eligrey added the standup-airgap Discuss during the Airgap standup label Oct 19, 2020
@eligrey
Copy link
Member Author

eligrey commented Oct 22, 2020

Postponed until Safari gains ESM Worker support.

@eligrey
Copy link
Member Author

eligrey commented Feb 17, 2021

We may also want to consider esbuild instead of Webpack 5 due to its better minification & build times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
standup-airgap Discuss during the Airgap standup usability webpack webpack bundling
Projects
None yet
Development

No branches or pull requests

1 participant