Closed travi closed 5 years ago
This is interesting. I'd like to see what support for something like this looks like. Feel free to submit a PR.
sorry that i havent gotten around to submitting anything for this. i could see it being valuable for some things, but my specific use case is no longer needed since emotion 10 no longer requires special handling for SSR so i'm going to close this out
would you consider supporting additional rendering approaches?
i'd like to use emotion and support SSR of styles, which would require processing with emotion after rendering the component.
i'm sure you dont want to couple this plugin to emotion, so the best option might be to allow providing a function for
renderMethod
in addition to the current string options. it could expect to receiveViewElement
andcontext
as input and return theviewOutput
string.for example:
i'd be open to sending a PR if this seems like a reasonable option to you.