Closed verkholantsev closed 9 months ago
Thanks for the report! That does indeed look like a bug. I'd be happy to review a PR fixing things if anyone has the bandwidth to take it on.
You'll need to add the --overwrite
flag to importjs for the import to be written back to file. Like this:
importjs fix --overwrite example.js
It adds the import url from 'url'
as expected.
Closing this, but if you need more guidance feel free to reopen. Thanks.
Hey there, thank you for
import-js
! Looks like I've found an issue, please read the description.Prerequisites
Step one. Create
example.js
with this contentStep two. Run importjs.
Expected behaviour
No imports is added.
Actual behaviour
Import of module
url
is added tofileContent
Config
Version
Please let me know if you need more details.