Skip to content

Commit 063acb7

Browse files
mniyayyx990803
authored andcommitted
fix(ssr): fix bundle renderer require path on windows (#7085)
fixed windows os `vue-ssr-server-bundle.json` within module can't found on server rendering
1 parent a23b913 commit 063acb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/bundle-renderer/create-bundle-runner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function compileModule (files, basedir, runInNewContext) {
5151
: script.runInNewContext(sandbox)
5252
const m = { exports: {}}
5353
const r = file => {
54-
file = path.join('.', file)
54+
file = path.posix.join('.', file)
5555
if (files[file]) {
5656
return evaluateModule(file, sandbox, evaluatedFiles)
5757
} else if (basedir) {

0 commit comments

Comments
 (0)