-
Notifications
You must be signed in to change notification settings - Fork 9
Add react-web
generator
#7
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
Comments
At what point would we generate the styles, given that the future component package will come with Tailwind styles that have not yet been compiled? |
we will import our design syteme from |
I've self assigned this since it's the natural progression from #273. My plan:
Footnotes
|
The
react-web
generator depends upon the #6 generator.The
react-web
parser receives a JSX Node. Then it builds into a JavaScript bundle by usingesbuild
JavaScript APIs and finally returns the output from the ESbuild pipeline into VFiles (?) (This is an open topic, as the build will probably return a bunch of different outputs which are probably the numerous chunks if we use chunk loading of the build);The
react-web
generator aims to receive a top-level JSX element, wrap it with ReactDOM, build it as an ES2017 (or newer) target output, and return the parsed/built content to be stored in files.Also, the
react-web
will receive the final contents of the generated pipeline. The output is pretty much JavaScript, which can then be used/added elsewhere.I'm not sure if we should use esbuild or how to deal with the Web part of the bundling/generation of the API docs because:
mdx-react
generator handles individual doc filesmdx-react
andreact-web
we need to handle building the rest of the website (such as navigation, footer, header, etc)I'd like input on this cc @nodejs/web-infra as this is the most complex part for outputting to Web
The text was updated successfully, but these errors were encountered: