-
Notifications
You must be signed in to change notification settings - Fork 932
Use the SDK version from Firebase package.json #3443
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
Conversation
💥 No ChangesetLatest commit: 9d2ab11 Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂 If these changes should be published to npm, you need to add a changeset. This PR includes no changesetsWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Click here to learn what changesets are, and how to add one. Click here if you're a maintainer who wants to add a changeset to this PR |
This change is needed since the firebase-exp SDK is not meant to depend on @firebase/app
6b9f3eb
to
0d93d75
Compare
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.
You will need to use 'rollup-plugin-json'
/** The semver (www.semver.org) version of the SDK. */ | ||
export const SDK_VERSION = firebase.SDK_VERSION; | ||
export { version as SDK_VERSION } from '../../../firebase/package.json'; |
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.
You will need to use 'rollup-plugin-json' to resolve it in all build tasks.
You will want to set preferConst: true
for es2017 builds.
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.
I am already using it in exp and lite, and we have been using it in the legacy build already. Is there some other target that is missing?
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.
My mistake. I did see it in rollup.config.es5.js
, but now I realize es5 builds are based on esm2017 builds which uses it.
This change is needed since the firebase-exp SDK is not meant to depend on @firebase/app