mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
af25a88902
swc_ecma_parser: - Fix generic parsing issue in jsx context. (#1299) swc_ecma_transforms_module: - Allow importing a module multiple time. (#1232) - Handle imports in the constructor of an exported class decl. (#1213) swc: - Respect `sourceMappingURL`. (#1236) - Resolve `sourceMappingURL` relative from file. (#1255) - Respect `isModule: false` (#1258) spack: - Support loading json files. (#1225)
23 lines
444 B
JavaScript
23 lines
444 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
var _foo = _interopRequireDefault(require("foo"));
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
default: obj
|
|
};
|
|
}
|
|
class OK {
|
|
constructor(){
|
|
console.log(_foo.default);
|
|
}
|
|
}
|
|
class NotOK {
|
|
constructor(){
|
|
console.log(_foo.default);
|
|
}
|
|
}
|
|
exports.default = NotOK;
|