Newer
Older
alert / js / node_modules / webpack / lib / WarnNoModeSetPlugin.js
@Réz István Réz István on 18 Nov 2021 391 bytes first commit
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";

const NoModeWarning = require("./NoModeWarning");

class WarnNoModeSetPlugin {
	apply(compiler) {
		compiler.hooks.thisCompilation.tap("WarnNoModeSetPlugin", compilation => {
			compilation.warnings.push(new NoModeWarning());
		});
	}
}

module.exports = WarnNoModeSetPlugin;