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
{{ message }}
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.
When I build my app for production (process.env === "production") my sourcemap looks perfect. When I build my app for development, however, I get the following:
This turns debugging into guess-and-check as I can no longer find the exact line in my code where an error is being thrown. Admittedly it's very rapid guess-and-check thanks to hot module reloading, but I'd prefer to just refresh the page after every change and have my original, untainted source files.
Looking at compiler.js I imagine this would only require making a change to line 156. Change:
I'm not sure where default options are configured in the Vueify source code, but after this change you would just want to set the default for hotReload to true (allowing someone to override it with false). This way people like me who would rather not use hot module reloading in development can still make use of Vueify.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hot module reloading breaks source maps in development. Here is an example App.vue file:
When I build my app for production (
process.env === "production"
) my sourcemap looks perfect. When I build my app for development, however, I get the following:This turns debugging into guess-and-check as I can no longer find the exact line in my code where an error is being thrown. Admittedly it's very rapid guess-and-check thanks to hot module reloading, but I'd prefer to just refresh the page after every change and have my original, untainted source files.
Looking at
compiler.js
I imagine this would only require making a change to line 156. Change:to:
I'm not sure where default options are configured in the Vueify source code, but after this change you would just want to set the default for
hotReload
totrue
(allowing someone to override it withfalse
). This way people like me who would rather not use hot module reloading in development can still make use of Vueify.The text was updated successfully, but these errors were encountered: