Skip to content

Commit

Permalink
fix: update api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Apr 16, 2024
1 parent dff6e77 commit dfd5303
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/rspack/etc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ export type HtmlRspackPluginOptions = z.infer<typeof htmlRspackPluginOptions>;

// @public (undocumented)
export const IgnorePlugin: {
new (options: RawIgnorePluginOptions): {
new (options: IgnorePluginOptions): {
name: BuiltinPluginName;
_options: RawIgnorePluginOptions;
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
Expand All @@ -1284,7 +1284,12 @@ export const IgnorePlugin: {
};

// @public (undocumented)
export type IgnorePluginOptions = RawIgnorePluginOptions;
export type IgnorePluginOptions = {
resourceRegExp: NonNullable<RawIgnorePluginOptions["resourceRegExp"]>;
contextRegExp?: RawIgnorePluginOptions["contextRegExp"];
} | {
checkResource: NonNullable<RawIgnorePluginOptions["checkResource"]>;
};

// Warning: (ae-forgotten-export) The symbol "ignoreWarnings" needs to be exported by the entry point index.d.ts
//
Expand Down

0 comments on commit dfd5303

Please sign in to comment.