From 37827ba121608849591e4a4b98b32e164174a75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C3=ABtek=20Bak?= Date: Fri, 8 Jan 2016 22:47:49 +0000 Subject: [PATCH 1/2] Rename warn to emitWarning Following the change to node-elm-compiler. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e567d4f..37de56a 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ var getOptions = function() { var globalOptions = this.options.elm || {}; var loaderOptions = loaderUtils.parseQuery(this.query); return _.extend({ - warn: this.emitWarning + emitWarning: this.emitWarning }, defaultOptions, globalOptions, loaderOptions); }; From 80548bce7ec7d985e4b5b6c99c8c29105afd2aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C3=ABtek=20Bak?= Date: Fri, 8 Jan 2016 22:48:15 +0000 Subject: [PATCH 2/2] Default to passing --warn to Elm Fixes #31. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 37de56a..2738e3a 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,8 @@ var cachedDependencies = []; var defaultOptions = { cache: false, - yes: true + yes: true, + warn: true }; var getInput = function() {