Skip to content

Commit 7b11696

Browse files
committed
fix(app-vite): correctly instruct Vite where to dep-scan (regression) quasarframework#12812
1 parent a017815 commit 7b11696

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

app-vite/lib/config-tools.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ function createViteConfig (quasarConf, quasarRunMode) {
108108
: build.sourcemap || false
109109
},
110110

111+
optimizeDeps: {
112+
entries: [ 'index.html' ]
113+
},
114+
111115
plugins: [
112116
vueVitePlugin(vueVitePluginOptions),
113117
quasarVitePlugin({

app-vite/lib/quasar-config-file.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,7 @@ class QuasarConfFile {
247247
vitePlugins: [],
248248
env: {},
249249
rawDefine: {},
250-
resolve: {},
251-
css: {},
252-
json: {},
253-
esbuild: {},
254-
rollupOptions: {},
255-
commonjsOptions: {},
256-
dynamicImportVarsOptions: {},
257-
optimizeDeps: {
258-
entries: []
259-
},
260-
worker: {}
250+
resolve: {}
261251
},
262252

263253
ssr: {
@@ -467,10 +457,6 @@ class QuasarConfFile {
467457
cfg.build.target.node = 'node16'
468458
}
469459

470-
if (cfg.build.optimizeDeps.entries.length === 0) {
471-
cfg.build.optimizeDeps.entries = [ 'index.html' ]
472-
}
473-
474460
if (this.#ctx.mode.ssr) {
475461
cfg.build.vueRouterMode = 'history'
476462
}

0 commit comments

Comments
 (0)