-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Move preact-render-to-string
to preact/server
#3480
Conversation
When styles object is empty don’t render style attribute
…of children in non-pretty mode. /cc @rauchg
- Try to mimic the Preact TSD. - Example usage with `noImplicitAny` enabled: import { render } from "preact-render-to-string"; - No idea if I've done it right but it seems to compile and hopefully someone more knowledgeable can build on this.
Size Change: 0 B Total Size: 38.6 kB ℹ️ View Unchanged
|
357b0d3
to
3f01d72
Compare
3f01d72
to
9c20a01
Compare
{ | ||
"name": "preact-server", | ||
"amdName": "preactServer", | ||
"version": "5.1.20", |
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.
are we publishing this separately or are we going to keep this at its own version
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.
I think we can safely ignore this as the plan is to publish this as part of core and not as a separate package. The other addons have bogus version numbers to which don't match the same package. So far we haven't gotten an issue for that so I'm assuming that no tool reads it.
Co-authored-by: Jovi De Croock <[email protected]>
This PR merges the https://github.com/preactjs/preact-render-to-string repo into core under
preact/server
. All commits from that repo are preserved and all tags have been renamed toserver-x.x.x
.On top of that there are a few commits that integrate the tooling into our main one. It has not been updated for internals yet, so I've skipped a few tests. The tests can be run via
npm run test:mocha:server