File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ public void run() throws IOException {
373373 * externs.
374374 */
375375 private void extractExterns () throws IOException {
376- ExtractorConfig config = new ExtractorConfig (true ).withExterns (true );
376+ ExtractorConfig config = new ExtractorConfig (false ).withExterns (true );
377377 FileExtractor extractor = new FileExtractor (config , outputConfig , trapCache , extractorState );
378378 FileVisitor <? super Path > visitor = new SimpleFileVisitor <Path >() {
379379 @ Override
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ public ExtractorConfig(boolean experimental) {
162162 this .ecmaVersion = experimental ? ECMAVersion .ECMA2019 : ECMAVersion .ECMA2018 ;
163163 this .platform = Platform .AUTO ;
164164 this .jsx = true ;
165- this .sourceType = SourceType .SCRIPT ;
165+ this .sourceType = SourceType .AUTO ;
166166 this .htmlHandling = HTMLHandling .ELEMENTS ;
167167 this .tolerateParseErrors = true ;
168168 if (experimental ) {
@@ -171,6 +171,7 @@ public ExtractorConfig(boolean experimental) {
171171 this .esnext = true ;
172172 this .v8Extensions = true ;
173173 }
174+ this .typescriptMode = TypeScriptMode .NONE ;
174175 this .defaultEncoding = StandardCharsets .UTF_8 .name ();
175176 }
176177
You can’t perform that action at this time.
0 commit comments