Socket
Socket
Sign inDemoInstall

babel-preset-mercenary

Package Overview
Dependencies
146
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-mercenary

Babel preset used by mercenary


Version published
Weekly downloads
50
increased by1566.67%
Maintainers
1
Install size
14.2 MB
Created
Weekly downloads
 

Readme

Source

babel-preset-mercenary

This package includes the Babel preset used by mercenary.
Please refer to its documentation:

  • Getting Started – How to create a new app.
  • User Guide – How to develop apps bootstrapped with mercenary.

Usage in Mercenary projects

The easiest way to use this configuration is with mercenary, which includes it by default. You don’t need to install it separately in mercenary projects.

Usage Outside of Mercenary

If you want to use this Babel preset in a project not built with mercenary, you can install it with following steps.

First, install Babel.

Then create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["mercenary"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.

FAQs

Last updated on 07 Sep 2018

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