Added asset manager.

This commit is contained in:
2021-09-26 00:42:35 -07:00
parent 94e54a4290
commit 00ea49ed74
5 changed files with 49 additions and 9 deletions

View File

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