Skip to content

Commit

Permalink
Merge pull request #7531 from Legends/APP
Browse files Browse the repository at this point in the history
AutomaticPrefetchPlugin typings
  • Loading branch information
sokra committed Jun 22, 2018
2 parents 4de3ce0 + b03804e commit 4fc03e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/AutomaticPrefetchPlugin.js
Expand Up @@ -8,7 +8,14 @@ const asyncLib = require("neo-async");
const PrefetchDependency = require("./dependencies/PrefetchDependency");
const NormalModule = require("./NormalModule");

/** @typedef {import("./Compiler.js")} Compiler */

class AutomaticPrefetchPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler Webpack Compiler
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(
"AutomaticPrefetchPlugin",
Expand Down

0 comments on commit 4fc03e1

Please sign in to comment.