Skip to content

Commit

Permalink
fix: don't use file url when building prerenderer (nitrojs#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored and WinterYukky committed Nov 1, 2022
1 parent 1844c43 commit 0d91b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ export const plugins = [

// https://github.com/rollup/plugins/tree/master/packages/alias
let buildDir = nitro.options.buildDir
// Windows (native) dynamic imports should be file:// urr
if (isWindows && (nitro.options.externals?.trace === false)) {
// Windows (native) dynamic imports should be file:// urls
if (isWindows && (nitro.options.externals?.trace === false) && nitro.options.dev) {
buildDir = pathToFileURL(buildDir).href
}
rollupConfig.plugins.push(alias({
Expand Down

0 comments on commit 0d91b99

Please sign in to comment.