Skip to content

Commit

Permalink
fix(ssr): fix bundle renderer require path on windows (vuejs#7085)
Browse files Browse the repository at this point in the history
fixed windows os  `vue-ssr-server-bundle.json` within module can't found on server rendering
  • Loading branch information
mniya authored and aJean committed Aug 19, 2020
1 parent 3dd7518 commit 401719f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/bundle-renderer/create-bundle-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function compileModule (files, basedir, runInNewContext) {
: script.runInNewContext(sandbox)
const m = { exports: {}}
const r = file => {
file = path.join('.', file)
file = path.posix.join('.', file)
if (files[file]) {
return evaluateModule(file, sandbox, evaluatedFiles)
} else if (basedir) {
Expand Down

0 comments on commit 401719f

Please sign in to comment.