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

serve output #707

Closed
a-b-r-o-w-n opened this issue Jan 25, 2021 · 1 comment
Closed

serve output #707

a-b-r-o-w-n opened this issue Jan 25, 2021 · 1 comment

Comments

@a-b-r-o-w-n
Copy link

a-b-r-o-w-n commented Jan 25, 2021

Is there a reason that esbuild.serve does not expose the outfile and instead serves the entrypoints?

For example, the following configuration will serve client.js at localhost:8000 but not app.js:

esbuild.serve({}, {
  entryPoints: ['client.tsx'],
  bundle: true,
  outfile: 'app.js'
})
@evanw
Copy link
Owner

evanw commented Jan 26, 2021

Thanks for reporting this issue. It looks like the serve API currently ignores the outfile setting. You're right that it shouldn't ignore it, so this is a bug that should be fixed.

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

2 participants