Skip to content

Commit cf087ea

Browse files
authored
Merge pull request #42 from sveltejs/gh-35
emit warnings to webpack
2 parents b974239 + 91de28e commit cf087ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ module.exports = function(source, map) {
7070

7171
if (!options.name) options.name = capitalize(sanitize(options.filename));
7272

73+
if (!options.onwarn) options.onwarn = warning => this.emitWarning(new Error(warning));
74+
7375
preprocess(source, options).then(processed => {
7476
let { code, map, css, cssMap, ast } = compile(processed.toString(), options);
7577

0 commit comments

Comments
 (0)