We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b974239 commit 91de28eCopy full SHA for 91de28e
index.js
@@ -70,6 +70,8 @@ module.exports = function(source, map) {
70
71
if (!options.name) options.name = capitalize(sanitize(options.filename));
72
73
+ if (!options.onwarn) options.onwarn = warning => this.emitWarning(new Error(warning));
74
+
75
preprocess(source, options).then(processed => {
76
let { code, map, css, cssMap, ast } = compile(processed.toString(), options);
77
0 commit comments