A few seconds.

babel-plugin-transform-system-register

Converts anonymous System.register([] into named System.register('name', [], ...

babel-plugin-transform-system-register

Converts anonymous System.register([] into named System.register('name', [], ...

Example

In

System.register([], function () {});

Out

System.register("foo", [], function () {});

Installation

$ npm install babel-plugin-transform-system-register

Usage

Via .babelrc

.babelrc

{
  "plugins": [
    ["transform-system-register", {
      "moduleName": "foo",
      "systemGlobal": "SystemJS"
    }]
  ]
}

Via CLI

$ babel --plugins transform-system-register script.js
require("babel-core").transform("code", {
  plugins: [
    ["transform-system-register", {
      moduleName: "foo",
      systemGlobal: "SystemJS",
      map: function(name) {
        return normalize(name);
      }
    }]
  ]
});
Pincer is a project which aims to provide best library discovery tools for developers. We're growing day by day. We have only npm platform for now but we will add the others as much as we can.