怎么支持qiankun #2233
Answered
by
chenjiahan
liu-collab
asked this question in
Q&A
怎么支持qiankun
#2233
-
|
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Apr 29, 2024
Replies: 2 comments
-
export default defineConfig({
tools: {
rspack: {
output: {
chunkLoadingGlobal: '',
},
},
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chenjiahan
-
你们配置了吗? 我们目前是这样 function getQiankunConfig() {
const pkg = getCwdPackage();
const packageName = pkg.name;
return {
name: `${packageName}-[name]`,
type: "umd",
chunkLoadingGlobal: `webpackJsonp_${packageName}`,
};
}
export { getQiankunConfig }; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chunkLoadingGlobal
是 webpack / rspack 提供的配置项,在 Rsbuild 里可以通过 tools.rspack 来配置。