Commit 6aca9028 authored by 楊慶堂's avatar 楊慶堂

init

parents
/infer-out/
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
.mvn/timing.properties
log/
logs/
.idea/
hrb_backend.iml
.DS_Store
.project
.classpath
.settings
/output.log
build.xml
/bin/
*.map
/men:CRMDB.*
.springBeans
/dicomImages/
node_modules
yarn.lock
.sass-cache
*.iml
android Source map 打包
node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform android --dev false --reset-cache --bundle-output android.bundle --sourcemap-output android.bundle.map
iOS Source map 打包
node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output ios.bundle --sourcemap-output ios.bundle.map
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>idv.scott</groupId>
<artifactId>SourceMap</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.google.javascript</groupId>
<artifactId>closure-compiler</artifactId>
<version>v20160208</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package idv.scott;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import com.google.debugging.sourcemap.SourceMapConsumerV3;
import com.google.debugging.sourcemap.SourceMapParseException;
public class Test {
public static void main(String[] args) throws IOException, SourceMapParseException {
String sourceMap = FileUtils.readFileToString(new File("test.bundle.map"));
SourceMapConsumerV3 consumer = new SourceMapConsumerV3();
consumer.parse(sourceMap);
System.out.println(consumer.getMappingForLine(577, 2554));
System.out.println(consumer.getMappingForLine(41, 33914));
System.out.println(consumer.getMappingForLine(41, 33972));
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment