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
Bug 1908035: Fix issue with dynamic-demo-plugin webpack build #7516
Bug 1908035: Fix issue with dynamic-demo-plugin webpack build #7516
Conversation
If we move to the latest beta, v5.0.0-beta.31, would that address the issue? |
@spadgett I'd suggest moving to latest v5 stable (currently Edit: The move to webpack v5 stable for dynamic plugin SDK & demo plugin would be done in a separate PR. This PR is only to fix the immediate issue. |
@vojtechszocs: This pull request references Bugzilla bug 1908035, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@jhadvig: This pull request references Bugzilla bug 1908035, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vojtechszocs: All pull requests linked via external trackers have merged: Bugzilla bug 1908035 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Console dynamic plugin SDK (and consequently
dynamic-demo-plugin
) currently uses webpack5.0.0-beta.16
which doesn't support emptyentry
object yet. Quote from webpack docs:This will be fixed once we bump dynamic plugin SDK dependencies.
In the meantime, this PR fixes an issue where
dynamic-demo-plugin/dist
wasn't generated at all due to changes made in #7163 (ConsoleAssetPlugin
not usingafterCompile
hook).Tech details: Dynamic plugin projects are not typical web applications with webpack-processed entry points. All dynamic plugin assets are generated via
ConsoleRemotePlugin
(which usesConsoleAssetPlugin
under the hood). However, webpack 4 requires us to specify at least one entry point (from which a bundle gets created). We're currently working around this issue, with webpack 5 latest this should be a non-issue.