ice
ice copied to clipboard
微应用中使用 build-plugin-keep-alive 插件报错
会得到报错信息:You should not use <KeepAlive /> outside a <AliveScope>
插件中 modifyRoutesComponent()
没有成功修改路由
项目的 build.json 信息:
"plugins": [
[
"build-plugin-icestark",
{
"umd": true,
"omitSetLibraryName": true
}
],
"build-plugin-webpack5",
"build-plugin-keep-alive"
]