@escaladesports/babel-preset

2.7.0 • Public • Published

@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
      }
    ]

  ]
}

Readme

Keywords

Package Sidebar

Install

npm i @escaladesports/babel-preset

Weekly Downloads

3

Version

2.7.0

License

MIT

Unpacked Size

6.83 kB

Total Files

4

Last publish

Collaborators

  • amadoa
  • codevelopit
  • dalewray
  • escasports
  • mastaaaron
  • tbaustin