-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Description
How about Node.js sets --enable-source-maps
to true by default. If the user wants to get the real stack track, he can use --disable-source-maps
.
The problem here is that tools like Vite cannot really leverage --enable-source-maps
because it forces Vite users to set the flag --enable-source-maps
which is less than ideal. We don't want to tell Vite users "you need to use this and that flag"; we want things to just work. We are actually interested in using source map support (which is a lovely new feature!) but the flag thing is a problem, see related discussions at vitejs/vite#3300.
Source map support is mostly taken care by frameworks; it is rarely implemented by the Node.js user himself. So we shouldn't leak this flag into user-land.
Also, in general, I'd argue that having source maps enabled by default seems to be a more sensible default.