Conflicts: test/fixtures/transformation/es6-modules-amd/exports-default/expected.js test/fixtures/transformation/es6-modules-amd/overview/expected.js test/fixtures/transformation/es6-modules-umd/exports-default/expected.js test/fixtures/transformation/es6-modules-umd/overview/expected.js
24 lines
550 B
JavaScript
24 lines
550 B
JavaScript
(function (factory) {
|
|
if (typeof define === "function" && define.amd) {
|
|
define(["exports", "module"], factory);
|
|
} else if (typeof exports !== "undefined" && typeof module !== "undefined") {
|
|
factory(exports, module);
|
|
}
|
|
})(function (exports, module) {
|
|
"use strict";
|
|
|
|
module.exports = foo;
|
|
module.exports = 42;
|
|
module.exports = {};
|
|
module.exports = [];
|
|
module.exports = foo;
|
|
module.exports = function () {};
|
|
|
|
module.exports = function () {};
|
|
|
|
function foo() {}
|
|
var Foo = function Foo() {};
|
|
|
|
module.exports = Foo;
|
|
});
|