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

Include Meteor.isSever constant in roadmap #10823

Merged
merged 2 commits into from
Jan 10, 2020
Merged

Conversation

edemaine
Copy link
Contributor

I (and presumably others) often have code shared between client and server, with some blocked off by if(Meteor.isServer) and (more rarely) if(!Meteor.isServer). It would be great if this constant is also handled in the tree shaking, and I imagine it's about as easy as Meteor.isProduction (but slightly different so worth mentioning).

I (and presumably others) often have code shared between client and server, with some blocked off by `if(Meteor.isServer)` and (more rarely) `if(!Meteor.isServer)`. It would be great if this constant is also handled in the tree shaking, and I imagine it's about as easy as `Meteor.isProduction` (but slightly different so worth mentioning).
@claassistantio
Copy link

claassistantio commented Dec 17, 2019

CLA assistant check
All committers have signed the CLA.

@sebakerckhof
Copy link
Contributor

Could you also add: #10056 to the list of related PR's?

@edemaine
Copy link
Contributor Author

@sebakerckhof OK, I added mention of #10056. I don't think it belongs in the "PR" field, as I assume that's reserved for the PR implementing the overall feature, and I don't think #10056 does all of tree shaking. But let me know if I'm mistaken and I should change this.

@filipenevola filipenevola merged commit cb81d93 into meteor:devel Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants