tdb
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
$ npm install babel-plugin-transform-amd-system-dependencies
.babelrc
{
"plugins": [
["transform-amd-system-dependencies", {
map: function(dep) {
return dep;
}
}]
]
}
$ babel --plugins transform-amd-system-dependencies script.js
require("babel-core").transform("code", {
plugins: [
["transform-amd-system-dependencies", {
map: function(dep) {
return dep;
}
}]
]
});