diff --git a/shell/vue.config.js b/shell/vue.config.js index e20d125568..a1f2623172 100644 --- a/shell/vue.config.js +++ b/shell/vue.config.js @@ -456,7 +456,7 @@ const printLogs = (dev, dashboardVersion, resourceBase, routerBasePath, pl, ranc * - as list: [/.shell/, /dist-pkg/, /scripts\/standalone/, /\/pkg.test-pkg/, /\/pkg.harvester/] * - as chained regex rule: /.shell|dist-pkg|scripts\/standalone|\/pkg.test-pkg|\/pkg.harvester/ */ -const getWatcherIgnored = (excludes) => { +const getWatcherIgnored = (excludes = []) => { const paths = [ /node_modules/, /dist-pkg/, @@ -557,7 +557,7 @@ module.exports = function(dir, _appConfig) { config.resolve.extensions.push(...['.tsx', '.ts', '.js', '.vue', '.scss']); config.watchOptions = { ...(config.watchOptions || {}), - ignored: getWatcherIgnored(excludes) + ignored: getWatcherIgnored() }; if (dev) {