This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
remove argument-types inside translations for production bundle #13
Labels
help wanted
Extra attention is needed
optimization
Things that could reduce bundle-size or make it more efficient
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 consideredThe text was updated successfully, but these errors were encountered: