Files
babel/test/fixtures/transformation/es6-modules-amd/exports-default/expected.js
2015-02-21 13:06:02 +11:00

26 lines
619 B
JavaScript

"use strict";
define(["exports", "module"], function (exports, module) {
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };
module.exports = foo;
module.exports = 42;
module.exports = {};
module.exports = [];
module.exports = foo;
module.exports = function () {};
var _default = function _default() {
_classCallCheck(this, _default);
};
module.exports = _default;
function foo() {}
var Foo = function Foo() {
_classCallCheck(this, Foo);
};
module.exports = Foo;
});