Skip to content

Commit 3fb68f3

Browse files
authored
fix: 'global-filter' will warn (#82)
1 parent bb36a41 commit 3fb68f3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

transformations/global-filter.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ export const transformAST: ASTTransformation = ({ root, j }) => {
2121
})
2222

2323
if (!appDeclare.length) {
24-
//dont transform new Vue(...) => Vue.createApp(...)?
25-
const newVue = root.find(j.NewExpression, {
26-
callee: {
27-
type: 'Identifier',
28-
name: 'Vue'
29-
}
30-
})
31-
32-
// need to transform global-filter first
33-
if (newVue.length) {
34-
console.warn(
35-
'please transform new-global-api before transform global-filter!'
36-
)
37-
}
3824
return
3925
}
4026
const appName = appDeclare.at(0).get().node.id.name

0 commit comments

Comments
 (0)