diff --git a/packages/vitest/src/node/plugins/index.ts b/packages/vitest/src/node/plugins/index.ts index ce75527ac7456..ae0c26ea824ae 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,