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: #190
Credit: @AviVahl
Close: #190
Reviewed-by: @isaacs
  • Loading branch information
AviVahl authored and isaacs committed Jan 17, 2023
1 parent bcca580 commit 9f72189
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 9f72189

Please sign in to comment.