Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

systemjs/babel-plugin-transform-amd-system-dependencies

Repository files navigation

babel-plugin-transform-amd-system-dependencies

tdb

Example

In

define(['bar'], function(bar, require, module) {
    module.exports = {
	  bar: bar
	}
});

Babel Options

{
  plugins: [
    ['transform-amd-system-dependencies', {
	  map: function(dep) {
        return dep;
      }
    }]
  ]
}

Out

tbd

Installation

$ npm install babel-plugin-transform-amd-system-dependencies

Usage

Via .babelrc

.babelrc

{
  "plugins": [
    ["transform-amd-system-dependencies", {
      map: function(dep) {
        return dep;
      }
    }]
  ]
}

Via CLI

$ babel --plugins transform-amd-system-dependencies script.js

Via Node API (Recommended)

require("babel-core").transform("code", {
  plugins: [
    ["transform-amd-system-dependencies", {
      map: function(dep) {
        return dep;
      }
    }]
  ]
});

Releases

No releases published

Packages

No packages published