1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-08 21:20:41 +02:00

fix esm export (build)

This commit is contained in:
Thomas Wilkerling
2024-01-07 23:59:35 +01:00
parent b8279ebddc
commit 5c54b465a8
19 changed files with 774 additions and 781 deletions

View File

@@ -279,9 +279,9 @@ exec(executable + parameter + " --js='tmp/**.js' --js='!tmp/**/node.js'" + flag_
build = build.replace("(function(self){'use strict';", "(function _factory(self){'use strict';");
}
if(release === "bundle.module" || release === "light.module"){
if(release === "bundle.module" || release === "light.module" || release === "compact.module"){
build = build.replace(/window\.FlexSearch(\s+)?=(\s+)?/, "export default ");
build = build.replace(/self\.FlexSearch(\s+)?=(\s+)?/, "export default ");
}
// if(release === "pre"){