Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bolt-app/babel-preset-gatsby

bolt-app5MIT0.5.1-bolt.0

Gatsby uses the phenomenal project Babel to enable support for writing modern JavaScript — while still supporting older browsers. This package contains the default Babel setup for all Gatsby projects.

readme

babel-preset-gatsby

Gatsby uses the phenomenal project Babel to enable support for writing modern JavaScript — while still supporting older browsers. This package contains the default Babel setup for all Gatsby projects.

For more information on how to customize the Babel configuration of your Gatsby site, check out our documentation.

Packages

Usage

Install babel-preset-gatsby and add a .babelrc file with the following content to the root of your project:

npm install --dev babel-preset-gatsby
{
  "presets": ["babel-preset-gatsby"]
}

Options

targets

{ [string]: number | string }, defaults to { "browsers": ["last 4 versions", "safari >= 7", "ie >= 9"] } in production and { "browsers": ["last 2 versions", "not ie <= 11", "not android 4.4.3"] } in development when targeting the browser and { "node": 6 } in production and { "node": "current" } in development when targeting Node.js.

Use this option to configure custom target browsers.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.5.1 (2020-07-02)

Note: Version bump only for package babel-preset-gatsby

0.5.0 (2020-07-01)

Note: Version bump only for package babel-preset-gatsby

0.4.13 (2020-07-01)

Note: Version bump only for package babel-preset-gatsby

0.4.12 (2020-06-24)

Note: Version bump only for package babel-preset-gatsby

0.4.11 (2020-06-22)

Bug Fixes

  • docs: change bash to shell in code language blocks (#22899) (6b6b2f2)

0.4.10 (2020-06-19)

Note: Version bump only for package babel-preset-gatsby

0.4.9 (2020-06-09)

Note: Version bump only for package babel-preset-gatsby

0.4.8 (2020-06-02)

Note: Version bump only for package babel-preset-gatsby

0.4.7 (2020-05-22)

Note: Version bump only for package babel-preset-gatsby

0.4.6 (2020-05-20)

Note: Version bump only for package babel-preset-gatsby

0.4.5 (2020-05-20)

Note: Version bump only for package babel-preset-gatsby

0.4.4 (2020-05-19)

Note: Version bump only for package babel-preset-gatsby

0.4.3 (2020-05-18)

Note: Version bump only for package babel-preset-gatsby

0.4.2 (2020-05-13)

Note: Version bump only for package babel-preset-gatsby

0.4.1 (2020-05-05)

Bug Fixes

  • babel-preset-gatsby: remove prop-types in production for dependencies (#23609) (a844157)

0.4.0 (2020-04-27)

Note: Version bump only for package babel-preset-gatsby

0.3.6 (2020-04-24)

Bug Fixes

  • optimize-hook-destructuring: handle skipped items (#23438) (2cf2dc5)

0.3.5 (2020-04-24)

Note: Version bump only for package babel-preset-gatsby

0.3.4 (2020-04-22)

Note: Version bump only for package babel-preset-gatsby

0.3.3 (2020-04-17)

Bug Fixes

0.3.2 (2020-04-16)

Note: Version bump only for package babel-preset-gatsby

0.3.1 (2020-03-23)

Note: Version bump only for package babel-preset-gatsby

0.3.0 (2020-03-20)

Features

0.2.36 (2020-03-16)

Note: Version bump only for package babel-preset-gatsby

0.2.35 (2020-03-11)

Note: Version bump only for package babel-preset-gatsby

0.2.34 (2020-03-10)

Note: Version bump only for package babel-preset-gatsby

0.2.33 (2020-03-09)

Note: Version bump only for package babel-preset-gatsby

0.2.32 (2020-03-09)

Note: Version bump only for package babel-preset-gatsby

0.2.31 (2020-03-06)

Note: Version bump only for package babel-preset-gatsby

0.2.30 (2020-03-06)

Note: Version bump only for package babel-preset-gatsby

0.2.29 (2020-02-10)

Note: Version bump only for package babel-preset-gatsby

0.2.28 (2020-02-01)

Note: Version bump only for package babel-preset-gatsby

0.2.27 (2020-01-09)

Note: Version bump only for package babel-preset-gatsby

0.2.26 (2019-12-11)

Features

  • gatsby: support ?. and ?? in generated pages (#20036) (ea6185c)

0.2.25 (2019-12-10)

Note: Version bump only for package babel-preset-gatsby

0.2.24 (2019-12-10)

Note: Version bump only for package babel-preset-gatsby

0.2.23 (2019-11-26)

Note: Version bump only for package babel-preset-gatsby

0.2.22 (2019-11-15)

Bug Fixes

  • update dependency babel-plugin-dynamic-import-node to v2 (#19535) (500ebf6)

0.2.21 (2019-11-10)

Note: Version bump only for package babel-preset-gatsby

0.2.20 (2019-10-14)

Note: Version bump only for package babel-preset-gatsby

0.2.19 (2019-10-14)

Note: Version bump only for package babel-preset-gatsby

0.2.18 (2019-10-09)

Note: Version bump only for package babel-preset-gatsby

0.2.17 (2019-09-26)

Note: Version bump only for package babel-preset-gatsby

0.2.16 (2019-09-26)

Note: Version bump only for package babel-preset-gatsby

0.2.15 (2019-09-25)

Note: Version bump only for package babel-preset-gatsby

0.2.14 (2019-09-20)

Note: Version bump only for package babel-preset-gatsby

0.2.13 (2019-09-09)

Note: Version bump only for package babel-preset-gatsby

0.2.12 (2019-09-01)

Bug Fixes

  • update minor updates in packages except react, babel and eslint (#17254) (252d867)

0.2.11 (2019-08-23)

Note: Version bump only for package babel-preset-gatsby

0.2.10 (2019-08-21)

Bug Fixes

  • update dependency babel-plugin-macros to ^2.6.1 (#16811) (fc5fb41)

0.2.9 (2019-08-20)

Note: Version bump only for package babel-preset-gatsby

0.2.8 (2019-07-25)

Bug Fixes

  • babel-preset-gatsby: Adds a missing resolve call (#16084) (c37f2be)

0.2.7 (2019-07-19)

Note: Version bump only for package babel-preset-gatsby

0.2.6 (2019-07-15)

Bug Fixes

0.2.5 (2019-07-12)

Features

0.2.4 (2019-07-12)

Bug Fixes

  • babel-preset-gatsby: Add babel-plugin-dynamic-import-node for tests (#15657) (ad5e8a0)

0.2.3 (2019-07-12)

Bug Fixes

  • babel-preset-gatsby: Ensure the spread operator works (#15172) (bd07262)

0.2.2 (2019-07-11)

Note: Version bump only for package babel-preset-gatsby

0.2.1 (2019-07-02)

Bug Fixes

  • enable separate config for node_modules transpilation (#15270) (7e39a12)

0.2.0 (2019-06-20)

Note: Version bump only for package babel-preset-gatsby

0.1.11 (2019-04-02)

Features

0.1.10 (2019-03-23)

Bug Fixes

0.1.9 (2019-03-11)

Note: Version bump only for package babel-preset-gatsby

0.1.8 (2019-02-22)

Note: Version bump only for package babel-preset-gatsby

0.1.7 (2019-02-06)

Bug Fixes

  • babel-preset-gatsby: Show a helpful error when used in the wrong environment (#11555) (adf06e5)

0.1.6 (2018-12-01)

Note: Version bump only for package babel-preset-gatsby

0.1.5 (2018-11-29)

Note: Version bump only for package babel-preset-gatsby

0.1.4 (2018-11-15)

Bug Fixes

  • gatsby: correctly pick up browserslist overrides (#9669) (0f0feac)

0.1.3 (2018-11-05)

Bug Fixes

  • ensure babel-preset-gatsby can be used with unit tests (#9629) (401df07), closes #9614

0.1.2 (2018-10-29)

Note: Version bump only for package babel-preset-gatsby

0.1.1 (2018-10-23)

Note: Version bump only for package babel-preset-gatsby