Socket
Socket
Sign inDemoInstall

@chialab/babel-preset

Package Overview
Dependencies
229
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @chialab/babel-preset

Babel preset for Chialab projects.


Version published
Weekly downloads
34
increased by750%
Maintainers
2
Install size
11.6 MB
Created
Weekly downloads
 

Readme

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

Last updated on 27 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc