Skip to content

Commit 97a7b16

Browse files
committed
Change react-native output extension from .mjs to .js
1 parent e5a558a commit 97a7b16

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"bugs": "https://github.com/reduxjs/react-redux/issues",
1515
"module": "dist/react-redux.legacy-esm.js",
1616
"main": "dist/cjs/index.js",
17-
"react-native": "./dist/react-redux.react-native.mjs",
17+
"react-native": "./dist/react-redux.react-native.js",
1818
"types": "dist/react-redux.d.ts",
1919
"exports": {
2020
"./package.json": "./package.json",
2121
".": {
2222
"types": "./dist/react-redux.d.ts",
2323
"react-server": "./dist/rsc.mjs",
24-
"react-native": "./dist/react-redux.react-native.mjs",
24+
"react-native": "./dist/react-redux.react-native.js",
2525
"import": "./dist/react-redux.mjs",
2626
"default": "./dist/cjs/index.js"
2727
},

tsup.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default defineConfig((options) => {
8383
'react-redux.react-native': 'src/react-native.ts',
8484
},
8585
format: ['esm'],
86-
outExtension: () => ({ js: '.mjs' }),
86+
outExtension: () => ({ js: '.js' }),
8787
},
8888
// CJS development
8989
{

0 commit comments

Comments
 (0)