Skip to content

Commit

Permalink
fix: webpack builder js error when use custom protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Sep 18, 2024
1 parent cb48860 commit 83fd79b
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 83fd79b

Please sign in to comment.