-
Notifications
You must be signed in to change notification settings - Fork 9
feat: implement plugin #1
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
Conversation
- Completely rewrote README.md with comprehensive documentation - Updated example project configuration and routes - Improved dev server and plugin configuration handling - Added more detailed styling and interactive elements to documentation pages - Refined plugin options and configuration management - Enhanced server-side rendering and custom server support
@ScriptedAlchemy Is there any feedback/buy-in from the remix guys at the moment? |
"@types/node": "^22.10.1", | ||
"@types/react": "^19.0.1", | ||
"@types/react-dom": "^19.0.1", | ||
"jiti": "^2.4.1", |
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.
jiti
can be moved to dependencies
, otherwise Rslib will bundle it..
let clientStats: Rspack.StatsCompilation | undefined; | ||
api.onAfterEnvironmentCompile(({ stats, environment }) => { | ||
if (environment.name === 'web') { | ||
clientStats = stats?.toJson(); |
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.
Getting all the stats in Rspack is quite slow, if we can specify options it will be faster.
Let's merge the code into the main branch so more people can see it and contribute 😄 |
This pull request primarily focuses on setting up a modern, full-stack React application template using React Router and Cloudflare. The changes include adding configuration files, setting up TypeScript, integrating TailwindCSS for styling, and ensuring server-side rendering. Here are the most important changes:
Cloudflare Example Project:
.gitignore
andREADME.md
for guidance. (examples/cloudflare/.gitignore
,examples/cloudflare/README.md
) [1] [2]examples/cloudflare/app/app.css
,examples/cloudflare/postcss.config.cjs
,examples/cloudflare/tailwind.config.ts
) [1] [2] [3]React Router Integration:
examples/cloudflare/app/entry.server.tsx
,examples/cloudflare/app/root.tsx
) [1] [2]examples/cloudflare/app/routes.ts
,examples/cloudflare/app/routes/home.tsx
,examples/cloudflare/app/welcome/welcome.tsx
) [1] [2] [3]Build and Deployment:
examples/cloudflare/rsbuild.config.ts
,examples/cloudflare/package.json
) [1] [2]examples/cloudflare/server/app.ts
)These changes collectively establish a robust foundation for developing and deploying a React application with modern tools and best practices.