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

[Quick Start]: Is it necessary to set up a bun build script? #336

Open
JeHwanYoo opened this issue May 30, 2024 · 0 comments · May be fixed by #337
Open

[Quick Start]: Is it necessary to set up a bun build script? #336

JeHwanYoo opened this issue May 30, 2024 · 0 comments · May be fixed by #337

Comments

@JeHwanYoo
Copy link

JeHwanYoo commented May 30, 2024

What is the type of issue?

Documentation is confusing, Example code is not working

What is the issue?

Hello,

While reading the “Quick Start” document, I noticed that the "build" command is defined in the “Manual Installation” chapter.

{
  "scripts": {
    "dev": "bun --watch src/index.ts",
    "build": "bun build src/index.ts",
    "start": "NODE_ENV=production bun src/index.ts",
    "test": "bun test"
  }
}

However, when running the command in bun 1.1.10, the transpiled JavaScript source code is output to the standard output.

While using the --outdir flag allows exporting js files, it raises the question of whether these JS files are actually necessary.

Isn’t bun build intended for frontend solutions like React?

Running js files instead of ts files in production doesn’t seem to provide any benefits.

Therefore, to avoid confusion, how about removing the build script from the documentation?

Thank you.

Where did you find it?

https://elysiajs.com/quick-start.html#manual-installation

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

Successfully merging a pull request may close this issue.

1 participant