Decathlon / vitamin-web

Decathlon Design System UI components for web applications
https://decathlon.github.io/vitamin-web
Apache License 2.0
279 stars 77 forks source link

build(@vtmn/react): remove sourcemap and improve treeshaking #1362

Closed Shyrro closed 1 year ago

Shyrro commented 1 year ago

Signed-off-by: Shyrro zakaria.sahmane@decathlon.com

Changes description

Removes sourcemap to solve this issue : https://github.com/Decathlon/vitamin-web/issues/1322

Since sourcemaps are mainly for debug purposes, we're also splitting the files to improve treeshake and thus improve debugging capabilities.

Context

It solves two problems :

Checklist

Does this introduce a breaking change?

thibault-mahe commented 1 year ago

Thanks for your quick answer @Shyrro , and thanks for this contribution! I'm merging it :)

jdeca-decat commented 1 year ago

@thibault-mahe @Shyrro @lauthieb Hello, thank you very much for fixing the issue #1322, I have no more warnings now :)