mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #778 - Fix Marko compiler generating incorrect path for requires on Windows.
This commit is contained in:
parent
af5a83e760
commit
42e66c1512
@ -313,7 +313,7 @@ class CompileContext extends EventEmitter {
|
||||
if (ext === '.js') {
|
||||
deresolved = deresolved.slice(0, 0 - ext.length);
|
||||
}
|
||||
return deresolved;
|
||||
return deresolved.replace(/\\/g, '/');
|
||||
}
|
||||
|
||||
return markoModules.deresolve(targetFilename, this.dirname);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user