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 hefeng committed Jan 25, 2019
1 parent f955b1e commit e219330
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 e219330

Please sign in to comment.