-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Description
Describe the bug
If I were to `import { await } from 'svelte/internal/client``,
I get a this error:
Unexpected reserved word 'await'. (1:9)
> 1 | import { await } from 'x';
or
x `await` cannot be used as an identifier in an async context
,-[input.ts:1:1]
1 | import { x as await } from 'x';
: ^^^^^
2 |
Reproduction
ESBuild's behavior is a little different:
https://esbuild.github.io/try/#dAAwLjI1LjgAAGltcG9ydCB7IGF3YWl0IH0gZnJvbSAneCc7Cgphd2FpdChmb28pOw
Logs
System Info
doesn't matter ;)
keywords can't be identifiers
Severity
blocking all usage of svelte
Metadata
Metadata
Assignees
Labels
No labels