Skip to content

Commit 9f72189

Browse files
AviVahlisaacs
authored andcommitted
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 ``` PR-URL: #190 Credit: @AviVahl Close: #190 Reviewed-by: @isaacs
1 parent bcca580 commit 9f72189

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
@@ -13,12 +13,12 @@
1313
"exports": {
1414
".": {
1515
"import": {
16-
"default": "./dist/mjs/index.js",
17-
"types": "./dist/mjs/index.d.ts"
16+
"types": "./dist/mjs/index.d.ts",
17+
"default": "./dist/mjs/index.js"
1818
},
1919
"require": {
20-
"default": "./dist/cjs/index.js",
21-
"types": "./dist/cjs/index.d.ts"
20+
"types": "./dist/cjs/index.d.ts",
21+
"default": "./dist/cjs/index.js"
2222
}
2323
}
2424
},

0 commit comments

Comments
 (0)