2.7.0 • Published 4 years ago

@escaladesports/babel-preset v2.7.0

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

@escaladesports/babel-preset

Official Escalade Sports Babel preset

Bundles together several common Babel plugins/presets, including:

Usage with Gatsby

To use this preset with Gatsby sites, a custom .babelrc file must include babel-preset-gatsby and specify "gatsby": true in the options for this preset. The former is required any time a custom Babel config is used on a Gatsby site, and not doing the latter will cause build failures if the Gatsby site is also using loadable components and dynamic import statements.

The .babelrc should look like this:

{
  "presets": [
    "babel-preset-gatsby",
    [
      "@escaladesports/babel-preset",
      {
        "gatsby": true
      }
    ]

  ]
}