Fixed bundle bug.
This commit is contained in:
@ -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.');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user