mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
Support top-level-await in TypeScript (#3024)
This commit is contained in:
parent
5f7ab4884c
commit
ae26a9c7a2
3 changed files with 11 additions and 0 deletions
|
@ -539,6 +539,9 @@ window.compilerMain = function compilerMain(): void {
|
|||
|
||||
diagnostics = ts.getPreEmitDiagnostics(program).filter(
|
||||
({ code }): boolean => {
|
||||
// TS1308: 'await' expression is only allowed within an async
|
||||
// function.
|
||||
if (code === 1308) return false;
|
||||
// TS2691: An import path cannot end with a '.ts' extension. Consider
|
||||
// importing 'bad-module' instead.
|
||||
if (code === 2691) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue