-
Notifications
You must be signed in to change notification settings - Fork 605
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 2019986: Fix dynamic demo plugin build #10395
Bug 2019986: Fix dynamic demo plugin build #10395
Conversation
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
@vojtechszocs: This pull request references Bugzilla bug 2019986, 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 |
@vojtechszocs: This pull request references Bugzilla bug 2019986, 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. |
/lgtm |
/bugzilla refresh Recalculating validity in case the underlying Bugzilla bug has changed. |
@openshift-bot: This pull request references Bugzilla bug 2019986, 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. |
099fe7d
to
c721348
Compare
@vojtechszocs: This pull request references Bugzilla bug 2019986, 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. |
@@ -9,13 +9,14 @@ | |||
"build-plugin-sdk": "yarn --cwd ../frontend build-plugin-sdk && rm -rf node_modules/@openshift-console && yarn install --check-files", | |||
"http-server": "./http-server.sh dist", | |||
"i18n": "i18next \"src/**/*.{js,jsx,ts,tsx}\" [-oc] -c i18next-parser.config.js", | |||
"ts-node": "ts-node -O '{\"module\":\"commonjs\"}' -I '/node_modules/(?!(@openshift-console)/)/'" | |||
"ts-node": "ts-node -O '{\"module\":\"commonjs\"}'" |
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.
No need to transpile @openshift-console
package sources anymore since we're already consuming the distributable plugin SDK packages (sources generated via tsc
).
@@ -9,6 +9,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin'); | |||
const config: webpack.Configuration = { | |||
mode: 'development', | |||
context: path.resolve(__dirname, 'src'), | |||
entry: {}, |
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.
This tells webpack "this compilation has no regular entry points" - generation of remote container entry (plugin-entry.js
) is handled via ConsoleRemotePlugin
.
@@ -66,7 +66,6 @@ export const getCorePackage: GetPackageDefinition = ( | |||
manifest: { | |||
name: '@openshift-console/dynamic-plugin-sdk', | |||
version: sdkPackage.version, | |||
type: 'module', |
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.
This was causing webpack 5 to resolve ESM module requests more strictly.
https://webpack.js.org/guides/ecma-script-modules/
Imports in ESM are resolved more strictly. Relative requests must include a filename and file extension.
For now, omitting the type
field in package manifest. (This impacts imports in SDK source code.)
/bugzilla refresh |
@vojtechszocs: This pull request references Bugzilla bug 2019986, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
@vojtechszocs FYI, needs rebase :/ |
c721348
to
0cfe896
Compare
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: jcaianirh, rawagner, spadgett, 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 |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@vojtechszocs: All pull requests linked via external trackers have merged: Bugzilla bug 2019986 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. |
This PR adapts Console dynamic demo plugin to changes made in #10383