-
Notifications
You must be signed in to change notification settings - Fork 163
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
[bug]if activeFile !== mainFile, mainFile would not compile #224
Comments
如何避免首次聚焦文件非入口文件的,导致入口文件不编译的问题, |
by the way: 还有一个想法就: 把编译动作集成到File类里面,读取compiled的时候再去编译,并且缓存,存在的情况下不再编译,修改后清除编译缓存,页面重新执行渲染的时候再编译,可以避免文件未使用的时候进行多次无意义的编译 这样好像会把很多都变成异步,也不太行 |
Could you please provide a minimal reproduction for me? I'll appreciate it. |
src/store.ts
if(activeFile.value !== mainFile.value)
这种情况下,mainFile的file对象里面的compiled的js,css,ssr都是空的导致渲染不了
The text was updated successfully, but these errors were encountered: