Skip to content

Commit e219330

Browse files
mniyahefeng
authored and
hefeng
committed
fix(ssr): fix bundle renderer require path on windows (vuejs#7085)
fixed windows os `vue-ssr-server-bundle.json` within module can't found on server rendering
1 parent f955b1e commit e219330

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)