Merge pull request #26538 from StateFarmIns/fix-webpack-for-pnp-fun

Add watchOptions to frontend webpack config
This commit is contained in:
Patrik Oldsberg
2024-09-17 12:07:30 +02:00
committed by GitHub
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Added `watchOptions` to frontend webpack config for compatibility with Yarn PnP
+7
View File
@@ -347,6 +347,13 @@ export async function createConfig(
return {
mode,
profile: false,
...(isDev
? {
watchOptions: {
ignored: /node_modules/,
},
}
: {}),
optimization,
bail: false,
performance: {