feat: save esbuild's metafile.json in outDir (#1868)
This commit is contained in:
@@ -89,6 +89,11 @@ export class EsbuildBuilder implements Builder {
|
|||||||
files.set(path, file.contents);
|
files.set(path, file.contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
files.set(
|
||||||
|
"metafile.json",
|
||||||
|
new TextEncoder().encode(JSON.stringify(bundle.metafile)),
|
||||||
|
);
|
||||||
|
|
||||||
const metaOutputs = new Map(Object.entries(bundle.metafile.outputs));
|
const metaOutputs = new Map(Object.entries(bundle.metafile.outputs));
|
||||||
|
|
||||||
for (const [path, entry] of metaOutputs.entries()) {
|
for (const [path, entry] of metaOutputs.entries()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user