Skip to content

Commit 77161b8

Browse files
fix(scheme-resolution): fix problem with backslashes in path to schemes on windows
fix problem with backslashes in path to schemes on windows
2 parents 3908563 + 7cefd22 commit 77161b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Auth from './auth'
33
import './middleware'
44

55
// Active chemes
6-
<%= options.uniqueSchemes.map(path =>`import ${'scheme_' + hash(path)} from '${path}'`).join('\n') %>
6+
<%= options.uniqueSchemes.map(path =>`import ${'scheme_' + hash(path)} from '${path.replace(/\\/g,'/')}'`).join('\n') %>
77

88
export default function (ctx, inject) {
99
// Options

0 commit comments

Comments
 (0)