This commit is contained in:
2024-09-10 10:49:08 +08:00
parent b5fd06b800
commit dd4f5938da
6391 changed files with 722800 additions and 0 deletions

25
node_modules/webpack/lib/WarnNoModeSetPlugin.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const NoModeWarning = require("./NoModeWarning");
/** @typedef {import("./Compiler")} Compiler */
class WarnNoModeSetPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap("WarnNoModeSetPlugin", compilation => {
compilation.warnings.push(new NoModeWarning());
});
}
}
module.exports = WarnNoModeSetPlugin;