Skip to content

Commit

Permalink
fix 'Error: Default condition should be last one' in webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Rendez committed Apr 22, 2023
1 parent 01f343d commit 6d7b8f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/slimy-cycles-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@qdrant/js-client-rest': patch
'@qdrant/qdrant-js': patch
---

Fixes issue on Webpack and potentially other bundles to target ESM files when bundling.
4 changes: 2 additions & 2 deletions packages/js-client-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"exports": {
".": {
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js",
"browser": "./dist/browser/index.js",
"types": "./dist/types/index.d.ts"
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/qdrant-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"exports": {
".": {
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js",
"browser": "./dist/browser/index.js",
"types": "./dist/types/index.d.ts"
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"files": [
Expand Down

0 comments on commit 6d7b8f3

Please sign in to comment.