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 Jan 17, 2023
1 parent dac1929 commit ad72d73
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 @@ -7,12 +7,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/src/index-cjs.js",
"types": "./dist/cjs/src/index-cjs.d.ts"
"types": "./dist/cjs/src/index-cjs.d.ts",
"default": "./dist/cjs/src/index-cjs.js"
}
}
},
Expand Down

0 comments on commit ad72d73

Please sign in to comment.