You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current bundling outputs, where d couldn't possible be exported. In the real world-code example this is based on, basically any symbol in the module in this situation gets exported, which of course is totally invalid at run-time:
const_i=function(){functiona(...d){returnd.join(" ");}return{
a,
d
};}();const_j=function(){functiona(...d){returnd.join("/");}return{
a,
d
};}();constk=globalThis.value ? _i : _j;const{ a ,}=k;export{a};
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
swc_bundler wrongly emits all symbols in a module in certain scenarios.
I have tried to get the reproducible as small as possible.
Input code
example10.ts
i.ts
j.ts
k.ts
Expected behavior
That non-exported symbols don't get exported.
Current bundling outputs, where
d
couldn't possible be exported. In the real world-code example this is based on, basically any symbol in the module in this situation gets exported, which of course is totally invalid at run-time:Version
Version: swc_bundler 0.8.1 (current #1005 branch)
Additional context
Working to integrate swc_bundler into Deno.
The text was updated successfully, but these errors were encountered: