Edwardb11 / budget-app

This budget app is a tool to keep reflected in monetary amounts, expenses and current income of a specific person.
https://budget-app-5d978.web.app/
MIT License
2 stars 0 forks source link

fix: Check babel optimization #12

Closed adonyssantos closed 2 years ago

adonyssantos commented 2 years ago

When I run the app with npm run start throws this warning:

image

[BABEL] Note: The code generator has deoptimised the styling of /home/adonys/development/Contributing/budget-app/node_modules/.vite/deps/chunk-OWA67FZ7.js?v=e1f55cdc as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/adonys/development/Contributing/budget-app/node_modules/.vite/deps/chunk-2GRVFPPS.js?v=e1f55cdc as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /home/adonys/development/Contributing/budget-app/node_modules/.vite/deps/@mui_material.js?v=e1f55cdc as it exceeds the max of 500KB.
^C
adonyssantos commented 2 years ago

This is not a real issue. Just a warning. When babel compiles some code, it try to offer a readable output, but when files become big (>100KB), babel considers (by default) that it's not useful to keep this option enabled (because yes it's an option, see https://stackoverflow.com/a/30879872/988941 for more information).

It's not a problem to keep it. If you don't care about readability, you can just use compact: true. Or false if you do. Only "auto" value (default value) will print this warning.