Skip to content

Commit 4fc03e1

Browse files
authored
Merge pull request webpack#7531 from Legends/APP
AutomaticPrefetchPlugin typings
2 parents 4de3ce0 + b03804e commit 4fc03e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/AutomaticPrefetchPlugin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ const asyncLib = require("neo-async");
88
const PrefetchDependency = require("./dependencies/PrefetchDependency");
99
const NormalModule = require("./NormalModule");
1010

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

0 commit comments

Comments
 (0)