Hello @sokra,
I would like to abort compilation based on some conditions:
function abortIf(callback) {
callback(true);
}
function AbortCompilationPlugin() {}
AbortCompilationPlugin.prototype.apply = function(compiler) {
abortIf(function(flag) {
if (flag === true) {
// TODO abort compilation
}
});
};
How to do it via plugin API?
Next.js would also like to cancel compilation if you make a change and quickly afterwards make another change: vercel/next.js#1083