Skip to content

Commit

Permalink
fix: correct vite config temporary name (#12833)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Apr 11, 2023
1 parent cfe75ee commit cdd9c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -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)
Expand Down

0 comments on commit cdd9c23

Please sign in to comment.