mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
8a01e2b7b6
swc_ecma_transforms: - Add tests for #898 - dce preserves `export * from 'foo';` swc_bundler: - Fix some concurrency bugs - Run dce only once - Handle `export * from 'foo'` - Handle namespace imports with computed key - Add some unit tests for `plan` - Handle export default decl - Handle simple coomon dependencies properly
24 lines
565 B
JavaScript
24 lines
565 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) {
|
|
var load1 = __spack_require__.bind(void 0, function(module1, exports1) {
|
|
module1.exports = 1;
|
|
});
|
|
module.exports = load1();
|
|
});
|
|
var { default: a } = load();
|
|
console.log(a);
|