Skip to content

Commit

Permalink
fix(scheme-resolution): fix problem with backslashes in path to schem…
Browse files Browse the repository at this point in the history
…es on windows

fix problem with backslashes in path to schemes on windows
  • Loading branch information
breakingrobot authored Apr 3, 2018
2 parents 3908563 + 7cefd22 commit 77161b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Auth from './auth'
import './middleware'

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

export default function (ctx, inject) {
// Options
Expand Down

0 comments on commit 77161b8

Please sign in to comment.