Patrick
Patrick
这里翻译成【商店】?我觉得应该是直接用store吧?
> > > > 这里翻译成【商店】?我觉得应该是直接用store吧? > > 这个可能是作者机器翻译的😄 估计是的。可能遗漏了吧😄
> > 这个可能是作者机器翻译的😄 > > 为了提升速度,翻译过程中确实有部分借助机翻,但都经过一次人工校对,这里应该是我疏忽了,多谢指出,我立马修改。 > > 下次提意见的时候,如果可以的话,请按[标准的 review 方式](https://docs.github.com/cn/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request)操作吧。这样可以加快 BUG 修改,你也可以成为本 PR 的贡献者,当本 PR 被 merge 之后你也可以成为仓库贡献者。目前这样的截图方式并不是很方便。 ok. 我的疏忽。大致翻了下看到的问题,就直接评论了。下次我注意~
It looks ok in my project or example in unocss. Maybe you can add a minimal reproduction?
I tried to run your repo and it is ok in first load, but not take effect in HMR load. In my mind, this is an old problem in webpack....
Yes, you are right. This is not `v0.21.1`'s bug, to be precise, this is `v0.16.x`'s bug.In `v0.16.0`, `testing.ts` is skipped. And I misunderstood it.
I think this issue may solve by setting ```ts { test: { // `vitest` use the outside dir as root, different from `vite` root: resolve(__dirname, "../../") } } ``` But...
This bug is because `vite-node`'s `directRequest` is an async function, and the exports content like ```javascript exports = { [Symbol.toStringTag]: 'Module', then: function() { ... } } ``` so, async...
I think this is the same reason with #1767