We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b974239 + 91de28e commit cf087eaCopy full SHA for cf087ea
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