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
And if I run it, it logs { c: [Function: c], a: [Function: a], b: [Function: b] }.
If I use vite-plugin-solid AND the file is a .tsx, the build result is the following:
And it outputs { c: [Function: c], b: [Function: b] } when ran.
Why does "A.a" gets removed from the namespace?
Moreover, why does changing the code like this works?
namespaceB{exportfunctionc(){}}exportnamespaceA{exportfunctiona(){}exportfunctionb(){}exportconst{ c }=B;// ← Moved on the bottom of the namespace}console.log(A);
The text was updated successfully, but these errors were encountered:
I have a file containing the following code:
When building it with vite it gets turned to this:
And if I run it, it logs
{ c: [Function: c], a: [Function: a], b: [Function: b] }
.If I use
vite-plugin-solid
AND the file is a.tsx
, the build result is the following:And it outputs
{ c: [Function: c], b: [Function: b] }
when ran.Why does "A.a" gets removed from the namespace?
Moreover, why does changing the code like this works?
The text was updated successfully, but these errors were encountered: