Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-escp committed Jun 16, 2024
1 parent 93a424f commit 75a2829
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/flast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
4 changes: 2 additions & 2 deletions flast-pkg-builder/build-flast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -29,4 +29,4 @@ function buildLibraryForBrowser(filename, targetOutputFile) {
}
augmentArborist();
buildLibraryForBrowser(__dirname + '/flast-src.js', path.resolve(__dirname + '/..' + '/public/flast.js'));
setTimeout(() => augmentArborist(true));
setTimeout(() => augmentArborist(true), 100);
2 changes: 1 addition & 1 deletion public/flast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit 75a2829

Please sign in to comment.