diff --git a/package.json b/package.json index aa90d2d45..b29d0de89 100644 --- a/package.json +++ b/package.json @@ -14,14 +14,14 @@ "bugs": "https://github.com/reduxjs/react-redux/issues", "module": "dist/react-redux.legacy-esm.js", "main": "dist/cjs/index.js", - "react-native": "./dist/react-redux.react-native.mjs", + "react-native": "./dist/react-redux.react-native.js", "types": "dist/react-redux.d.ts", "exports": { "./package.json": "./package.json", ".": { "types": "./dist/react-redux.d.ts", "react-server": "./dist/rsc.mjs", - "react-native": "./dist/react-redux.react-native.mjs", + "react-native": "./dist/react-redux.react-native.js", "import": "./dist/react-redux.mjs", "default": "./dist/cjs/index.js" }, diff --git a/tsup.config.ts b/tsup.config.ts index 95925fd44..f19650627 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -83,7 +83,7 @@ export default defineConfig((options) => { 'react-redux.react-native': 'src/react-native.ts', }, format: ['esm'], - outExtension: () => ({ js: '.mjs' }), + outExtension: () => ({ js: '.js' }), }, // CJS development {