From 75a28290b4cd1e8aa6ad4457b6a3f1b9f3ce4e3b Mon Sep 17 00:00:00 2001 From: Ben Baryo <19845603+ctrl-escp@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:43:29 +0300 Subject: [PATCH] Update build --- dist/flast.js | 2 +- flast-pkg-builder/build-flast.js | 4 ++-- public/flast.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 { /**