fix(compiler-sfc): handle type modifier in import specifiers (#5498)
This commit is contained in:
@@ -802,7 +802,9 @@ export function compileScript(
|
||||
node.source.value,
|
||||
specifier.local.name,
|
||||
imported,
|
||||
node.importKind === 'type',
|
||||
node.importKind === 'type' ||
|
||||
(specifier.type === 'ImportSpecifier' &&
|
||||
specifier.importKind === 'type'),
|
||||
false
|
||||
)
|
||||
}
|
||||
@@ -979,7 +981,9 @@ export function compileScript(
|
||||
source,
|
||||
local,
|
||||
imported,
|
||||
node.importKind === 'type',
|
||||
node.importKind === 'type' ||
|
||||
(specifier.type === 'ImportSpecifier' &&
|
||||
specifier.importKind === 'type'),
|
||||
true
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user