diff --git a/packages/qwik/src/optimizer/src/plugins/vite.ts b/packages/qwik/src/optimizer/src/plugins/vite.ts index 5ce372a94ca..142f66f3bd1 100644 --- a/packages/qwik/src/optimizer/src/plugins/vite.ts +++ b/packages/qwik/src/optimizer/src/plugins/vite.ts @@ -302,7 +302,10 @@ export function qwikVite(qwikViteOpts: QwikVitePluginOptions = {}): any { }, build: { modulePreload: { - polyfill: false, + resolveDependencies() { + // Your list of preloaded deps. + return []; + }, }, dynamicImportVarsOptions: { exclude: [/./],