mirror of
https://github.com/swc-project/swc.git
synced 2025-01-02 02:26:09 +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
28 lines
617 B
JavaScript
28 lines
617 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) {
|
|
console.log('c');
|
|
});
|
|
var load1 = __spack_require__.bind(void 0, function(module, exports) {
|
|
console.log('b');
|
|
});
|
|
var load2 = __spack_require__.bind(void 0, function(module, exports) {
|
|
console.log('a');
|
|
});
|
|
load2();
|
|
load1();
|
|
load();
|