diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index fe1455b..c73fdd5 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -67,10 +67,12 @@ module.exports = function purescriptLoader(source, map) { | |||
67 | this._compiler.plugin('after-compile', (compilation, callback) => { | 67 | this._compiler.plugin('after-compile', (compilation, callback) => { |
68 | if (options.warnings && cache.warnings) { | 68 | if (options.warnings && cache.warnings) { |
69 | compilation.warnings.unshift(`PureScript compilation:\n${cache.warnings}`) | 69 | compilation.warnings.unshift(`PureScript compilation:\n${cache.warnings}`) |
70 | cache.warnings = null; | ||
70 | } | 71 | } |
71 | 72 | ||
72 | if (cache.errors) { | 73 | if (cache.errors) { |
73 | compilation.errors.unshift(`PureScript compilation:\n${cache.errors}`) | 74 | compilation.errors.unshift(`PureScript compilation:\n${cache.errors}`) |
75 | cache.errors = null; | ||
74 | } | 76 | } |
75 | 77 | ||
76 | callback() | 78 | callback() |