From 9a88afa6077286c03e180e4f983b1d194d03b338 Mon Sep 17 00:00:00 2001 From: Manu MA Date: Mon, 13 Jun 2022 13:11:40 +0100 Subject: [PATCH] fix(ssr): dont replace rollup input (#7275) --- packages/vite/src/node/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index 705465400ca5ca..6fe156e3b4e89c 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -407,7 +407,6 @@ async function doBuild( } const rollupOptions: RollupOptions = { - input, context: 'globalThis', preserveEntrySignatures: ssr ? 'allow-extension' @@ -415,6 +414,7 @@ async function doBuild( ? 'strict' : false, ...options.rollupOptions, + input, plugins, external, onwarn(warning, warn) {