Skip to content

Instantly share code, notes, and snippets.

@prograhammer
Last active August 16, 2018 05:19
Show Gist options
  • Save prograhammer/570b87cc8d57e7e220c795909f70e23f to your computer and use it in GitHub Desktop.
Save prograhammer/570b87cc8d57e7e220c795909f70e23f to your computer and use it in GitHub Desktop.
Features Babel does and doesn't transpile

Features that need to be compiled

  • Arrow functions
  • Async functions
  • Async generator functions
  • Block scoping
  • Block scoped functions
  • Classes
  • Class properties
  • Computed property names
  • Constants
  • Decorators
  • Default parameters
  • Destructuring
  • Do expressions
  • Exponentiation operator
  • For-of
  • Function bind
  • Generators
  • Modules
  • Module export extensions
  • New literals
  • Object rest/spread
  • Property method assignment
  • Property name shorthand
  • Rest parameters
  • Spread
  • Sticky regex
  • Template literals
  • Trailing function commas
  • Type annotations
  • Unicode regex

Features that need to be polyfilled

  • ArrayBuffer
  • Array.from
  • Array.of
  • Array#copyWithin
  • Array#fill
  • Array#find
  • Array#findIndex
  • Function#name
  • Map
  • Math.acosh
  • Math.hypot
  • Math.imul
  • Number.isNaN
  • Number.isInteger
  • Object.assign
  • Object.getOwnPropertyDescriptors
  • Object.is
  • Object.entries
  • Object.values
  • Object.setPrototypeOf
  • Promise
  • Reflect
  • RegExp#flags
  • Set
  • String#codePointAt
  • String#endsWith
  • String.fromCodePoint
  • String#includes
  • String.raw
  • String#repeat
  • String#startsWith
  • String#padStart
  • String#padEnd
  • Symbol
  • WeakMap
  • WeakSet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment