-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Describe the bug
This is a parser bug here, the syntax like:
import('a', 'b', 'c');
import();
It should thow parse error like babel test case(dynamic import shoud only accept one or two arguments):
Typescript also throw error: https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgFAcgIYIDQAIECM2YMYICUA3AFCiSxyFA
Input code
import('a', 'b', 'c');
import();
Config
Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
it should throw parser error.
Actual behavior
No response
Version
1.13.5
Additional context
No response