Closed
Description
Bug Report
π Search Terms
module node16 import assertions
π Version & Regression Information
Happened in 4.8.2, also 4.7.4 and 4.8 beta in playground.
β― Playground Link
Playground link with relevant code
π» Code
const file = "foo.json"
const test = await import(file, {assert: {type: 'json'}})
export {}
π Actual behavior
Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'.
π Expected behavior
No error