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

[webpack] Add ProgressPlugin #4530

Merged
merged 5 commits into from
Oct 12, 2023

Conversation

Brianzchen
Copy link
Member

Closes #4528

Other notes:

@@ -10,6 +10,29 @@ declare module 'webpack' {

declare type WebpackError = $WebpackError;

declare type WebpackLogger = {|
getChildLogger: (arg0: string | (() => string)) => WebpackLogger,
error(...args: any[]): void,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thinks spread params should rather use $ReadOnlyArray, but probably not big deal here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great tip! Will start using this going forward

| ProgressHandler;

declare class ProgressPlugin {
constructor(options?: ProgressPluginArgument): $ElementType<
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ElementType, $PropertyType are deprecated, but this would force to clone/scope to >0.155 that libdef.
Maybe there will be a codemod pass for this one day.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other plugins had the same syntax so I just followed. Have fixed them now across the definition

@Brianzchen Brianzchen merged commit 5f92108 into flow-typed:master Oct 12, 2023
4 checks passed
@Brianzchen Brianzchen deleted the webpack-progress-plugin branch October 12, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webpack v5 missing ProgressPlugin
3 participants