remove argument-types inside translations for production bundle #92
ivanhofer
started this conversation in
Optimizations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you use types inside your base-translations, the type-information is also part of the generated output. Since this information is only needed for the watcher to output better types, it can be omitted in production builds to save a few bytes from the bundle.
We could automatically remove all argument types for production
if you have a translation like this:
it could be optimize to the following code:
What needs to be done:
index.ts
fileindex.ts
are consideredBeta Was this translation helpful? Give feedback.
All reactions