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

使用官方提供的例子时, 打印window对象是一个proxy对象, 但是使用插件以后, 发现window都变成了原始window。 js沙箱好像失效了。 #80

Open
Shangyunliang opened this issue Dec 31, 2024 · 1 comment

Comments

@Shangyunliang
Copy link

image
image

@T-mier
Copy link

T-mier commented Jan 23, 2025

这个插件的主要功能是将vite打包后的入口文件的引入方式( <script type="module"></script>) 调整为动态引入的方式(import()), 而动态引入的话代码执行的作用域就脱离了qiankun中的沙箱, 从而引起了沙箱失效; 作者在这方面也有提示

Image

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

2 participants