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

SDK: Fix externalization of the wp global variable #26725

Merged
merged 2 commits into from
Aug 16, 2018

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Aug 16, 2018

It seems that in #26680 we got rid of externalizing wp as a global variable. This PR brings it back.

To test: try #26603, which contains this branch in it. WIthout this commit, the publicize extension no longer builds, as it can't locate the wp module.

Also, verify regular Calypso boots correctly like it did before, and is unaffected by this change.

@tyxla tyxla added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Project] SDK labels Aug 16, 2018
@tyxla tyxla self-assigned this Aug 16, 2018
@matticbot
Copy link
Contributor

Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

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

feel free to merge this. I think I would probably find it less confusing if we left the wp as its own export instead of adding it into the wordpressRequire and wordpressExternals functions since those kind of have a very specific and uniform function

externals: [
	shouldExternalizeWordPress && wordpressExternals,
	shouldExternalizeWordPress && 'wp',
	'lodash'
]

@tyxla
Copy link
Member Author

tyxla commented Aug 16, 2018

Good point 👍 Updated in 7a3e1fe

@tyxla tyxla added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Aug 16, 2018
@tyxla tyxla merged commit b9d38f0 into master Aug 16, 2018
@tyxla tyxla deleted the sdk/bring-back-external-wp-globalvar branch August 16, 2018 14:03
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.

3 participants