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

fix: parser hook calls for compiler plugins #18128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Danielku15
Copy link

What kind of change does this PR introduce?

Fixes #18113

Did you add tests for your changes?

Yes, I added some new tests to ensure that the hooks are called. Needed to use the whole compiler to ensure all plugins (like InnerGraphPlugin) are registered as expected.

I tried first to extend the JavaScriptParser.unittest.js but it didn't behave like the whole compiler.

Does this PR introduce a breaking change?

No

What needs to be documented once your changes are merged?

No special docs needed I'd say.

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

Copy link

CLA Not Signed

Copy link
Member

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

Can you accept CLA?

@Danielku15
Copy link
Author

@snitin315 Please see #18113 (comment) and #18149 (comment)

Hence: unfortunately no. I am willing to agree to the terms of the CLA but not to the process involved to sign it (specifically providing my real address).

@snitin315
Copy link
Member

No problem, I'll fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parser.hooks.new not called for classes within the same file.
3 participants