Skip to content

Conversation

pmdartus
Copy link
Member

Details

This PR replace changes the way @lwc/engine-server attaches Event and CustomEvent polyfills are attached to the host environment global object. Currently on those polyfills are attached to the global object, this object is specific to Node.js environment. With this PR, the global object is replaced with globalThis to be compatible with other environments than Node.js.

Does this PR introduce breaking changes?

  • No, it does not introduce breaking changes.

The PR fulfills these requirements:

  • Have tests for the proposed changes been added? ✅
  • Have you followed these instructions to clearly describe the issue being fixed or feature enhanced? ✅

GUS work item

W-7552574

Copy link
Contributor

@diervo diervo left a comment

Choose a reason for hiding this comment

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

love it

@pmdartus pmdartus merged commit 048c934 into master Jun 29, 2020
@pmdartus pmdartus deleted the pmdartus/extract-global-this branch June 29, 2020 12:21
tariqrafique pushed a commit to tariqrafique/lwc that referenced this pull request Jul 16, 2020
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.

2 participants