Skip to content

Commit

Permalink
fix: CJS fallbacks should be at the end not at beginning (#103)
Browse files Browse the repository at this point in the history
- when defining the old CJS `main` and `module`, these properties should come after `exports` (new ESM prop) so that newer Node will try `exports` first and not try fallback first, while for old Node it will automatically use the fallbacks since `exports` won't work
  • Loading branch information
ghiscoding authored Jul 17, 2023
1 parent 7491228 commit febdc9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"name": "multiple-select-vanilla",
"version": "0.4.4",
"type": "module",
"main": "./dist/cjs/multiple-select.js",
"module": "./dist/esm/multiple-select.js",
"exports": {
".": {
"import": "./dist/esm/multiple-select.js",
Expand All @@ -21,6 +19,8 @@
}
},
"types": "./dist/types/index.d.ts",
"main": "./dist/cjs/multiple-select.js",
"module": "./dist/esm/multiple-select.js",
"files": [
"dist"
],
Expand Down

0 comments on commit febdc9c

Please sign in to comment.