Skip to content

Commit

Permalink
Update packages/preset-umi/src/features/ssr/webpack/webpack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc authored Nov 2, 2023
1 parent be1cb28 commit 09407ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-umi/src/features/ssr/webpack/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const build = async (api: IApi, opts: any) => {

memo.output
.path(dirname(absOutputFile))
// 防止多chunk情况下(有懒加载时)的文件名冲突报错
// 避免多 chunk 时的命名冲突,虽然 ssr 在项目里禁用了 import() 语法,但 node_modules 下可能存在的 import() 没有被 babel 插件覆盖到
.filename(useHash ? '[name].[contenthash:8].server.js' : '[name].server.js')
.chunkFilename(
useHash ? '[name].[contenthash:8].server.js' : '[name].server.js',
Expand Down

0 comments on commit 09407ad

Please sign in to comment.