-
我尝试在 performance.preload 增加对 runtime.js 的 preload,但是没有效果 //...
performance: {
preload: {
type: 'all-chunks',
include: [/initial-runtime/],
},
},
//...
tools: {
rspack: {
optimization: {
runtimeChunk: {
name: 'initial-runtime',
},
}
}
}
//... |
Beta Was this translation helpful? Give feedback.
Answered by
9aoy
Jun 5, 2025
Replies: 1 comment 1 reply
-
You can try adding |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Dokome
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try adding
preload.dedupe: false
. By default, if a resource has been added to the current HTML via a script tag, it will not be preloaded additionally.https://rsbuild.rs/config/performance/preload#preloaddedupe