From 8ddd297e7fe211bcea6069f6eb09a00991e2b91b Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 6 Dec 2021 08:28:54 +0800 Subject: [PATCH] Core: Fix auto-title in webpack5 --- lib/builder-webpack5/package.json | 1 + lib/builder-webpack5/src/preview/iframe-webpack.config.ts | 4 +++- yarn.lock | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/builder-webpack5/package.json b/lib/builder-webpack5/package.json index e5137ceea322..f3879fc1e323 100644 --- a/lib/builder-webpack5/package.json +++ b/lib/builder-webpack5/package.json @@ -86,6 +86,7 @@ "glob": "^7.1.6", "glob-promise": "^3.4.0", "html-webpack-plugin": "^5.0.0", + "path-browserify": "^1.0.1", "react-dev-utils": "^11.0.4", "stable": "^0.1.8", "style-loader": "^2.0.0", diff --git a/lib/builder-webpack5/src/preview/iframe-webpack.config.ts b/lib/builder-webpack5/src/preview/iframe-webpack.config.ts index d4c7ec0f963e..d84af1965702 100644 --- a/lib/builder-webpack5/src/preview/iframe-webpack.config.ts +++ b/lib/builder-webpack5/src/preview/iframe-webpack.config.ts @@ -241,7 +241,9 @@ export default async (options: Options & Record): Promise