Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 492 Bytes

03-customizing-babel.md

File metadata and controls

16 lines (10 loc) · 492 Bytes

Customizing Babel

Jetpack uses Babel by default, because:

  • this way you get JSX support out of the box
  • you can be sure that the code you write will run in all the browsers you support

Jetpack uses the following Babel plugins and presets:

  • @babel/plugin-syntax-dynamic-import
  • @babel/preset-env
  • @babel/preset-react

See lib/webpack.js.js for the exact configuration.

It's easy to extend Babel with extra plugins or plugins by using .babelrc file.