Expected:
const module = await import('...')
Actual:
const module = await
import ('...') ^
^
await
and import
import
and ('...')
Webpack uses this syntax for importing modules lazily. Not sure if this is (or going to be) a standard though.
Edit: There's actually a (stage 3) proposal for dynamic import: https://github.com/tc39/proposal-dynamic-import
@laggingreflex #1393 Partially addresses this.
Most helpful comment
Webpack uses this syntax for importing modules lazily. Not sure if this is (or going to be) a standard though.
Edit: There's actually a (stage 3) proposal for dynamic import: https://github.com/tc39/proposal-dynamic-import