-
Notifications
You must be signed in to change notification settings - Fork 952
Closed
Description
According to this: tc39/ecma262#3057 (comment) we are, or very soon will be, at stage 4 with dynamic import attributes.
Dynamic import attributes are still in pending status due to stage 3 (#1111).
Can we now include this feature in Acorn as well?
Motivation
The Node REPL does not support direct dynamic import with await.
> await import('/tmp/data.json', { with: { type: 'json' } });
Uncaught SyntaxError:
await import('/tmp/data.json', { with: { type: 'json' } })
^
Unexpected token ','
This unwanted behavior is caused by Acorn's lack of support for dynamic import attributes (nodejs/node#47463).
Metadata
Metadata
Assignees
Labels
No labels