Skip to content

Commit a3a8104

Browse files
committed
fix: 'remove-vue-use' will throw undefined type error
1 parent a6b2822 commit a3a8104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transformations/remove-vue-use.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const transformAST: ASTTransformation<Params> = (
3636
const removableUseCalls = vueUseCalls.filter(({ node }) => {
3737
if (j.Identifier.check(node.arguments[0])) {
3838
const plugin = node.arguments[0].name
39-
if (removablePlugins.includes(plugin)) {
39+
if (removablePlugins?.includes(plugin)) {
4040
removedPlugins.push(plugin)
4141
return true
4242
}

0 commit comments

Comments
 (0)