🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@escaladesports/babel-preset

Package Overview
Dependencies
Maintainers
6
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@escaladesports/babel-preset

Escalade Sport's babel preset

latest
Source
npmnpm
Version
2.7.0
Version published
Maintainers
6
Created
Source

@escaladesports/babel-preset

Official Escalade Sports Babel preset

Bundles together several common Babel plugins/presets, including:

  • @babel/preset-env
  • @babel/preset-react
  • @babel/plugin-transform-runtime
  • @babel/plugin-syntax-dynamic-import
  • @babel/plugin-proposal-optional-chaining
  • babel-plugin-dynamic-import-node (disabled for Gatsby sites – see below)
  • ...among several others

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

  ]
}

Keywords

babel

FAQs

Package last updated on 28 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts