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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.tsfileindex.tsare consideredBeta Was this translation helpful? Give feedback.
All reactions