Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

babel plugin to extract server side only component methods #45

Closed
alidcast opened this issue Jul 9, 2018 · 1 comment
Closed

babel plugin to extract server side only component methods #45

alidcast opened this issue Jul 9, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@alidcast
Copy link
Owner

alidcast commented Jul 9, 2018

First need to resolve #42

getIntialProps is only called in server now to bootstrap App.js with server logic

This method can be extracted at compile from the client bundle using a babel plugin. This would prevent unnecessary server code from being included in client bundle without relying on tree-shaking

@alidcast alidcast added the enhancement New feature or request label Jul 26, 2018
@alidcast
Copy link
Owner Author

ctx.app.markupRenderes will be deprecated, so this isn't necessary anymore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant