Skip to content

Commit

Permalink
fix: Use .esm.js module for backwards compatibility with old build to…
Browse files Browse the repository at this point in the history
…ols (#939)
  • Loading branch information
cdauth committed May 12, 2022
1 parent 220d61d commit d30d219
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
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 d30d219

Please sign in to comment.