JS: use '/' as separator on all platforms to prevent sourcemap parse errors
This commit is contained in:
@@ -127,6 +127,7 @@ public class SourceMap3Builder implements SourceMapBuilder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addMapping(String source, int sourceLine, int sourceColumn) {
|
public void addMapping(String source, int sourceLine, int sourceColumn) {
|
||||||
|
source = source.replace(File.separatorChar, '/');
|
||||||
boolean newGroupStarted = previousGeneratedColumn == -1;
|
boolean newGroupStarted = previousGeneratedColumn == -1;
|
||||||
if (newGroupStarted) {
|
if (newGroupStarted) {
|
||||||
previousGeneratedColumn = 0;
|
previousGeneratedColumn = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user