import-js
import-js copied to clipboard
import * as d3 from 'd3'
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:
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
?