vercel / nft

Node.js dependency tracing utility
https://npmjs.com/@vercel/nft
MIT License
1.31k stars 136 forks source link

feat: support import assertions #417

Closed onsclom closed 4 months ago

onsclom commented 4 months ago

acorn-import-attributes did not support import assertions before, but now it does!

This is important because acorn is failing to parse runner.js in this issue due to an import assertion.

onsclom commented 4 months ago

@onsclom I believe assert was renamed to with.

Can you also add a test for with as well?

https://github.com/tc39/proposal-import-attributes

This PR introduced a test for with so we are good there!

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 0.27.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: