mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-23 11:44:10 -05:00
fix(cli-serve): fix path separator on windows (#303)
This commit is contained in:
@@ -62,7 +62,7 @@ const initiateWatch = async ({ snPath, snName, host }) => {
|
||||
const sources = Object.keys(cache);
|
||||
for (let i = 0; i < sources.length; i++) {
|
||||
const p = cache[sources[i]];
|
||||
const filename = p.split('/').reverse()[0];
|
||||
const filename = p.split(path.sep).reverse()[0];
|
||||
if (`${filename}.map` === name) {
|
||||
file = path.resolve(path.dirname(p), name);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user