Commit Graph
5 Commits
Author SHA1 Message Date
Bogdan Chadkin ad04473f26 Migrate packages to native ESM (#493)
Our designer bundle heavily bloated with not analyzable commonjs
generated by typescript.

The biggest problem comes from bundled icons library which esbuild
cannot tree shake because of cjs.

Another issue is broken code splitting. Packages in one piece are appear
in chunks and always loaded even with dynamic import and React.lazy.

To solve this I migrated each package to native node es modules.
Storybook and jest work almost without changes. Though it's not possible
to run remix in esm project (while still esm packages can be bundled for
ssr). And as a result designer jest failed because of cjs tests requires
from esm packages. As a solution I generated additional commonjs
artifacts in lib/cjs.

du -ck public/build
2336
1736
2022-11-23 10:12:58 +03:00
Roman Pominov 94656733a2 fix minor review comments 2022-08-03 14:50:34 +03:00
Andras Bacsai 4466e747a8 rename jest.config.js to index.js in packages 2022-07-22 21:07:32 +00:00
Andras Bacsai 78c9d59290 fix 2022-07-22 12:33:47 +00:00
Sara Vieira 1e048922e5 rename sdk 2022-07-18 22:08:40 +02:00