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

babel-preset-mobx

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-mobx

Babel preset for all Mobx plugins.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
decreased by-16.57%
Maintainers
2
Weekly downloads
 
Created
Source

babel-preset-mobx

Babel preset for ES features commonly used with mobx

This preset includes the following plugins:

  • transform-decorators-legacy
  • transform-class-properties
  • transform-es2015-classes
  • transform-regenerator

In order to use async/generator functions, you will need to add babel-polyfill or regenerator-runtime to your dependencies (note: that's not devDependencies, as it's needed at runtime).

Install

$ npm install --save-dev babel-preset-mobx

Usage

.babelrc

{
  "presets": ["mobx"]
}

Via CLI

$ babel script.js --presets mobx

Via Node API

require("babel-core").transform("code", {
  presets: ["mobx"]
});

FAQs

Package last updated on 17 Sep 2018

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