-
Notifications
You must be signed in to change notification settings - Fork 909
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
better meta url polyfill #5738
better meta url polyfill #5738
Conversation
🦋 Changeset detectedLatest commit: 48ffb4e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
Size Analysis ReportAffected Products
|
packages/firestore/rollup.config.js
Outdated
resolveImportMeta(property, { moduleId }) { | ||
if (property === 'url') { | ||
// copied from rollup output | ||
return `new (require('u' + 'rl').URL)('file:' + __filename).href`; |
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.
what does separating the string do?
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.
It's what rollup outputs. I don't think it matters though. Updated
Binary Size ReportAffected SDKs
Test Logs |
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.
FYI I don't think I have enough context to provide a meaningful review. Please ping me if you need input.
Generate polyfill for Nodejs only.
Partially fixes #5687 (or rather just hide the problem that Jest will load Nodejs bundles as if it is testing in browser)