mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-24 14:42:55 +02:00
fix node.js exports, resolve eval
This commit is contained in:
@@ -276,9 +276,11 @@ exec(executable + parameter + " --js='tmp/**.js' --js='!tmp/**/node.js'" + flag_
|
||||
|
||||
if(release === "bundle"){
|
||||
|
||||
build = build.replace("(function(self){'use strict';", "(function _factory(self){'use strict';");
|
||||
build = build.replace("(function(self){'use strict';", "(function _f(self){'use strict';try{if(module)self=module}catch(e){}self._factory=_f;");
|
||||
}
|
||||
|
||||
build = build.replace(/eval\('(.*)'\)/, "$1");
|
||||
|
||||
if(release === "bundle.module" || release === "light.module" || release === "compact.module"){
|
||||
|
||||
build = build.replace(/self\.FlexSearch(\s+)?=(\s+)?/, "export default ");
|
||||
|
Reference in New Issue
Block a user