Closed jameskerr closed 10 months ago
I'm using d3 in a file and previously had code like this:
import * as d3 from "d3" d3.select("svg")....
After running importjs rewrite --overwrite <filename>, my file looks like:
importjs rewrite --overwrite <filename>
d3.select("svg")
It's missing the import statement.
Is there some config I can set so that it knows to include d3 as an import * as?
import * as
Hi. I tried to reproduce this but couldn't. Is this still an issue for you?
I'll close this issue now as it is quite old, but if it still needs attention please re-open it. Thanks.
I'm using d3 in a file and previously had code like this:
After running
importjs rewrite --overwrite <filename>
, my file looks like:It's missing the import statement.
Is there some config I can set so that it knows to include d3 as an
import * as
?