📦️(react) pure ESM package

Previously we had some configuration in package.json that were falsely
indicating that the react package was supporting CJS, which wasn't the
case. So this commit makes it clear that the package is pure ESM.
This commit is contained in:
Nathan Vasse
2023-05-11 17:35:58 +02:00
committed by NathanVss
parent 56227d206a
commit 3545af85ae
2 changed files with 6 additions and 3 deletions

View File

@@ -8,12 +8,10 @@
"type": "module",
"license": "MIT",
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./style": "./dist/style.css",