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

Xet Storage Details

Size:
581 Bytes
·
Xet hash:
9f959a19446ae00eec9159680a976475c44c884f1a79f43d472385d52ca2ac36

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.