Closed
Description
const result = await esbuild.build({
...BUILD_OPTIONS,
entryPoints: ["static/logo.svg"],
metafile: true,
bundle: true,
splitting: true,
outdir: "{in-memory}/",
chunkNames: "[name].[hash]",
assetNames: "[name].[hash]",
entryNames: "[name].[hash]",
loader: {
".svg": "copy"
}
});
outputs: {
"{in-memory}/logo.PDEZIVS6.svg": {
imports: [],
exports: [],
inputs: { "static/logo.svg": [Object] },
bytes: 3050
},
}
The problem is that looking up the output of a entryPoint
is impossible / really ugly.
This is almost the same issue as #2565 and #1861 except for it being the copy loader.
PS: I had to set outdir
to{in-memory}/
, because otherwise i get an error with code splitting on (even with write: false)
Metadata
Assignees
Labels
No labels