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

Set Messaging to use only CJS bundles if Node #5901

Merged
merged 3 commits into from Jan 20, 2022
Merged

Conversation

hsubox76
Copy link
Contributor

This change will direct all Node consumers of messaging, messaging-compat, and messaging/sw to the respective CJS bundles, regardless of whether they are using require or import. We cannot currently provide ESM Node bundles for messaging until we are able to upgrade our idb dependency, so we need to point all Node applications to the CJS bundles.

Once we are unblocked on upgrading idb (which entails officially dropping IE support, PR #5857), we can create Node ESM bundles for messaging and separate the exports.node entry point into exports.node.require (cjs) and exports.node.import (mjs) entry points.

See issue #5839.

@hsubox76 hsubox76 requested a review from zwu52 as a code owner January 18, 2022 21:12
@changeset-bot
Copy link

changeset-bot bot commented Jan 18, 2022

🦋 Changeset detected

Latest commit: 732eb92

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/messaging Patch
@firebase/messaging-compat Patch
firebase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 18, 2022

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 18, 2022

@hsubox76 hsubox76 merged commit 93e6126 into master Jan 20, 2022
@hsubox76 hsubox76 deleted the ch-messaging-node branch January 20, 2022 01:33
@google-oss-bot google-oss-bot mentioned this pull request Jan 20, 2022
@firebase firebase locked and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants