Skip to content

Commit

Permalink
fix: webpack builder js error when use custom protocol (#12704)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni authored Sep 19, 2024
1 parent 77432e5 commit 9e93e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-umi/src/features/webpack/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default (api: IApi) => {
const displayPublicPath = publicPath === 'auto' ? '/' : publicPath;

return assets.js.map((js) => {
return `${displayPublicPath}${js}`;
return { src: `${displayPublicPath}${js}` };
});
});
};

0 comments on commit 9e93e1a

Please sign in to comment.