parcel: TypeScript source maps don't match lines

Just started a new project yesterday and sourcemaps debugging doesn’t hit the correct lines in chrome. Using "build": "parcel build ./src/index.ts --out-dir chrome-extension"

image

can’t hit my breakpoints

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 29 (11 by maintainers)

Most upvoted comments

The project is internal. However, I will create a simpler copy of the project at the weekend. If we are lucky that would have the same problems as well. 😃

@aalpgiray Could you please provide a reproduction? Sourcemaps don’t work with HMR, I’ve tried to fix this but no browser would support the current approach by Parcel (https://github.com/parcel-bundler/parcel/issues/643).

Sorry I have migrated to webpack already.