From 2ad4d1fc8529d49e3d5ca38faaefece52d2dd5d9 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Thu, 12 May 2022 12:10:49 +0200 Subject: [PATCH] Use .esm.js module for backwards compatibility with old build tools --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7bca29ca..dda45b83 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "9.0.0-beta.1", "description": "Create your next immutable state by mutating the current one", "main": "dist/index.js", - "module": "dist/immer.esm.mjs", + "module": "dist/immer.esm.js", "exports": { ".": { "import": "./dist/immer.esm.mjs", @@ -14,8 +14,8 @@ "umd:main": "dist/immer.umd.production.min.js", "unpkg": "dist/immer.umd.production.min.js", "jsdelivr": "dist/immer.umd.production.min.js", - "jsnext:main": "dist/immer.esm.mjs", - "react-native": "dist/immer.esm.mjs", + "jsnext:main": "dist/immer.esm.js", + "react-native": "dist/immer.esm.js", "source": "src/immer.ts", "types": "./dist/immer.d.ts", "typesVersions": {