Skip to content

feat: install esbuild and configure#1

Open
scheidtdav wants to merge 2 commits intomainfrom
feat/esbuild
Open

feat: install esbuild and configure#1
scheidtdav wants to merge 2 commits intomainfrom
feat/esbuild

Conversation

@scheidtdav
Copy link
Member

This PR introduces esbuild for building and bundling the application.
Here is a quick comparison between building with tsc vs. building with esbuild:

tsc:

  • Requires node_modules in container
  • faster cold start time due to smaller files
  • easier debugging (no minification, original file structure)
  • Total: node_modules + code = ~120MB

esbuild:

  • Single file deployment (only index.js)
  • Fast build times
  • extensionless imports (just like in browser projects)
  • Total: just required code ~1.6MB

@jona159 What do we want? 🤔 I am not super sure whats the best way.

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 this pull request may close these issues.

1 participant