Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy Loader missing entryPoint in metafile #3985

Open
RubenArtmann opened this issue Nov 24, 2024 · 0 comments
Open

copy Loader missing entryPoint in metafile #3985

RubenArtmann opened this issue Nov 24, 2024 · 0 comments

Comments

@RubenArtmann
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant