Skip to content

Commit

Permalink
Use .esm.js module for backwards compatibility with old build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed May 12, 2022
1 parent 220d61d commit 2ad4d1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit 2ad4d1f

Please sign in to comment.