Replies: 3 comments 3 replies
-
Generally, class methods cannot be shaken, no. Certain tools will attempt it but it's quite limited in the scope in which it works. |
Beta Was this translation helpful? Give feedback.
-
I wasn't able to reproduce: https://stackblitz.com/edit/vitejs-vite-nfpb8a?file=src%2Fmain.ts,src%2Fsub.ts,vite.config.ts&terminal=build You might be facing these issues (evanw/esbuild#3765, evanw/esbuild#3965), but I'm not sure. |
Beta Was this translation helpful? Give feedback.
-
Here is a demo : https://stackblitz.com/edit/vitejs-vite-qgbnyf?file=packages%2Fmodule2%2Fsrc%2Findex.ts follow these steps:
|
Beta Was this translation helpful? Give feedback.
-
I has a module1, source code is
module2
After packaging module 2,
MyTest1
appears in the packaging artifact, which is not actually referenced. Is this the expected performance ?===
module2 build artifact like this below
Beta Was this translation helpful? Give feedback.
All reactions