static getCompilationHooks(compilation) {
    let hooks = compilationHooksMap.get(compilation);

    if (!hooks) {
      hooks = {
        beforeTagInsert: new SyncWaterfallHook(
          ["source", "varNames"],
          "string"
        ),
        linkPreload: new SyncWaterfallHook(["source", "chunk"]),
        linkPrefetch: new SyncWaterfallHook(["source", "chunk"]),
      };
      compilationHooksMap.set(compilation, hooks);
    }

    return hooks;
  }
Returns all hooks for the given compilation
@param {Compilation} compilation the compilation
@returns {MiniCssExtractPluginCompilationHooks} hooks