mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix things with stupid esbuild
This commit is contained in:
3 files changed
+28
-20
No files matched your search
@@ -36,6 +36,10 @@ function transform(filename) {
|
||||
});
|
||||
if (result.warnings.length) console.warn(result.warnings);
|
||||
map[filename] = result.map;
|
||||
if (process.env.LOADER_DUMP_CODE && filename.endsWith(`/${process.env.LOADER_DUMP_CODE}`)) {
|
||||
console.log(`-----${filename}-----`);
|
||||
console.log(result.code.split('/# sourceMappingURL=')[0]);
|
||||
}
|
||||
return result.code;
|
||||
}
|
||||
const _script = new vm.Script('"Hydro"', { produceCachedData: true });
|
||||
|
||||
Reference in new issue
Block a user