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
目前只能用parcel吗,如果我想我webpack该怎么配置 #8
Comments
output libraryTarget 设置成 umd |
@kuitos sub-app webpack config:
sub-app index.js 也很简单
错误信息: index.js:56 Uncaught xxx web: Application 'xxx web' died in status LOADING_SOURCE_CODE: You need to export the functional lifecycles in xxx web entry |
我是这么配置的
现在项目运行正常 @jiachaosun |
是因为我用typescript的缘故吗,我跑普通react项目还是会报错 |
@zeihang PS:回复内容时,你可以使用md格式贴代码哦,这样看起来舒服。 |
{
libraryTarget: 'umd',
library: packageName,
jsonpFunction: `webpackJsonp_${packageName}`
} 确保 webpack 有以上三个配置 |
updated README, see https://github.com/umijs/qiankun#webpack |
thx,@kuitos
我猜测应该还是打包或者导出的问题,是否会和code split的格式有关系 |
@ |
子项目路由跳转没问题,空白的问题应该是你子项目路由router没加basename吧 |
@kuitos 使用webpack构建,开发没有问题,打包后 子项目js 加载正常但不会运行,也没有报错, |
jsonpFunction在webpack5中不存在这个配置 会有问题吗? @kuitos |
webpack5 是自动生成的,https://webpack.js.org/blog/2020-10-10-webpack-5-release/#automatic-unique-naming |
No description provided.
The text was updated successfully, but these errors were encountered: