diff --git a/dist/flast.js b/dist/flast.js index bafefb2..5b22c9f 100644 --- a/dist/flast.js +++ b/dist/flast.js @@ -18968,7 +18968,7 @@ exports.tokenize = tokenize; exports.version = version; },{"acorn":4,"acorn-jsx":2,"eslint-visitor-keys":41}],43:[function(require,module,exports){ -window.generateCode = flast.generateCode, window.generateFlatAST = flast.generateFlatAST +window.generateCode = flast.generateCode, window.generateFlatAST = flast.generateFlatAST; const Arborist = class { /** diff --git a/flast-pkg-builder/build-flast.js b/flast-pkg-builder/build-flast.js index 4acc6d3..e0b0511 100644 --- a/flast-pkg-builder/build-flast.js +++ b/flast-pkg-builder/build-flast.js @@ -3,7 +3,7 @@ const path = require('node:path'); const browserify = require('browserify'); let originalArbLine = ''; -const replacementLine = `window.generateCode = flast.generateCode, window.generateFlatAST = flast.generateFlatAST`; +const replacementLine = `window.generateCode = flast.generateCode, window.generateFlatAST = flast.generateFlatAST;`; function augmentArborist(revert = false) { const arbFile = __dirname + '/../node_modules/flast/src/arborist.js'; @@ -29,4 +29,4 @@ function buildLibraryForBrowser(filename, targetOutputFile) { } augmentArborist(); buildLibraryForBrowser(__dirname + '/flast-src.js', path.resolve(__dirname + '/..' + '/public/flast.js')); -setTimeout(() => augmentArborist(true)); \ No newline at end of file +setTimeout(() => augmentArborist(true), 100); \ No newline at end of file diff --git a/public/flast.js b/public/flast.js index bafefb2..5b22c9f 100644 --- a/public/flast.js +++ b/public/flast.js @@ -18968,7 +18968,7 @@ exports.tokenize = tokenize; exports.version = version; },{"acorn":4,"acorn-jsx":2,"eslint-visitor-keys":41}],43:[function(require,module,exports){ -window.generateCode = flast.generateCode, window.generateFlatAST = flast.generateFlatAST +window.generateCode = flast.generateCode, window.generateFlatAST = flast.generateFlatAST; const Arborist = class { /**