Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-modules-systemjs

Package Overview
Dependencies
26
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-transform-es2015-modules-systemjs

This plugin transforms ES2015 modules to SystemJS


Version published
Weekly downloads
1.4M
increased by1.8%
Maintainers
6
Install size
4.37 MB
Created
Weekly downloads
 

Readme

Source

babel-plugin-transform-es2015-modules-systemjs

This plugin transforms ES2015 modules to SystemJS.

Example

In

export default 42;

Out

System.register([], function (_export, _context) {
  return {
    setters: [],
    execute: function () {
      _export("default", 42);
    }
  };
});

Installation

npm install --save-dev babel-plugin-transform-es2015-modules-systemjs

Usage

.babelrc

Without options:

{
  "plugins": ["transform-es2015-modules-systemjs"]
}

With options:

{
  "plugins": [
    ["transform-es2015-modules-systemjs", {
      // outputs SystemJS.register(...)
      "systemGlobal": "SystemJS"
    }]
  ]
}

Via CLI

babel --plugins transform-es2015-modules-systemjs script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-modules-systemjs"]
});

Keywords

FAQs

Last updated on 07 Apr 2017

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