Skip to content

Commit dd5ee5b

Browse files
committed
fix: fix new import declaration
1 parent 8166cb2 commit dd5ee5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/codemods/utils/add-import.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function addImport(context, specifier, source) {
3636
// add new specifier to the existing import declaration
3737
matchedDecl.get(0).node.specifiers.push(newImportSpecifier)
3838
} else {
39-
const newImportDecl = j.ImportDeclaration(
39+
const newImportDecl = j.importDeclaration(
4040
[newImportSpecifier],
4141
j.stringLiteral(source)
4242
)

0 commit comments

Comments
 (0)