[x] Try to keep pull requests small so they can be easily reviewed.
[x] Commits are signed-off
[ ] Only FR translations have been updated
[x] Branch is up-to-date with target branch
[x] Lint has passed locally
[x] Standalone app was ran and tested locally
[ ] Ticket reference is mentioned in linked commits (internal only)
[ ] Breaking change is mentioned in relevant commits
Description
This PR adds configuration to enable the publishing of the library.
Nota:
The build phase only targets esm file, because of the uselessness of building cjs or umd files that are not compatible anymore with certain libraries like @tanstak/react-query.
Furthermore, all browsers are now compatible with ES modules so there is no need to weigh down the produced dist folder.
As a consequence, there is no need to add output.globals instructions for rollup because this is only needed for umd files.
I added hidden sourcemap files to ensure a better debugging with tools like Sentry without exposing any reference to the source code in the browser.
master
Description
This PR adds configuration to enable the publishing of the library.
Nota:
The build phase only targets
esm
file, because of the uselessness of buildingcjs
orumd
files that are not compatible anymore with certain libraries like@tanstak/react-query
. Furthermore, all browsers are now compatible withES
modules so there is no need to weigh down the produceddist
folder. As a consequence, there is no need to addoutput.globals
instructions for rollup because this is only needed forumd
files.I added hidden
sourcemap
files to ensure a better debugging with tools likeSentry
without exposing any reference to the source code in the browser.Related
Will be treated with #14344