add tests for other module formats, from #4524 (#4532)

This commit is contained in:
Dan Harper 2016-09-20 10:04:07 +01:00 committed by Daniel Tschinder
parent f859830e54
commit fa7321f978
12 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}

View File

@ -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;
}
};
};
});

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions", "transform-es2015-modules-amd"]
}

View File

@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}

View File

@ -0,0 +1,7 @@
export default (function (_a) {
return {
a: function a() {
return _a;
}
};
});

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions"]
}

View File

@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}

View File

@ -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;
}
};
});
}
};
});

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions", "transform-es2015-modules-systemjs"]
}

View File

@ -0,0 +1,3 @@
export default (a) => {
return { a() { return a } };
}

View File

@ -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;
}
};
};
});

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-es2015-function-name", "transform-es2015-shorthand-properties", "transform-es2015-arrow-functions", "transform-es2015-modules-umd"]
}