Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dynamic imports must disallow trailing comma #8957
Dynamic imports are allowed to have trailing commas. The spec says that
import("abc"); // OK import("def", ); // should fail to parse!
This should raise a parse error. The ImportCall production has
and an AssignmentExpression cannot have a trailing comma.
See also: facebook/flow#7124
See also: tc39/proposal-dynamic-import#15
Babel Configuration (.babelrc, package.json, cli command)
Default on REPL (es2015, stage-2, react).
Hey @wchargin! We really appreciate you taking the time to report an issue. The collaborators