We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd2992 commit 0fed335Copy full SHA for 0fed335
package-react/package.json
@@ -30,7 +30,7 @@
30
],
31
"private": false,
32
"type": "module",
33
- "main": "dist/cjs/index.js",
+ "main": "dist/cjs/index.cjs",
34
"module": "dist/esm/index.js",
35
"types": "dist/cjs/index.d.ts",
36
"files": [
package-react/rollup.config.js
@@ -11,9 +11,10 @@ export default {
11
input: 'src/index.tsx', // Main TypeScript file of our package
12
output: [
13
{
14
- file: 'dist/cjs/index.js', // CommonJS format
+ file: 'dist/cjs/index.cjs', // CommonJS format
15
format: 'cjs',
16
- sourcemap: true
+ sourcemap: true,
17
+ exports: "named"
18
},
19
20
file: 'dist/esm/index.js', // ES Module format
0 commit comments