From 378164864a7ddcf81454a8b6e8c398318820e39e Mon Sep 17 00:00:00 2001 From: bluwy Date: Wed, 12 Apr 2023 00:09:57 +0800 Subject: [PATCH] fix: correct vite config temporary name --- packages/vite/src/node/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 7e91c1775a680d..7b4107c8aafe05 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -1093,7 +1093,7 @@ async function loadConfigFromBundledFile( if (isESM) { const fileBase = `${fileName}.timestamp-${Date.now()}-${Math.random() .toString(16) - .slice(2)})}` + .slice(2)}` const fileNameTmp = `${fileBase}.mjs` const fileUrl = `${pathToFileURL(fileBase)}.mjs` await fsp.writeFile(fileNameTmp, bundledCode)