Skip to content

Commit 475d2c9

Browse files
committed
fix: bundling library using webpack
this change ensures "default" conditions are last, fixing the following webpack bundling error: ``` Module not found: Error: Default condition should be last one ``` Re: isaacs/minimatch#190 Credit: @AviVahl Reviewed-by: @isaacs
1 parent c40528a commit 475d2c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"exports": {
1818
".": {
1919
"import": {
20-
"default": "./dist/mjs/index.js",
21-
"types": "./dist/mjs/index.d.ts"
20+
"types": "./dist/mjs/index.d.ts",
21+
"default": "./dist/mjs/index.js"
2222
},
2323
"require": {
24-
"default": "./dist/cjs/src/index-cjs.js",
25-
"types": "./dist/cjs/src/index-cjs.d.ts"
24+
"types": "./dist/cjs/src/index-cjs.d.ts",
25+
"default": "./dist/cjs/src/index-cjs.js"
2626
}
2727
}
2828
},

0 commit comments

Comments
 (0)