0

In a typical react app, using babel with the presets es2015, react and stage-2 and with sourcemaps enabled, setting the breakpoint in a generator function, the breakpoint will move automatically to somewhere else.

.babelrc

{
  "presets": ["es2015", "react", "stage-2"]
}
Bergi
  • 630,263
  • 148
  • 957
  • 1,375
Nasif Md. Tanjim
  • 3,862
  • 4
  • 28
  • 38

1 Answers1

0

Could be a bug with either the source maps of the transform or the source map support in the Chrome Devtools. this is a result of using babel, disabling generator-transpilation solves this.

Here's what I used,

.babelrc

{
  "plugins": ["transform-es2015-modules-commonjs"],
  "presets": ["react"]
}
Mayank Shukla
  • 100,735
  • 18
  • 158
  • 142
Nasif Md. Tanjim
  • 3,862
  • 4
  • 28
  • 38