Generate correct includes list on windows hosts.
This commit is contained in:
1 parent
842cdcfcf7
commit
55bcd28729
1 file changed
+3
-2
@@ -20,9 +20,10 @@ function getSymbols(callback) {
|
||||
});
|
||||
}
|
||||
|
||||
const srcPath = path.posix.resolve(__dirname, '../src').replace(/\\/g,'/');
|
||||
function getPath(name) {
|
||||
const fullPath = require.resolve(path.resolve('src', name));
|
||||
return './' + path.posix.relative('src/', fullPath);
|
||||
const fullPath = require.resolve(path.resolve('src', name)).replace(/\\/g,'/');
|
||||
return './' + path.posix.relative(srcPath, fullPath);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user