Skip to content

Commit

Permalink
fix: cannot resolve flexsearch (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fourdim authored Jan 10, 2024
1 parent c387b1d commit 9228e67
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
"@playwright/test": "^1.40.0",
"@types/node": "^20.8.10",
"serve": "^14.2.1"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "playwright test"
},
"dependencies": {
"@reactuses/core": "^4.0.7",
"@reactuses/core": "4.0.10",
"@types/node": "20.6.3",
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
Expand Down
15 changes: 15 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/package.json b/package.json
index 5819f2fe2253489534ba64143b8b4c3f9b5870bf..30b29b8d3f19a12d6ec618446e023d0b521a6a28 100644
--- a/package.json
+++ b/package.json
@@ -29,10 +29,6 @@
},
"main": "dist/flexsearch.bundle.min.js",
"module": "dist/flexsearch.bundle.module.min.js",
- "browser": {
- "dist/flexsearch.bundle.min.js": "dist/flexsearch.bundle.min.js",
- "dist/flexsearch.bundle.module.min.js": "dist/flexsearch.bundle.module.min.js"
- },
"scripts": {
"build": "npm run copy && npm run build:bundle",
"build:bundle": "node task/build RELEASE=bundle DEBUG=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false",

0 comments on commit 9228e67

Please sign in to comment.