remove the nodejs-jieba
This commit is contained in:
@@ -1,14 +1,13 @@
|
|||||||
import minisearch from "minisearch";
|
import minisearch from "minisearch";
|
||||||
import { cutForSearch } from "nodejs-jieba";
|
// import { cutForSearch } from "nodejs-jieba";
|
||||||
import { getPostFileContent, sortedPosts } from "./post-process";
|
import { getPostFileContent, sortedPosts } from "./post-process";
|
||||||
|
|
||||||
|
|
||||||
// TODO: The jieba tokenizer seems not be supported by vercel platform
|
// TODO: The jieba tokenizer seems not be supported by vercel platform
|
||||||
// that causes the module loading error.
|
// that causes the module loading error.
|
||||||
// So here is the remain task for seeking better Chinese tokenizer.
|
// So here is the remain task for seeking better Chinese tokenizer.
|
||||||
function tokenizer(str: string) {
|
// function tokenizer(str: string) {
|
||||||
return cutForSearch(str, true);
|
// return cutForSearch(str, true);
|
||||||
}
|
// }
|
||||||
|
|
||||||
function makeSearchIndex() {
|
function makeSearchIndex() {
|
||||||
let miniSearch = new minisearch({
|
let miniSearch = new minisearch({
|
||||||
|
|||||||
798
package-lock.json
generated
798
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -53,7 +53,6 @@
|
|||||||
"next-seo": "^6.4.0",
|
"next-seo": "^6.4.0",
|
||||||
"next-share": "^0.27.0",
|
"next-share": "^0.27.0",
|
||||||
"next-themes": "^0.2.1",
|
"next-themes": "^0.2.1",
|
||||||
"nodejs-jieba": "^0.1.2",
|
|
||||||
"postcss": "8.4.31",
|
"postcss": "8.4.31",
|
||||||
"prism": "^1.0.0",
|
"prism": "^1.0.0",
|
||||||
"prismjs": "^1.29.0",
|
"prismjs": "^1.29.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user