transcend-io / penumbra

Encrypt/decrypt anything in the browser using streams on background threads.

Home Page:https://penumbra-example.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade to ESM + Snowpack + Webpack 5

eligrey opened this issue · comments

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))

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