mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Fix issue with detecting AMD like imports (#4009)
This commit is contained in:
parent
503d8bfef2
commit
98e585a284
4 changed files with 16 additions and 1 deletions
|
@ -100,7 +100,12 @@ export class SourceFile {
|
|||
log(`Skipping imports for "${this.filename}"`);
|
||||
return [];
|
||||
}
|
||||
const preProcessedFileInfo = ts.preProcessFile(this.sourceCode, true, true);
|
||||
const preProcessedFileInfo = ts.preProcessFile(
|
||||
this.sourceCode,
|
||||
true,
|
||||
this.mediaType === MediaType.JavaScript ||
|
||||
this.mediaType === MediaType.JSX
|
||||
);
|
||||
this.processed = true;
|
||||
const files = (this.importedFiles = [] as Array<[string, string]>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue