Skip to content

Commit

Permalink
fix(preset-umi): resolve the path of react-helmet-async within render
Browse files Browse the repository at this point in the history
  • Loading branch information
SK-Luffa committed Jul 11, 2024
1 parent e1be908 commit 21fcfe4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/preset-umi/src/features/vite/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const getReactHelmetAsyncPath = (api: IApi) => {
// 解析 renderer-react 包的路径
try {
const rendererReactPath = require.resolve(RENDERER_REACT);

pkgPath = rendererReactPath ? winPath(rendererReactPath) : defaultPkgPath;
} catch (e: any) {
throw new Error(
Expand Down

0 comments on commit 21fcfe4

Please sign in to comment.