Skip to content

Commit

Permalink
Core: Fix auto-title in webpack5
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Dec 6, 2021
1 parent 5182f9c commit 8ddd297
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/builder-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion lib/builder-webpack5/src/preview/iframe-webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ export default async (options: Options & Record<string, any>): Promise<Configura
react: path.dirname(require.resolve('react/package.json')),
'react-dom': path.dirname(require.resolve('react-dom/package.json')),
},
fallback: { path: false },
fallback: {
path: require.resolve('path-browserify'),
},
},
optimization: {
splitChunks: {
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7889,6 +7889,7 @@ __metadata:
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
Expand Down

0 comments on commit 8ddd297

Please sign in to comment.