Skip to content

Commit

Permalink
add tests for other module formats, from babel#4524 (babel#4532)
Browse files Browse the repository at this point in the history
  • Loading branch information
danharper authored and panagosg7 committed Jan 17, 2017
1 parent 6ab13a2 commit 3e2c418
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 0 deletions.
@@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}
@@ -0,0 +1,15 @@
define(["exports"], function (exports) {
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});

exports.default = function (_a) {
return {
a: function a() {
return _a;
}
};
};
});
@@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions", "transform-es2015-modules-amd"]
}
@@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}
@@ -0,0 +1,7 @@
export default (function (_a) {
return {
a: function a() {
return _a;
}
};
});
@@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions"]
}
@@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}
@@ -0,0 +1,16 @@
System.register([], function (_export, _context) {
"use strict";

return {
setters: [],
execute: function () {
_export("default", function (_a) {
return {
a: function a() {
return _a;
}
};
});
}
};
});
@@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions", "transform-es2015-modules-systemjs"]
}
@@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}
@@ -0,0 +1,27 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
global.actual = mod.exports;
}
})(this, function (exports) {
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});

exports.default = function (_a) {
return {
a: function a() {
return _a;
}
};
};
});
@@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions", "transform-es2015-modules-umd"]
}

0 comments on commit 3e2c418

Please sign in to comment.