Closed RoelN closed 3 years ago
@RoelN things are working again. One remaining issue is the following: We can no longer import inflate
and unbrotli
from https://github.com/Pomax/lib-font/tree/master/lib, as these are not exported from the NPM package. I've included these modules from NPM now, but it seems treeshaking is less efficient this way as the bundle size grew from 2.9M to 3.6M (unminified). We could request Pomax to export these modules from lib-font, or vendor these in our own repo in third_party/
. WDYT?
@RoelN I replaced the NPM dependencies for brotli and pako with vendored, optimized builds. Bundle size is now back to normal.
⚠️ This ~doesn't work yet~ didn't work at first.
Two problems I could identify:
./index.js → lib/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency lib-font (imported by index.js) created lib/index.js in 2s
added 901 packages, and audited 901 packages in 21s
44 packages are looking for funding run
npm fund
for details