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
Set webpack cfg devtool property to 'nosources-source-map' #7412
Comments
Hm, I don't think this will be supported; it's pretty niche, and I'm not sure of anything |
Suppose I have the following error: in file:
on production if user open Chrome DevTools user should see error with exact line number (as it is show below)
but user should not be able to see original source in |
I think there are ways to make your sourcemaps private and still use them on your production site. Honestly though I don’t use dev-tools too often in production, so I don’t know exactly how. At work we use sentry for tracking errors, which supports uploading a private source map, and tracebacks correspond to the original source line, so at least conceptually I know it’s possible. |
ok - so pls let me sum up your point. If I create source map files but won't public them on production or deny public access to them user won't be able to see code but also won't be able to see exact error line number. To decode line number I need to have my previously generated source map files and additional tool (ex: Sentry) to traceback to the original source map. I checked some Sentry alternatives These tools give access to error log remotely (without bothering user) |
I'm only saying that your use case is covered through other means:
Hiding your soucemaps is kinda pointless in the first place, but I understand the sentiment. I only used sentry as an example, but I've been very happy using them for frontend error tracking so that may be a good route. I never go over on their free plan. |
Webpack cfg devtool property other than: 'cheap-module-source-map', 'source-map' or false
This is mostly frustrating for production build where I'd like to have possibility to set devtool='nosources-source-map' or other less specific source-map
Now devtool is calculated as below:
so there is no chance to override devtool value either for development nor production mode.
The text was updated successfully, but these errors were encountered: