1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-23 06:02:58 +02:00

type definitions v0.8

This commit is contained in:
Thomas Wilkerling
2025-03-16 22:00:08 +01:00
parent be80bb0513
commit 44153a67ad
96 changed files with 7121 additions and 5089 deletions

View File

@@ -101,7 +101,7 @@ let parameter = (function(opt){
module_resolution: "BROWSER",
//dependency_mode: "SORT_ONLY",
//js_module_root: "./",
entry_point: release === "lang" ? "./tmp/lang.js" : "./tmp/webpack.js",
entry_point: release === "lang" ? "./tmp/lang.js" : "./tmp/bundle.js",
//manage_closure_dependencies: true,
dependency_mode: "PRUNE", // PRUNE_LEGACY
rewrite_polyfills: use_polyfill || false,
@@ -250,7 +250,7 @@ else (async function(){
// "resolver.js",
// "serialize.js",
// "type.js",
// "webpack.js"
// "bundle.js"
// ];
files.forEach(function(file){
@@ -372,6 +372,7 @@ else (async function(){
part = part.split(",");
part = part.map(entry => "export const " + entry.replace(":", "="));
part = part.join(";") + ";";
// part = "export const Index=FlexSearch.Index;" +
// "export const Charset=FlexSearch.Charset;" +
// "export const Encoder=FlexSearch.Encoder;" +
@@ -407,7 +408,6 @@ else (async function(){
// replace the eval wrapper
build = build.replace(/\(0,eval\)\('([^']+)'\)/g, "$1");
fs.writeFileSync(filename, build);
fs.existsSync("dist/node/") || fs.mkdirSync("dist/node/");
fs.copyFileSync("src/worker/node.js", "dist/node/node.js");