Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (imports) {
const filesNotFound = imports
.filter(x => !x.found && !x.ignored)
.map(x => x.filePath);
if (filesNotFound.length) {
log.error(`= Error: SCSS imports failed`);
log.error('= ' + filesNotFound.join('\n= '));
log.info('=========================================================================================================');
throw new Error('One or more SCSS imports failed');
}
}
if (found) {
await writeFile(dest, bundledContent);
log.success(`= Bundle OK`);
log.info('=========================================================================================================');
}
}