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 {
373
373
* externs.
374
374
*/
375
375
private void extractExterns () throws IOException {
376
- ExtractorConfig config = new ExtractorConfig (true ).withExterns (true );
376
+ ExtractorConfig config = new ExtractorConfig (false ).withExterns (true );
377
377
FileExtractor extractor = new FileExtractor (config , outputConfig , trapCache , extractorState );
378
378
FileVisitor <? super Path > visitor = new SimpleFileVisitor <Path >() {
379
379
@ Override
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ public ExtractorConfig(boolean experimental) {
162
162
this .ecmaVersion = experimental ? ECMAVersion .ECMA2019 : ECMAVersion .ECMA2018 ;
163
163
this .platform = Platform .AUTO ;
164
164
this .jsx = true ;
165
- this .sourceType = SourceType .SCRIPT ;
165
+ this .sourceType = SourceType .AUTO ;
166
166
this .htmlHandling = HTMLHandling .ELEMENTS ;
167
167
this .tolerateParseErrors = true ;
168
168
if (experimental ) {
@@ -171,6 +171,7 @@ public ExtractorConfig(boolean experimental) {
171
171
this .esnext = true ;
172
172
this .v8Extensions = true ;
173
173
}
174
+ this .typescriptMode = TypeScriptMode .NONE ;
174
175
this .defaultEncoding = StandardCharsets .UTF_8 .name ();
175
176
}
176
177
You can’t perform that action at this time.
0 commit comments