Fixed bundle bug.

This commit is contained in:
2021-09-25 21:42:43 -07:00
parent 631c3a78b1
commit 029a4fccec
4 changed files with 44 additions and 47 deletions

View File

@ -18,11 +18,8 @@ const outputFix = (output, dir) => {
const matches = out.matchAll(reg);
let match;
while(!(match = matches.next()).done) {
const exp = new RegExp(`${match.value[1]}\.`);
exp.multiline = true;
const exp = new RegExp(`${match.value[1]}\.`, 'gm');
scanFile(path.join(dir, match.value[2]), dir);
out = out.replace(match.value[0], '').replace(exp, 'exports.');
}