-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 namespace
and use namepace import
instead for tree-shaking
#35
Comments
namespace
for tree-shakingnamespace
and use namepace import
instead for tree-shaking
@samchon The reason for the emphasis on tree-shaking is that the smaller the bundle size, the better, not only for frontend but also for lambda and cloudflare workers. That is why I'd like you to stop using namespace... |
I know that avoiding namespace is proper for downsizing disk space. As One thing fortunate is, current However, I also considering about the In this v1 major update, I one time considered to escape namespaces and keeping ESM tree shaking by entirely refactoring the In the namespace. Is it possible to add utility functions in the namespace with keeping ESM tree-shaking? If you have any good idea, please help me.
|
@samchon I think using export field is one solution for example import { convert } from '@samchon/openai/i-open-api-v31' like so |
As we worked on typia, I'll do this
The text was updated successfully, but these errors were encountered: