Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportDeclaration(path, state){} 监听 可以会比 CallExpression(path, state) {} 监听 后执行。 #630

Open
curry-wxj opened this issue May 10, 2023 · 0 comments

Comments

@curry-wxj
Copy link

ImportDeclaration(path, state){} 监听 可以会比 CallExpression(path, state) {} 监听 后执行。
例如:

  import { Component } from "react";
import { Table, Select, Message } from "@alifd/next";
console.log(Table, Select, Message)

有一个插件 会将 import { Table, Select, Message } from "@alifd/next"; 处理成 import { Table, Message } from "@alifd/next"; import Select from './MySelect';
处理完后 会先进入 CallExpression处理 console.log(Table, Select, Message) 才会在 进入ImportDeclaration 搜集 import { Table, Message }的 依赖。
请问大佬们有什么解决方案吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant