You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow bundling a Node.js app into JavaScript, so it can be executed later by node directly:
tsx bundle index.ts
Maybe some runtime configs could be lost on the final bundled file, but it may serve well in most use cases.
Motivations
Execute the final built .js file via node.
As tsx is capable of combining TypeScript configs and use esbuild under the hood, would it be viable to use tsconfig.json configuration (such as outDir) to generate a bundled .js output?
Acknowledgements
Feature request
Allow bundling a Node.js app into JavaScript, so it can be executed later by
node
directly:Maybe some runtime configs could be lost on the final bundled file, but it may serve well in most use cases.
Motivations
Execute the final built
.js
file vianode
.As
tsx
is capable of combining TypeScript configs and useesbuild
under the hood, would it be viable to usetsconfig.json
configuration (such asoutDir
) to generate a bundled.js
output?Alternatives
Additional context
No response
Contributions
The text was updated successfully, but these errors were encountered: