mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
4db24fb7f6
swc_ecma_transforms_module: - Change the order of functions exported as default. (#1568) - Handle mixed imports correctly. (#1525) swc: - Ensure that #1581 is fixed. (#1581)
29 lines
962 B
TypeScript
29 lines
962 B
TypeScript
"use strict";
|
|
var _react = _interopRequireWildcard(require("react"));
|
|
function _interopRequireWildcard(obj) {
|
|
if (obj && obj.__esModule) {
|
|
return obj;
|
|
} else {
|
|
var newObj = {
|
|
};
|
|
if (obj != null) {
|
|
for(var key in obj){
|
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {
|
|
};
|
|
if (desc.get || desc.set) {
|
|
Object.defineProperty(newObj, key, desc);
|
|
} else {
|
|
newObj[key] = obj[key];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
newObj.default = obj;
|
|
return newObj;
|
|
}
|
|
}
|
|
class X extends _react.Component {
|
|
}
|
|
_react.default.render(document.getElementById("#root"), /*#__PURE__*/ _react.default.createElement(X, null));
|