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

feat(umd): UMD now mirrors export schema for ESM and CJS #3426

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Mar 13, 2018

For example, if you want to do the same thing as but using the global file, you would use , If you wanted to do , that will be available at . Thus making the import/access points more predictable between the UMD and the ESM and CJS versions.

@benlesh benlesh requested a review from kwonoj March 13, 2018 04:12
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

consider the filename change. the rest looks good

addLicenseTextToFile(license, UMD_PKG + 'Rx.min.js');
addLicenseToFile('LICENSE.txt', UMD_PKG + 'Rx.js');
addLicenseTextToFile(license, UMD_PKG + 'Rx.min.js');
addLicenseToFile('LICENSE.txt', UMD_PKG + 'rx.js');
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest that all these files are called rxjs.*, i.e. rxjs.umd.js and rxjs.umd.min.js

Copy link
Contributor

Choose a reason for hiding this comment

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

this is just to be consistent about the naming across all the namespaces.

Copy link
Member

@kwonoj kwonoj left a comment

Choose a reason for hiding this comment

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

lol danger for size comparison broken by uppercase to lowercase file name conversion. looks ok otherwise.

@benlesh benlesh force-pushed the umd-work branch 2 times, most recently from f9343c3 to ad4a8b5 Compare March 13, 2018 06:56
@benlesh
Copy link
Member Author

benlesh commented Mar 13, 2018

@kwonoj I"m just going to disable that part of the script for now.

For example, if you want to do the same thing as  but using the global file, you would use , If you wanted to do , that will be available at . Thus making the import/access points more predictable between the UMD and the ESM and CJS versions.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.544% when pulling 34aa420 on benlesh:umd-work into 1b69bd6 on ReactiveX:master.

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
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.

4 participants