Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd5ee5b

Browse files
committed
fix: fix new import declaration
1 parent8166cb2 commitdd5ee5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎generator/codemods/utils/add-import.js

Lines changed: 1 addition & 1 deletion
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-
constnewImportDecl=j.ImportDeclaration(
39+
constnewImportDecl=j.importDeclaration(
4040
[newImportSpecifier],
4141
j.stringLiteral(source)
4242
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp