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
I have a simple project with no parcel config using TypeScript and vue. Having a comment in a ts file breaks the sourcemaps and the line mapping is wrong.
Lines given on console output should match the source position where the console-statement was issued. This translates to break points and debugger statements.
馃槸 Current Behavior
Source lines are offset when comments are present in the file.
馃悰 bug report
I have a simple project with no parcel config using TypeScript and vue. Having a comment in a ts file breaks the sourcemaps and the line mapping is wrong.
Repository that consistently reproduces the behavior: https://github.com/smoli/parcelSourceMapError
--> The output is associated with the wrong line number.
Tested on Chrome 97 and Firefox 96
Turning off HMR does not help.
This is so simple to reproduce, I might do something wrong?
馃帥 Configuration (.babelrc, package.json, cli command)
There is no config, neither for parcel nor for ts.
Find a repository here, that reproduces the problem: https://github.com/smoli/parcelSourceMapError
package.json
馃 Expected Behavior
Lines given on console output should match the source position where the console-statement was issued. This translates to break points and debugger statements.
馃槸 Current Behavior
Source lines are offset when comments are present in the file.
馃拋 Possible Solution
See comment below
馃敠 Context
Makes debugging in large projects impossible.
馃捇 Code Sample
https://github.com/smoli/parcelSourceMapError
馃實 Your Environment
The text was updated successfully, but these errors were encountered: