import-js icon indicating copy to clipboard operation
import-js copied to clipboard

import * as d3 from 'd3'

Open jameskerr opened this issue 5 years ago • 0 comments

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?

jameskerr avatar Apr 11 '19 19:04 jameskerr