Skip to content

Commit f0dd48b

Browse files
authored
Merge pull request webpack#7544 from Legends/CompatabilityPlugin
CompatabilityPlugin typings added
2 parents 58ac640 + f3223d0 commit f0dd48b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/CompatibilityPlugin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ const ConstDependency = require("./dependencies/ConstDependency");
88

99
const NullFactory = require("./NullFactory");
1010

11+
/** @typedef {import("./Compiler.js")} Compiler */
12+
1113
class CompatibilityPlugin {
14+
/**
15+
* Apply the plugin
16+
* @param {Compiler} compiler Webpack Compiler
17+
* @returns {void}
18+
*/
1219
apply(compiler) {
1320
compiler.hooks.compilation.tap(
1421
"CompatibilityPlugin",

0 commit comments

Comments
 (0)