Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the ResolvePluginInstance type #14096

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/index.js
Expand Up @@ -14,6 +14,7 @@ const memoize = require("./util/memoize");
/** @typedef {import("../declarations/WebpackOptions").LibraryOptions} LibraryOptions */
/** @typedef {import("../declarations/WebpackOptions").ModuleOptions} ModuleOptions */
/** @typedef {import("../declarations/WebpackOptions").ResolveOptions} ResolveOptions */
/** @typedef {import("../declarations/WebpackOptions").ResolvePluginInstance} ResolvePluginInstance */
/** @typedef {import("../declarations/WebpackOptions").RuleSetCondition} RuleSetCondition */
/** @typedef {import("../declarations/WebpackOptions").RuleSetConditionAbsolute} RuleSetConditionAbsolute */
/** @typedef {import("../declarations/WebpackOptions").RuleSetRule} RuleSetRule */
Expand Down
3 changes: 2 additions & 1 deletion types.d.ts
Expand Up @@ -9229,7 +9229,7 @@ declare interface ResolveOptionsWebpackOptions {
/**
* Plugins for the resolver.
*/
plugins?: ("..." | ResolvePluginInstance)[];
plugins?: (ResolvePluginInstance | "...")[];

/**
* Prefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
Expand Down Expand Up @@ -12360,6 +12360,7 @@ declare namespace exports {
LibraryOptions,
ModuleOptions,
ResolveOptionsWebpackOptions as ResolveOptions,
ResolvePluginInstance,
RuleSetCondition,
RuleSetConditionAbsolute,
RuleSetRule,
Expand Down