-
Notifications
You must be signed in to change notification settings - Fork 948
Make node and browser entry points identical #5318
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
…llup-plugin-alias to overwrite browser-specific features
|
Changeset File Check
|
Binary Size ReportAffected SDKsNo changes between base commit (fbb32e7) and head commit (05cd62b). Test Logs
|
Size Analysis ReportAffected Products
|
@@ -47,64 +36,65 @@ export { | |||
// Core functionality shared by all clients | |||
export * from './src'; | |||
|
|||
// Additional DOM dependend functionality | |||
// Additional DOM dependend functionality; we need to import and then | |||
// export separately so that the rollup alias will work (for aliasing these |
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.
interesting. Is it WAI, or a bug in the plugin? If it's a bug, it may be worth linking to the issue.
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 WAI I think. It uses resolveId
which is import statements according to rollup. See: https://github.com/rollup/rollup-plugin-alias/blob/master/src/index.js
Co-authored-by: Feiyang <[email protected]>
…dk into sam-gc/node-entry
* Overhaul node/browser entry points so that they are identical; use rollup-plugin-alias to overwrite browser-specific features * Formatting, license * Revert bad change * Update packages-exp/auth-exp/rollup.config.shared.js Co-authored-by: Feiyang <[email protected]> * Fix popup/redirect stuff * Fix popup/redirect stuff Co-authored-by: Feiyang <[email protected]>
This change uses
@rollup/plugin-alias
to overwrite the browser-specific imports to point to a set of no-ops and errors. I also had to change a bunch of the testing machinery to make this work.