Merge master into next.

This commit is contained in:
Aditya Sharad
2018-11-14 10:06:27 +00:00
97 changed files with 5908 additions and 212 deletions

View File

@@ -373,7 +373,7 @@ public class AutoBuild {
* externs.
*/
private void extractExterns() throws IOException {
ExtractorConfig config = new ExtractorConfig(true).withExterns(true);
ExtractorConfig config = new ExtractorConfig(false).withExterns(true);
FileExtractor extractor = new FileExtractor(config, outputConfig, trapCache, extractorState);
FileVisitor<? super Path> visitor = new SimpleFileVisitor<Path>() {
@Override

View File

@@ -162,7 +162,7 @@ public class ExtractorConfig {
this.ecmaVersion = experimental ? ECMAVersion.ECMA2019 : ECMAVersion.ECMA2018;
this.platform = Platform.AUTO;
this.jsx = true;
this.sourceType = SourceType.SCRIPT;
this.sourceType = SourceType.AUTO;
this.htmlHandling = HTMLHandling.ELEMENTS;
this.tolerateParseErrors = true;
if (experimental) {
@@ -171,6 +171,7 @@ public class ExtractorConfig {
this.esnext = true;
this.v8Extensions = true;
}
this.typescriptMode = TypeScriptMode.NONE;
this.defaultEncoding = StandardCharsets.UTF_8.name();
}