Fixed bundle bug.

This commit is contained in:
YourWishes committed 2021-09-25 21:42:43 -07:00
1 parent 631c3a78b1
commit 029a4fccec
4 files changed
+44 -47

No files matched your search

+1 -4
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.');
}