-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove Namespacee for tree shaking #1069
Comments
I'm developing it on v7 update advised by #752 Wait for next 3 to 4 months please. |
If you need it, I'll help you! |
Thanks for helping me, but this issue needs my working, due to it needs entire compiler API level refactoring. |
OK! Thanks. |
The namespace has almost disappeared at the implementation level, so this issue is good to close However, Other things are fine. So I'll create a new issue for this specific topic! |
Feature Request
Related to #1063
Typescript's
namespace
is great, but this is not good for tree shaking.Examples
with namespace
When you use vite for bundler, this code
bundled like this
without namespace
However, if you do not use namespace
the bundle is like this↓
Or you can split the codebase and use Namespace Import:
calc.ts
index.ts
the bundle result here↓
The text was updated successfully, but these errors were encountered: