Skip to content

Commit

Permalink
fix: don't resolve virtual inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Nov 10, 2021
1 parent 57a41de commit 3127219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ async function buildPolyfillChunk(
bundle[polyfillChunk.name] = polyfillChunk
}

const polyfillId = 'vite/legacy-polyfills'
const polyfillId = '\0vite/legacy-polyfills'

/**
* @param {Set<string>} imports
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function resolveBuildOptions(root: string, raw?: BuildOptions): ResolvedB
}
}

const resolve = (p: string) => path.resolve(root, p)
const resolve = (p: string) => p.startsWith('\0') ? p : path.resolve(root, p)

resolved.outDir = resolve(resolved.outDir)

Expand Down

0 comments on commit 3127219

Please sign in to comment.