-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Not reduce bundle size as expected #3
Comments
it depends on the output of the original bundle, but for me it will. here are some of my own test changes (with loose=true): Rest Template Strings nice little update 👍 |
@alireza-mh the problem is that what you're bundling is, probably, already compiled. For example, So, your improvement of 1KB is from your codebase. Which, is not bad at all, in terms that your app is noticeable small. |
I removed |
@alireza-mh Code imported from node_modules is ES5, regardless of whether it uses ES Modules. This is a common misconception - libraries like Regarding your repo, I can clarify something: the code isn't using In general we don't "modernize" code written in older syntax**, which means optimizations like ** I have actually been looking into this space and am working on something. |
Just came across this issue and just want to know if there are any news about your implementation, @developit ? 🙂 |
There is a project that has been written in Typescript.
bundle size with
babel/preset-env
is 101.29KB minified & gzipped also bundle size withbabel/preset-modules
is 100.27 KB minified & gzipped.here is a repository that you can check:
sample-react-redux-typescript
I removed polyfills for a better comparison of bundle size.
you can run
yarn analysis
for viewing bundle size.node version: v12.12.0
The text was updated successfully, but these errors were encountered: