babel-plugin-transform-system-register

WebJar for babel-plugin-transform-system-register

License

License

MIT
Categories

Categories

ORM Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

babel-plugin-transform-system-register
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

babel-plugin-transform-system-register
WebJar for babel-plugin-transform-system-register
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/systemjs/babel-plugin-transform-system-register

Download babel-plugin-transform-system-register

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/babel-plugin-transform-system-register/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>babel-plugin-transform-system-register</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/babel-plugin-transform-system-register/
implementation 'org.webjars.npm:babel-plugin-transform-system-register:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/babel-plugin-transform-system-register/
implementation ("org.webjars.npm:babel-plugin-transform-system-register:0.0.1")
'org.webjars.npm:babel-plugin-transform-system-register:jar:0.0.1'
<dependency org="org.webjars.npm" name="babel-plugin-transform-system-register" rev="0.0.1">
  <artifact name="babel-plugin-transform-system-register" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='babel-plugin-transform-system-register', version='0.0.1')
)
libraryDependencies += "org.webjars.npm" % "babel-plugin-transform-system-register" % "0.0.1"
[org.webjars.npm/babel-plugin-transform-system-register "0.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Via Node API (Recommended)

require("babel-core").transform("code", {
  plugins: [
    ["transform-system-register", {
      moduleName: "foo",
      systemGlobal: "SystemJS",
      map: function(name) {
        return normalize(name);
      }
    }]
  ]
});

Versions

Version
0.0.1