diff --git a/packages/vitest/src/node/plugins/index.ts b/packages/vitest/src/node/plugins/index.ts index ce75527ac745..ae0c26ea824a 100644 --- a/packages/vitest/src/node/plugins/index.ts +++ b/packages/vitest/src/node/plugins/index.ts @@ -94,18 +94,6 @@ export async function VitestPlugin( alias: testConfig.alias, conditions: ['node'], }, - // eslint-disable-next-line ts/ban-ts-comment - // @ts-ignore Vite 6 compat - environments: { - ssr: { - resolve: { - // by default Vite resolves `module` field, which not always a native ESM module - // setting this option can bypass that and fallback to cjs version - mainFields: [], - conditions: ['node'], - }, - }, - }, server: { ...testConfig.api, open, diff --git a/packages/vitest/src/node/plugins/workspace.ts b/packages/vitest/src/node/plugins/workspace.ts index bc0546137dda..8f4e3c9027e0 100644 --- a/packages/vitest/src/node/plugins/workspace.ts +++ b/packages/vitest/src/node/plugins/workspace.ts @@ -71,18 +71,6 @@ export function WorkspaceVitestPlugin( alias: testConfig.alias, conditions: ['node'], }, - // eslint-disable-next-line ts/ban-ts-comment - // @ts-ignore Vite 6 compat - environments: { - ssr: { - resolve: { - // by default Vite resolves `module` field, which not always a native ESM module - // setting this option can bypass that and fallback to cjs version - mainFields: [], - conditions: ['node'], - }, - }, - }, esbuild: viteConfig.esbuild === false ? false : {