cerialize icon indicating copy to clipboard operation
cerialize copied to clipboard

Use ECMAScript modules instead of CommonJS modules

Open silvioboehme opened this issue 4 years ago • 2 comments

Is there any chance this library to be convert to ECMAScript modules? This will allow for a greater bundle size optimization at build time for apps that uses webpack or similar minifiers (https://web.dev/commonjs-larger-bundles/).

silvioboehme avatar Jun 26 '20 09:06 silvioboehme

It's been 3 years since I've written any JS and I'm completely out of touch with how all this new stuff works. Id be happy to accept a PR if you'd like to make one but I don't plan any further development on this library for the time being.

weichx avatar Jun 26 '20 10:06 weichx

Hi, I got also the same warning building Angular 10: WARNING in C:[...]\filename.ts depends on 'cerialize'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

I could help to convert to ECMAScript, but I need some guidance. There is someone who could help? @silvioboehme

rallets avatar Aug 21 '20 17:08 rallets