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
bundle exec vite build generates source maps, where vite as default has them turned off. Even setting build.sourcmap to false explicitly does not work. As the result, source maps are pushed to the production environment.
The text was updated successfully, but these errors were encountered:
I read the linked thread comment, and as I understand the way they go, I think your project should follow defaults from the vite project, as it is just a wrapper on top of the Vite. Within the fix you mentioned, it still will be weird, that feature that should be turned off by default, is not.
Also, in your documentation, you can read:
You can customize this file as needed, check Vite's plugins and config reference for more info.
The only way you can understand that sentence is that whatever vite has in the config, it will work as the vite works.
However, you may change the files, when they are generated by the project, so the configuration will have build: { sourcemap: true } explicitly written in vite.config.ts file.
Released vite-plugin-ruby@1.0.18, which allows disabling source maps in production by using build: { sourcemap: false }.
The default remains unchanged, as the advantages of generating source maps outweigh the disadvantages in most scenarios, it has better alignment with the Rails ecosystem, and it can be easily turned off now that the bug is fixed.
bundle update vite_ruby
.Description 馃摉
bundle exec vite build
generates source maps, where vite as default has them turned off. Even settingbuild.sourcmap
tofalse
explicitly does not work. As the result, source maps are pushed to the production environment.The text was updated successfully, but these errors were encountered: