File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/transforms/v2-to-v3/utils Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const addV3ClientImport = (
13
13
source : { value : v3ClientPackageName } ,
14
14
} ) ;
15
15
16
- // Import decleration already exists.
16
+ // Import declaration already exists.
17
17
if ( existingImports . size ( ) ) {
18
18
existingImports . forEach ( ( nodePath ) => {
19
19
// Append to existing import if specifier not present.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const addV3ClientRequire = (
27
27
} ,
28
28
} ) ;
29
29
30
- // Require decleration already exists.
30
+ // Require declaration already exists.
31
31
if ( existingRequires . size ( ) ) {
32
32
existingRequires . forEach ( ( nodePath ) => {
33
33
// Append to existing require if property not present.
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ export const removeImportIdentifierName = (
15
15
specifiers : [ { local : { name : identifierName } } ] ,
16
16
source : { value : literalValue } ,
17
17
} )
18
- . forEach ( ( declerationPath ) => {
18
+ . forEach ( ( declarationPath ) => {
19
19
// Remove default import from ImportDeclaration.
20
- declerationPath . value . specifiers = declerationPath . value . specifiers . filter (
20
+ declarationPath . value . specifiers = declarationPath . value . specifiers . filter (
21
21
( specifier ) => specifier . local . name !== identifierName
22
22
) ;
23
23
// Remove ImportDeclaration if there are no other imports.
24
- if ( declerationPath . value . specifiers . length === 0 ) {
25
- j ( declerationPath ) . remove ( ) ;
24
+ if ( declarationPath . value . specifiers . length === 0 ) {
25
+ j ( declarationPath ) . remove ( ) ;
26
26
}
27
27
} ) ;
28
28
} ;
You can’t perform that action at this time.
0 commit comments