Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
target: target.replace(fileExt, ''),
});
}
if (pathExt && !extName.includes(pathExt)) {
extName.unshift(pathExt);
}
extName.forEach(ext => {
list.push(ext);
list.push(`/index${ext}`);
});
list.push('');
return concatMap(list, file => {
const origPath = `{BASE_URL}${basePath}${file}`;
const paths = [origPath];
if (origPath.includes('/dist/')) {
paths.push(origPath.replace('/dist/', '/lib/'));
paths.push(origPath.replace('/dist/', '/src/'));
} else if (origPath.includes('/lib/')) {
paths.push(origPath.replace('/lib/', '/src/'));
}
return paths;
});
}
target: target.replace(fileExt, ''),
});
}
if (pathExt && !extName.includes(pathExt)) {
extName.unshift(pathExt);
}
extName.forEach(ext => {
list.push(ext);
list.push(`/index${ext}`);
});
list.push('');
return concatMap(list, file => {
const origPath = `{BASE_URL}${basePath}${file}`;
const paths = [origPath];
if (origPath.includes('/dist/')) {
paths.push(origPath.replace('/dist/', '/lib/'));
paths.push(origPath.replace('/dist/', '/src/'));
} else if (origPath.includes('/lib/')) {
paths.push(origPath.replace('/lib/', '/src/'));
}
return paths;
});
}