We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
noExternal
1 parent 997ca5a commit bcb132fCopy full SHA for bcb132f
packages/vitest/src/node/plugins/runnerTransform.ts
@@ -145,6 +145,12 @@ export function ModuleRunnerTransform(): VitePlugin {
145
// in both SSR and Client environments
146
environment.resolve.noExternal = true
147
148
+ // Workaround `noExternal` merging bug on Vite 6
149
+ // https://github.com/vitejs/vite/pull/20502
150
+ if (name === 'ssr') {
151
+ delete config.ssr?.noExternal
152
+ }
153
+
154
if (name === '__vitest_vm__' || name === '__vitest__') {
155
continue
156
}
0 commit comments