Conversation
|
We should also keep an eye on performance with this change. |
Codecov Report
@@ Coverage Diff @@
## master #355 +/- ##
=======================================
Coverage 74.61% 74.61%
=======================================
Files 12 12
Lines 386 386
=======================================
Hits 288 288
Misses 98 98
Continue to review full report at Codecov.
|
| { | ||
| args: ["run", "test/fixtures/fail.ts"], | ||
| expect (code, stdout, stderr) { | ||
| return code === 1 && stderr.toString().indexOf('fail.ts:2:1') !== -1; |
There was a problem hiding this comment.
So the column number is still wrong (1), even after changing devtool?
|
@guybedford I just checked out this branch and built the code to see how it would work with #353 and it is actually worse. Visit http://localhost:3000 Expected: Actual: |
|
@styfle interesting, must have changed since my first tests. I've pushed up a patch with a fix. |
|
First I ran this in the Then I ran this in the I still see the same (incorrect) error: I even tried disabling chrome caching 🤷♂️ |
|
Ok so change We'll have to make sure that user's enable this feature in their TS projects. |
This fixes the loaders to support sourcemap chaining properly, and includes a simple integration test to show the TypeScript sourcemaps are that the right offset.
Fixes #353
There will likely be more work to be done here in due course, which we can improve over time (in terms of ensuring the fidelity of the source maps, not their accuracy).
Prerequisite on vercel/webpack-asset-relocator-loader#21.