mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
26944e159d
swc_ecma_transforms_base: - Reimplement `hygiene`.
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
function _classCallCheck(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) {
|
|
throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
}
|
|
var M1;
|
|
(function(M) {
|
|
var Foo = function Foo() {
|
|
"use strict";
|
|
_classCallCheck(this, Foo);
|
|
};
|
|
M.Foo = Foo;
|
|
var S1;
|
|
(function(S) {
|
|
var Bar = function Bar() {
|
|
"use strict";
|
|
_classCallCheck(this, Bar);
|
|
};
|
|
S.Bar = Bar;
|
|
})(S1 || (S1 = {
|
|
}));
|
|
M.S = S1;
|
|
})(M1 || (M1 = {
|
|
}));
|
|
(function(M) {
|
|
// Emit M.Foo
|
|
Foo, /*#__PURE__*/ React.createElement(Foo, null);
|
|
(function(S) {
|
|
// Emit M.Foo
|
|
Foo, /*#__PURE__*/ React.createElement(Foo, null);
|
|
// Emit S.Bar
|
|
Bar, /*#__PURE__*/ React.createElement(Bar, null);
|
|
})(S || (S = {
|
|
}));
|
|
})(M1 || (M1 = {
|
|
}));
|
|
(function(M) {
|
|
// Emit M.S.Bar
|
|
S.Bar, /*#__PURE__*/ React.createElement(S.Bar, null);
|
|
})(M1 || (M1 = {
|
|
}));
|
|
(function(M) {
|
|
var M2 = 100;
|
|
// Emit M_1.Foo
|
|
Foo, /*#__PURE__*/ React.createElement(Foo, null);
|
|
})(M1 || (M1 = {
|
|
}));
|