Skip to content

Commit

Permalink
fix: bundling library using webpack
Browse files Browse the repository at this point in the history
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
  • Loading branch information
isaacs committed Feb 27, 2023
1 parent f66a08a commit 9bc4065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"exports": {
".": {
"import": {
"default": "./dist/mjs/index.js",
"types": "./dist/mjs/index.d.ts"
"types": "./dist/mjs/index.d.ts",
"default": "./dist/mjs/index.js"
},
"require": {
"default": "./dist/cjs/index-cjs.js",
"types": "./dist/cjs/index-cjs.d.ts"
"types": "./dist/cjs/index-cjs.d.ts",
"default": "./dist/cjs/index-cjs.js"
}
}
},
Expand Down

0 comments on commit 9bc4065

Please sign in to comment.