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

@newsteam/babel-preset

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newsteam/babel-preset

Shared preset for babel

  • 0.0.26
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-98.31%
Maintainers
1
Weekly downloads
 
Created
Source

@newsteam/babel-preset

License npm package npm downloads Dependencies DevDependencies

This package provides a preset for babel.

Usage

A single babel preset is exported.

Our default export contains all of our babel plugins and presets. It requires the following peer dependencies:

    @babel/core

Installation

  1. Install the shared configuration:
npm install --save-dev @newsteam/babel-preset
  1. Install the shared configuration peer dependencies (npm 5+):
npx install-peerdeps --dev @newsteam/babel-preset
  1. Add "@newsteam/babel-preset" or your "presets" array in to your .babelrc.

Configuration

targets

string | Array<string> | { [string]: string }, defaults to {}.

Describes the environments you support/target for your project.

This can either be a browserslist-compatible query:

{
  "targets": "> 0.25%, not dead"
}

Or an object of minimum environment versions to support:

{
  "targets": {
    "chrome": "58",
    "ie": "11"
  }
}

Example environments: chrome, opera, edge, firefox, safari, ie, ios, android, node, electron.

Sidenote, this uses @babel/preset-env under the hood, so if no targets are specified it will transform all ECMAScript 2015+ code by default.

addModuleExports

boolean, defaults to false.

Enables the export default module.exports that was turned off in Babel 6.

debug

boolean, defaults to false.

Outputs the targets/plugins used and the version specified in plugin data version to console.log.

development

boolean, defaults to false.

Toggles plugins that aid in development, such as @babel/plugin-transform-react-jsx-self and @babel/plugin-transform-react-jsx-source.

Maintenance

You can run tests with npm test.

Keywords

FAQs

Package last updated on 18 Mar 2021

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