Skip to content

Commit

Permalink
fix: ssr dont need externals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed May 10, 2024
1 parent ec2be86 commit c50a59d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/preset-umi/src/features/ssr/webpack/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const build = async (api: IApi, opts: any) => {
const absOutputFile = absServerBuildPath(api);

await oChainWebpack(memo, { ...opts, ssr: true });
// ssr dont need externals
memo.externals({});
memo.entryPoints.clear();
memo.entry('umi').add(resolve(api.paths.absTmpPath, 'umi.server.ts'));
memo.target('node');
Expand Down

0 comments on commit c50a59d

Please sign in to comment.