fix(loader): source map sources and file paths#602
Conversation
…ns.file` and `options.outFile` (outFile does not cause anything to be be written to the file system.) Signed-off-by: Nick Petruzzelli <code.npetruzzelli@gmail.com>
…ult out of sensitivity to existing scripts that may expect this behavior. Signed-off-by: Nick Petruzzelli <code.npetruzzelli@gmail.com>
|
See also: webpack/css-loader#753 |
|
I'm seeing some build errors that I did not experience locally. I'll have to look have another look. |
Signed-off-by: Nick Petruzzelli <code.npetruzzelli@gmail.com>
… map. Signed-off-by: Nick Petruzzelli <code.npetruzzelli@gmail.com>
|
Looks like:
|
alexander-akait
left a comment
There was a problem hiding this comment.
No new option, please provide minimum reproducible test repo, we should fix it without new options
|
Also you PR is breaking change, we can't accept this |
Signed-off-by: Nick Petruzzelli <code.npetruzzelli@gmail.com>
|
@evilebottnawi - I've removed the option part of it. I still need to update the test suite and create a test repo. It may take me some time to get to it. I'll comment again once it is all in place. You may see commits trickle in in the mean time. I believe concerns about it being a breaking change may be addressed by then, if not, I may have more questions at that time. |
… pass. Signed-off-by: Nick Petruzzelli <code.npetruzzelli@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #602 +/- ##
==========================================
- Coverage 97.81% 97.67% -0.14%
==========================================
Files 6 6
Lines 137 129 -8
==========================================
- Hits 134 126 -8
Misses 3 3
Continue to review full report at Codecov.
|
sources and filesources and file paths
sources and file pathssources and file paths
Codecov Report
@@ Coverage Diff @@
## master #602 +/- ##
==========================================
- Coverage 97.79% 97.67% -0.12%
==========================================
Files 6 6
Lines 136 129 -7
==========================================
- Hits 133 126 -7
Misses 3 3
Continue to review full report at Codecov.
|
|
Close due inactivity, if you still have problem please open issue, sorry for delay |
sourcesandfileto be URLs that are relative to the file containing the map.legacySourceMapsoption tofalse. Making this fix the default behavior would be a breaking change requiring a new major version.Side note:
npm run test-source-mapthrows an error when using webpack 4.5+. I needed to install webpack 3.x for it to run correctly.This contributes to the fixes for