Added asset manager.

This commit is contained in:
YourWishes committed 2021-09-26 00:42:35 -07:00
1 parent 94e54a4290
commit 00ea49ed74
5 files changed
+49 -9

No files matched your search

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