Extensions: update webpack configuration to prevent plugin conflicts#17312
Extensions: update webpack configuration to prevent plugin conflicts#17312creativecoder merged 2 commits intomasterfrom
Conversation
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Scheduled Jetpack release: November 10, 2020. E2E results is available here (for debugging purposes): https://jetpack-e2e-dashboard.herokuapp.com/pr-17312 Thank you for the great PR description! When this PR is ready for review, please apply the |
|
Related PR: Automattic/wp-calypso#46252 |
|
Note that Automattic/wp-calypso#46252 is merged, but the I've updated the description and marked this ready for review. |
|
PR for the update to |
|
Noting that we won't be able to update |
Ugh.. okay good to know. I'm wondering if we should prioritize that sooner rather than later given the severity of the related bug (#17289) |
How did you get this to work? I get the following message when I give this a try: |
@jeherve my process was From packages/calypso-build directory in wp-calypso repo, run From jetpack repo root, run |
|
Noting that this will also be fixed in Core, as per this PR: |
|
Noting that this PR is still blocked by required upgrade of |
The update is now complete. 🎉 |
jeherve
left a comment
There was a problem hiding this comment.
Do you think you could rebase, now that the Calypso build update is merged?
fc5a9ae to
fd30f8c
Compare
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
|
This should now be ready to go |
|
Great news! One last step: head over to your WordPress.com diff, D50391-code, and commit it. Thank you! |
|
r227168-wpcom |
Fixes #17289
Changes proposed in this Pull Request:
output.jsonpFunctionto the webpack configuration for building extensionswebpackJsonpJavaScript global when other WordPress plugins also load JavaScript built with webpackSee https://v4.webpack.js.org/configuration/output/#outputjsonpfunction for more information about the webpack configuration.
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
I've only been able to replicate #17289 with the release build of Jetpack, not in development environments, so I'm not sure how to test that this definitely fixes the issue.
But more generally, you can test by
jetpack build pluginand selectjetpack.window["webpackJsonpJetpack"]in the built JS, rather thanwindow["webpackJsonp"]Proposed changelog entry for your changes:
jsonpFunctionwhen building JavaScript for extensions.