Update README.md

This commit is contained in:
Joseph Garrone 2023-05-21 07:30:54 +02:00 committed by GitHub
parent e6972df053
commit d1a8f7a08f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,8 +78,6 @@ You want to avoid this strategy if:
## ESM only
If you want to **only** release as ESM just set `"module": "ES6"` in your `tsconfig.json` (and remove `esModuleInterop`).
You will need to tell `jest` that your module needs to be transpiled by using
`"transformIgnorePatterns": [ "node_modules/(?!@codegouvfr/react-dsfr)" ]`.
You want to avoid this strategy if:
- You want your module to be usable with node. The ESM distribution produced by TypeScript is an ESM distribution