You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import attributes were initially shipped in Node 21, but have recently been backported into 18 and 20 branches, specifically available in v21.0.0, v20.10.0, v18.20.0.
Current behaviour enables them only for node 21 and above:
$echo"import foo from 'foo.json' with {type: 'json'}"|esbuild--target="node20"importfoofrom"foo.json";$echo"import foo from 'foo.json' with {type: 'json'}"|esbuild--target="node21"importfoofrom"foo.json"with{type: "json"};