console.warn instead of .log, whitespace (Oops)

pull/4365/head
pk 6 years ago
parent 3478568069
commit e52a3ec3fd

@ -40,13 +40,12 @@ function registerExtension(extension) {
if (options.dev) {
warnings.forEach(warning => {
console.log(`\nSvelte Warning in ${warning.filename}:`);
console.log(warning.message);
console.log(warning.frame);
console.warn(`\nSvelte Warning in ${warning.filename}:`);
console.warn(warning.message);
console.warn(warning.frame);
})
}
return module._compile(js.code, filename);
};
}

Loading…
Cancel
Save