We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
缓慢看了下genesis 的代码,genesis里的沙箱中用在了远程模块加载时。但对vue服务端渲染没有进行隔离... 如果在某个组件内使用了setInterval,会导致服务端无限制执行
The text was updated successfully, but these errors were encountered:
你有兴趣的话,可以看下这里的代码: https://github.com/fmfe/genesis/blob/master/packages/genesis-core/src/node-vm.ts https://github.com/vuejs/vue/blob/main/packages/server-renderer/src/bundle-renderer/create-bundle-runner.ts#L45
其实Vue官方的实现也是没有实现的,这个我考虑过要实现,你有兴趣的话,可以尝试自己实现,然后提交个PR过来。
Sorry, something went wrong.
之前尝试过使用Proxy实现,但是遇到了一点问题,所以就没有处理了。
了解了,谢谢解答。我试试proxy下setTimeout setInterval 。
No branches or pull requests
缓慢看了下genesis 的代码,genesis里的沙箱中用在了远程模块加载时。但对vue服务端渲染没有进行隔离... 如果在某个组件内使用了setInterval,会导致服务端无限制执行
The text was updated successfully, but these errors were encountered: