mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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)
27 lines
551 B
JavaScript
27 lines
551 B
JavaScript
function __spack_require__(mod) {
|
|
var cache;
|
|
return (function() {
|
|
if (cache) {
|
|
return cache;
|
|
}
|
|
var module = {
|
|
exports: {
|
|
}
|
|
};
|
|
mod(module, module.exports);
|
|
cache = module.exports;
|
|
return cache;
|
|
})();
|
|
}
|
|
var load = __spack_require__.bind(void 0, function(module, exports) {
|
|
const mod = function() {
|
|
module.exports = {
|
|
"version": "1.2.47"
|
|
};
|
|
return {
|
|
};
|
|
}();
|
|
});
|
|
var mod = load();
|
|
console.log(mod);
|