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
目前的扫描策略可以解产物内有冲突的全局变量。
但 qiankun 主应用去拉取子应用时,仍然会造成 主应用的全局变量 和 子应用的全局变量 之间冲突,跨项目目前无法检测。
主应用的全局变量
子应用的全局变量
必现 case :https://github.com/MoeYc/umi4-qiankun-root-with-slave-esbuild-iife-global-name-conflict
cd ./master pnpm i cd ./slave pnpm i
cd ./master pnpm build cd ./slave pnpm build
cd ./master pnpm max preview cd ./slave pnpm max preview --port 8104
http://localhost:4172/main/org/welcome
考虑要不要给子应用默认开启 esbuildMinifyIIFE: true
esbuildMinifyIIFE: true
The text was updated successfully, but these errors were encountered:
建议默认开启 esbuildMinifyIIFE: true
Sorry, something went wrong.
No branches or pull requests
What happens?
目前的扫描策略可以解产物内有冲突的全局变量。
但 qiankun 主应用去拉取子应用时,仍然会造成
主应用的全局变量
和子应用的全局变量
之间冲突,跨项目目前无法检测。Mini Showcase Repository(REQUIRED)
必现 case :https://github.com/MoeYc/umi4-qiankun-root-with-slave-esbuild-iife-global-name-conflict
How To Reproduce
http://localhost:4172/main/org/welcome
解法
考虑要不要给子应用默认开启
esbuildMinifyIIFE: true
Context
关联 issue
The text was updated successfully, but these errors were encountered: