Skip to content

Commit

Permalink
fix(ssr): fix bundle renderer require path on windows (#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
mniya authored and yyx990803 committed Nov 20, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a23b913 commit 063acb7
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
@@ -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) {

0 comments on commit 063acb7

Please sign in to comment.