-
Notifications
You must be signed in to change notification settings - Fork 509
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(ssr): render JSX instead of index.html #11672
Conversation
generate csp hashes in webpack remove manual asset hashing
@fiji-flo as requested, benchmarking
this branch:
So it's almost exactly as fast. |
This pull request has merge conflicts that must be resolved before it can be merged. |
This pull request has merge conflicts that must be resolved before it can be merged. |
This pull request has merge conflicts that must be resolved before it can be merged. |
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.
LGTM overall, left some comments.
PS: To double-check, does this have any impact on localhost:3000 or (particularly) localhost:5042?
There's a change in localhost:3000, in that we're now using a very plain No change to localhost:5042, other than the changes to stage/prod as well: i.e. a few html formatting changes with self closing tags and empty attributes etc. |
This pull request has merge conflicts that must be resolved before it can be merged. |
NB: first commit just renames
ssr/render.ts
tossr/render.tsx
, easiest to see changes in the second commit (with whitespace changes ignored)Summary
https://mozilla-hub.atlassian.net/browse/MP-1445
First of many incremental improvements to the client build system.
Problem
Solution
index.html
template intossr/render
as JSX.ssr/render
minimal to reduce diff/make review easier - improvements/simplifications/etc. there are for further iterationsHow did you test this change?
As you can see, the changes are minimal:
https://developer.mozilla.org
to the icon/manifest pathscrossorigin
->crossorigin=""