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
```

PR-URL: isaacs/minimatch#190
Credit: @AviVahl
Close: #190
Reviewed-by: @isaacs
  • Loading branch information
afzalimdad9 committed Jan 18, 2025
1 parent 8ccff32 commit ab217bb
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 @@ -13,12 +13,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.js",
"types": "./dist/cjs/index.d.ts"
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
Expand Down

0 comments on commit ab217bb

Please sign in to comment.