You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2018/11/19 20:34:10 UTC
[royale-compiler] 01/03: compiler-jx: GoogDepsWriter preserves
sourceRoot field of source maps when it modifies them
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit fe6877f9ef03f4a065cd6c0ad35738bed1e63119
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Nov 19 12:31:29 2018 -0800
compiler-jx: GoogDepsWriter preserves sourceRoot field of source maps when it modifies them
---
.../java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
index c9422f3..a8a8032 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
@@ -718,6 +718,7 @@ public class GoogDepsWriter {
{
final SourceMapGeneratorV3 generator = new SourceMapGeneratorV3();
final SourceMapEntryCounter counter = new SourceMapEntryCounter();
+ generator.setSourceRoot(consumer.getSourceRoot());
consumer.visitMappings(counter);
consumer.visitMappings(new SourceMapConsumerV3.EntryVisitor()
{
@@ -788,6 +789,7 @@ public class GoogDepsWriter {
}
final SourceMapGeneratorV3 generator = new SourceMapGeneratorV3();
final SourceMapEntryCounter counter = new SourceMapEntryCounter();
+ generator.setSourceRoot(consumer.getSourceRoot());
consumer.visitMappings(counter);
consumer.visitMappings(new SourceMapConsumerV3.EntryVisitor()
{
@@ -826,6 +828,7 @@ public class GoogDepsWriter {
}
final SourceMapGeneratorV3 generator = new SourceMapGeneratorV3();
final SourceMapEntryCounter counter = new SourceMapEntryCounter();
+ generator.setSourceRoot(consumer.getSourceRoot());
consumer.visitMappings(counter);
consumer.visitMappings(new SourceMapConsumerV3.EntryVisitor()
{