X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Findex.js;h=c73fdd5e88cc2c76f925abd85353d28b80f61d2a;hb=0b853815ef14d35cedebc2c7806fd2f9ff9d5ab5;hp=fe1455bfc32a686d322c48c35d6ff5d581043c6a;hpb=055d127bb9ca88c9bfcc7286a33f36f5ff6b4462;p=github%2Ffretlink%2Fpurs-loader.git 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) { this._compiler.plugin('after-compile', (compilation, callback) => { if (options.warnings && cache.warnings) { compilation.warnings.unshift(`PureScript compilation:\n${cache.warnings}`) + cache.warnings = null; } if (cache.errors) { compilation.errors.unshift(`PureScript compilation:\n${cache.errors}`) + cache.errors = null; } callback()