-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Run extract-client-components as an esbuild plugin #199
Conversation
let current_dir = Sys.getcwd () in | ||
let melange_target = Filename.concat current_dir target in | ||
match capture_all_client_component_files_in_target melange_target with | ||
| Ok manifest -> | ||
render_manifest ~path manifest; | ||
print_endline (render_manifest manifest); |
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.
Why do we need to print it?
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.
we print to the stdout so I can use the CLI from both:
- dune
(with-stdout-to (cli))
- esbuild
const content = execSync("cli"); Fs.writeFile(...)
Before the cli was writing the file, so from the outside had less control. That could be configured by a parameter, but the stdout should probably be the default
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.
The more I see it, the more I get excited to see the final demo. Great work man ❤️ 🎉
bbccbcc
to
54ee294
Compare
… into fix-render-to-lwt-stream * 'main' of github.com:ml-in-barcelona/server-reason-react: Run extract-client-components as an esbuild plugin (#199)
… into fix-render-to-lwt-stream * 'main' of github.com:ml-in-barcelona/server-reason-react: Run extract-client-components as an esbuild plugin (#199)
No description provided.