From f6736a4beef727c6e5b41c312ce1b202ad3afb23 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 2 Oct 2023 07:35:18 +0100 Subject: [PATCH] fix: don't use `.mjs` file for react-native, which isn't supported by default. Fixes #1058 #1065 (#1075) * fix: don't use `.mjs` file for react-native, which isn't supported by default. Fixes #1058 #1065 (?) * v10.0.3-beta --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7fe3e1d0..445c6641 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "immer", - "version": "10.0.0-beta.6", + "version": "10.0.3-beta", "description": "Create your next immutable state by mutating the current one", "main": "./dist/cjs/index.js", "module": "./dist/immer.legacy-esm.js", @@ -12,7 +12,7 @@ } }, "jsnext:main": "dist/immer.mjs", - "react-native": "dist/immer.mjs", + "react-native": "./dist/immer.legacy-esm.js", "source": "src/immer.ts", "types": "./dist/immer.d.ts", "sideEffects": false,