Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chialab/babel-preset

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/babel-preset

Babel preset for Chialab projects.

  • 2.7.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@chialab/babel-preset

Babel preset for Chialab projects

Travis status NPM License


A custom set of plugins, based on the @babel/preset-env, which includes:

Install

npm install @chialab/babel-preset -D
# or
yarn add @chialab/babel-preset -D

Usage

Add to the .babelrc file the preset:

{
    "presets": [
        ["@chialab/babel-preset", { ... }]
    ],
    "plugins": [ ... ]
}

Options

The preset inherits all the @babel/preset-env options, available here.

NameAcceptsDefaultDescription
envBooleantrueShould use @babel/preset-env.
pragmaString-The JSX pragma.
pragmaModuleString-The module path which exports the pragma.
pragmaDefaultBooleanfalseImport pragma as default member.
assertionsBooleanfalsePolyfill assertion statements with Chai.
coverageBooleanfalseShould enable code coverage.
coverageIncludeArray[]A list of files to include in the coverage.
coverageExcludeArray[]A list of files to exclude from the coverage.
transformCommonjsBooleanfalseShould convert CommonJS modules.
transformCommonjsCacheBooleanfalseA Map instance to use as cache for the tranformer.

Keywords

FAQs

Package last updated on 27 Nov 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc