Skip to content

Commit febdc9c

Browse files
authored
fix: CJS fallbacks should be at the end not at beginning (#103)
- 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
1 parent 7491228 commit febdc9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"name": "multiple-select-vanilla",
33
"version": "0.4.4",
44
"type": "module",
5-
"main": "./dist/cjs/multiple-select.js",
6-
"module": "./dist/esm/multiple-select.js",
75
"exports": {
86
".": {
97
"import": "./dist/esm/multiple-select.js",
@@ -21,6 +19,8 @@
2119
}
2220
},
2321
"types": "./dist/types/index.d.ts",
22+
"main": "./dist/cjs/multiple-select.js",
23+
"module": "./dist/esm/multiple-select.js",
2424
"files": [
2525
"dist"
2626
],

0 commit comments

Comments
 (0)