You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using EcmaScript for ES6 support and it seems the whole file has being imported. Is it possible to eliminate dead code and import only what is really needed?
TO REPRODUCE THE CASE:
In TypeScriptDemo add a "treeShaking" function to foo.js. Running the application main.js will include the function, even if it has not been imported.
WHAT EXPECTED:
main.js without the "treeShaking" function.
The text was updated successfully, but these errors were encountered:
Unfortunately, tree shaking is not implemented currently. It would definitely be useful but according to my estimations it needs a considerable time investment, which I can't afford anytime soon.
But I'll leave open your issue as I'd like to include this feature in the lib eventually.
Hi adams85 and thanks for this great bundling.
I'm using EcmaScript for ES6 support and it seems the whole file has being imported. Is it possible to eliminate dead code and import only what is really needed?
TO REPRODUCE THE CASE:
In TypeScriptDemo add a "treeShaking" function to foo.js. Running the application main.js will include the function, even if it has not been imported.
WHAT EXPECTED:
main.js without the "treeShaking" function.
The text was updated successfully, but these errors were encountered: