Syntax - Tasty Web Development Treats

Hasty Treat - TypeScript Compilers and Build Tools


Listen Later

In this Hasty Treat, Scott and Wes talk about the differences between compilers and build tools in TypeScript.

Sanity - Sponsor

Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

Show Notes

03:38 - What is a TypeScript compiler?

  • Do we still need Babel / WebPack?

07:49 - Babel

  • Transpiler
  • It doesn’t do typechecking
  • New JS features that aren’t in TypeScript yet

10:22 - SWC

  • Rust based compiler
  • Doesn’t do type checking (yet)
  • https://github.com/swc-project/swc/issues/571

13:03 - Deno

  • Uses tsc right now
  • Might move to Rust
  • https://github.com/denoland/deno/issues/5432

13:36 - Surcase

  • https://github.com/alangpierce/sucrase#transforms

14:46 - ESBuild

  • Compiles, but doesn’t do any type checking
  • Fastest

17:39 - What about bundlers?

  • Parcel
  • Snowpack
  • Webpack
  • ESBuild
  • When might you still need a bundler?
    • To handle different types of files that are non-standard
      • Like importing CSS and images
  • Treeshaking
  • Smaller bundle files
    • Typescript can concatenate to a single file, or all .js files, but smaller / smarter bundles still need a tool for that
  • Polyfills
    • Typescript does convert to syntax, but will not polyfill features
    • Something like Promise
      • Syntax can be transpiled to old code
      • Methods like allSettled aren’t
Links
  • Syntax 324: TypeScript Fundamentals
  • Syntax 322: The Deno Show
Tweet us your tasty treats!
  • Scott’s Instagram
  • LevelUpTutorials Instagram
  • Wes’ Instagram
  • Wes’ Twitter
  • Wes’ Facebook
  • Scott’s Twitter
  • Make sure to include @SyntaxFM in your tweets
...more
View all episodesView all episodes
Download on the App Store

Syntax - Tasty Web Development TreatsBy Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

966 ratings


More shows like Syntax - Tasty Web Development Treats

View all
Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

377 Listeners

Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

Software Engineering Radio - the podcast for professional software developers

265 Listeners

.NET Rocks! by Carl Franklin and Richard Campbell

.NET Rocks!

245 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

285 Listeners

Thoughtworks Technology Podcast by Thoughtworks

Thoughtworks Technology Podcast

41 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

586 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

629 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

275 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

213 Listeners

The freeCodeCamp Podcast by freeCodeCamp.org

The freeCodeCamp Podcast

485 Listeners

CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

CoRecursive: Coding Stories

186 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

63 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

136 Listeners

PodRocket - A web development podcast from LogRocket by LogRocket

PodRocket - A web development podcast from LogRocket

58 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

52 Listeners