Skip to content

Instantly share code, notes, and snippets.

@dwivediamit
Last active April 25, 2022 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwivediamit/3f0332c19dc543494e8a5516cf13091e to your computer and use it in GitHub Desktop.
Save dwivediamit/3f0332c19dc543494e8a5516cf13091e to your computer and use it in GitHub Desktop.

JIT - Compile TypeScript just in time for executing it.

Compiled in the browser.

Each file compiled separately.

No need to build after changing your code and before reloading the browser page.

Suitable for local development.

AOT - Compile TypeScript during build phase.

Compiled by the machine itself, via the command line (Faster).

All code compiled together, inlining HTML/CSS in the scripts.

No need to deploy the compiler (Half of Angular size).

More secure, original source not disclosed.

Suitable for production builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment