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

fix: 修复启动第一次后监听不成功问题 #17

Closed
wants to merge 2 commits into from

Conversation

yuntian001
Copy link

由监听dist文件夹改为监听soureDir,以避免replaceTscAliasPaths会触发watch。
同时判断编译和文件变更来触发restart,以规避时机问题。

由监听dist文件夹改为监听soureDir,以避免replaceTscAliasPaths会触发watch,同时判断编译和文件变更来触发restart
@czy88840616
Copy link
Member

好像想起来为什么不监听 ts 文件了,之前就是因为 windows 监听有问题。。

@yuntian001
Copy link
Author

好像想起来为什么不监听 ts 文件了,之前就是因为 windows 监听有问题。。

具体啥问题

@czy88840616
Copy link
Member

因为 tsc 没有文件列表(那会儿没找到 listEmitFiles),所以用 chokidar 自己写了监听,但是会和 tsc 自己的 watch 重复监听,就改成监听了 js 文件。

@yuntian001 yuntian001 closed this May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants