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 }}
Repository navigation
[HELP WANTED] Perform source-map audit against webpack #3165
We would like help (as we cannot make this a priority with current resources) creating every type of sourcemap, and then either manually (or via unit testing) validate that the source-map types that we have configured in place currently (starting at webpack2.1.0-beta.25) and work in Chrome.
Results
This will allow us to:
Create unit tests that are sturdier, and a source map validation tool to ensure it works to this specification (if it doesn't already exist).
Identify if source-map issues are chrome bugs or webpack bugs.
If there is anyone who would like to tackle this, please comment in the issue, then we can be aware of who is working on it, and how
Reacted by Marvin Hagemeister, Kees Kluskens, Matthew Kime, Sam J, Robert R., Filipe Silva, Michael Prentice, Sean Vieira, Joe Brown, Pine and 99 more
Reacted by Jessica Franco, Matthew Kime, Filipe Silva, Brandon J. Boone, Leo Urbina, Pepijn, Snorre Lothar von Gohren Edwin, vandalouze, cnjs, Matthew Herbst and 6 more
npm install && npm run build && npm run chrome:webpack and you should be able to see the issue - the original 'index.js' file is referenced in the sourcemap but its not displayed in the sources list.
Reacted by Sam J, Sean Vieira, Pine, ghuser, Rafe Goldberg and Keith Harvey
Yeah id say just one at a time! I haven't tried out the validator that Addy suggested just yet but I would think that could provide a great way to iterate quickly.
while webpack could certainly use a good sourcemap test suite, i'd hold off on pursuing bugs in webpack's sourcemap production until we're certain that chrome works correctly or we find a better standard.
Hi everyone,
I'm using Chrome Version 72.0.3626.121 (Official Build) (64-bit).
and Webpack 4.4.22.
Webpack configuration is according to production guide from documentation.
Used devtool: source-map.
Chrome says it detected sourcemaps. I can access original source code. But while debugging can't inspect variables. development build is working fine with sourcemaps.
Any help is appreciated.
Thanks
Reacted by Akimyou, Illia Lukianov, Ron Korland, Alexandre Poirier, Yasich217, Doug Ludlow, Keith Harvey, Rubén Salas and Linh Bui
Hi, not sure i am in the right place. But i have always had issues with async/await being transformed to regeneratorRuntime. It is impossible to step through the code, you get sent into the source code. We work around this by just not transpiling async/await during development, but would prefer a proper solution.
We have a similar issue with private fields, babel allows us to transpile them, but they are not inspectable in Chrome :(
Sourcemaps not working for me on webpack 5.6.0 no matter which type I use. I always get the transpiled code for development mode, I need to get the original code.
I want to close the problem due to a large number of reports that we cannot check, i.e. same here, don't work and etc without examples/repos/screenshots/etc. If you have the problem with source maps please open a new issue with steps how we can reproduce it. Also many issues were solved in webpack@5, so I recommend to check this before. Thanks
Activity
addyosmani commentedon Oct 20, 2016
Have you looked at https://github.com/mattrobenolt/sourcemap-validator before? I believe in the past they've tried to roughly approximate how well support with the current spec could be captured by their validator.
mattkime commentedon Oct 21, 2016
I made a small (very small) hello world script and passed it through webpack. the resulting sourcemap does not work in chrome.
https://github.com/mattkime/node-test-debuggers
npm install && npm run build && npm run chrome:webpackand you should be able to see the issue - the original 'index.js' file is referenced in the sourcemap but its not displayed in the sources list.TheLarkInn commentedon Oct 21, 2016
@addyosmani thank you so much.
@mattkime are you familiar will all the types of sourcemaps you can generate with webpack?
TheLarkInn commentedon Oct 21, 2016
See https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js#L200-L232
mattkime commentedon Oct 21, 2016
@TheLarkInn I am. I guess I should iterate through all the options? I was trying to find the simplest starting point and iterate out through there.
TheLarkInn commentedon Oct 21, 2016
Yeah id say just one at a time! I haven't tried out the validator that Addy suggested just yet but I would think that could provide a great way to iterate quickly.
mattkime commentedon Oct 21, 2016
The validator is, um, under documented. I'm not certain what it does or doesn't document.
I gave 'eval-soucre-map' a go and it worked well on my simple test and failed on a complex project.
As mention in the issue description, I'm not sure if i'm looking at webpack or chrome bugs.
While I'm happy to pitch in, I need some guidance to get started on this.
mattkime commentedon Oct 21, 2016
Ideally we'd find someone on the Google Chrome project that could give us some guidance.
found some very helpful stuff -
http://sourcemapper.qfox.nl/
http://www.mattzeunert.com/2016/02/14/how-do-source-maps-work.html
joachimprinzbach commentedon Oct 21, 2016
I did also like this link for some information: http://jlongster.com/On-the-Road-to-Better-Sourcemaps-in-the-Firefox-Developer-Tools
mattkime commentedon Oct 21, 2016
this shows a sourcemap working when loaded via front end and failing when loaded via node
https://github.com/mattkime/chrome-devtools-sourcemap-test
while webpack could certainly use a good sourcemap test suite, i'd hold off on pursuing bugs in webpack's sourcemap production until we're certain that chrome works correctly or we find a better standard.
72 remaining items
lee149205 commentedon Aug 22, 2018
i use devtool: 'source-map'

It's ok . But I cannot watch variable (always "not available")
lee149205 commentedon Aug 22, 2018
oh, nevermind
I try comment uglify, it works well with devtool: 'source-map'
plugins: [
//uglify
]
fabpico commentedon Aug 24, 2018
Chrome 68.0.3440.106
Since a few days, sometimes on specific lines, i can't set a breakpoint. Since 10 months i am using
eval-source-map, never had problems before.Tried with
source-mapandcheap-module-eval-source-mapandcheap-eval-source-map. Does not change anything.jxintang commentedon Sep 10, 2018
@FabianPiconeDev
Having this same issue. updating chrome to 69 solves the problem.
elliottregan commentedon Oct 10, 2018
Can you add a similar message for the source map bug in Firefox?
russelldavis commentedon Feb 9, 2019
Breakpoints in Chrome don't work with
cheap-module-source-map. See react/create-react-app#6074 (comment).nsaikiran commentedon Mar 8, 2019
Hi everyone,
I'm using Chrome
Version 72.0.3626.121 (Official Build) (64-bit).and Webpack
4.4.22.Webpack configuration is according to production guide from documentation.
Used
devtool: source-map.Chrome says it detected sourcemaps. I can access original source code. But while debugging can't inspect variables.
developmentbuild is working fine with sourcemaps.Any help is appreciated.
Thanks
kane-mason commentedon Apr 15, 2020
Hi, not sure i am in the right place. But i have always had issues with async/await being transformed to regeneratorRuntime. It is impossible to step through the code, you get sent into the source code. We work around this by just not transpiling async/await during development, but would prefer a proper solution.
We have a similar issue with private fields, babel allows us to transpile them, but they are not inspectable in Chrome :(
Chrome 81.0.4044.92
Webpack 4.41.2
testacode commentedon Nov 25, 2020
Sourcemaps not working for me on webpack 5.6.0 no matter which type I use. I always get the transpiled code for development mode, I need to get the original code.
alexander-akait commentedon Nov 26, 2020
@testacode when you write it, please provide reproducible test repo, how we can help with this information?
alexander-akait commentedon Feb 5, 2021
I want to close the problem due to a large number of reports that we cannot check, i.e.
same here,don't workand etc without examples/repos/screenshots/etc. If you have the problem with source maps please open a new issue with steps how we can reproduce it. Also many issues were solved in webpack@5, so I recommend to check this before. ThanksColCh commentedon Feb 16, 2021
@alexander-akait there is a link for this issue in docs
https://webpack.js.org/configuration/devtool/#devtool:~:text=There%20are%20some%20issues%20with%20Source%20Maps%20in%20Chrome
May be remove that reference as well? Opening closed issue using that link would provide WTF signal from people :)
alexander-akait commentedon Feb 16, 2021
@ColCh Thanks, webpack/webpack.js.org#4606, we will remove it