Skip to content

chore: release 0.0.1 beta.1#18

Merged
SyMind merged 11 commits intomainfrom
release-0.0.1-beta.1
Mar 5, 2026
Merged

chore: release 0.0.1 beta.1#18
SyMind merged 11 commits intomainfrom
release-0.0.1-beta.1

Conversation

@SyMind
Copy link
Copy Markdown
Collaborator

@SyMind SyMind commented Mar 5, 2026

No description provided.

@SyMind SyMind force-pushed the release-0.0.1-beta.1 branch from 4019bcd to 9b3ec2f Compare March 5, 2026 06:55
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly advances the static site generation capabilities within the Rsbuild ecosystem, particularly for React Server Components. It introduces a robust framework for building and testing static RSC applications, including a new preview option for build processes, a refactored RSC entrypoint to support static rendering, and a dedicated post-build static generation script. The static example has been thoroughly updated with comprehensive documentation and a new E2E test suite to validate these enhancements, alongside a version bump for the core rsbuild-plugin-rsc.

Highlights

  • Enhanced Static Site Generation (SSG) Example: The examples/static project has been completely revamped to demonstrate a multi-page static site with Rsbuild and React Server Components (RSC), including file-based routing, SSG, client-side hydration, and client-side navigation. This involves a new generate.mjs script and an Rsbuild plugin for post-build static generation.
  • New preview Option for E2E Builds: A preview option has been added to the E2E build helper function, allowing the test runner to start a preview server after a build, facilitating testing of production builds.
  • Refactored RSC Entrypoint for SSG: The entry.rsc.tsx file now exports dedicated functions (getStaticPaths, renderStaticPage, renderStaticRsc) to support static generation of HTML and RSC payloads, alongside its existing dev server handler.
  • Updated rsbuild-plugin-rsc Version: The rsbuild-plugin-rsc package has been bumped to version 1.0.0-beta.0, reflecting significant updates and new capabilities, particularly around static rendering.
  • New E2E Test Suite for Static App: A comprehensive E2E test file (e2e/integration/static-app/index.test.ts) has been introduced to validate the functionality of the new static example, covering page loading, interactive components, and client-side navigation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • e2e/helper/jsApi.ts
    • Added preview option to BuildOptions interface.
    • Included preview parameter in the build function signature.
    • Implemented logic to start a preview server if preview is true.
    • Changed server.close method to be async.
  • e2e/integration/counter-app/index.test.ts
    • Imported Page type from playwright.
  • e2e/integration/static-app/index.test.ts
    • Added a new E2E test file for the static example.
    • Included tests for page title, heading visibility, stylesheet count, counter component interaction, client-side navigation, CSS styles on nav links, and counter state reset on navigation.
  • e2e/integration/todos-app/index.test.ts
    • Imported Page type from playwright.
  • examples/static/README.md
    • Rewrote the entire README to describe the "Rsbuild RSC Static Rendering Example".
    • Added sections for getting started, project structure, build output, page components, server components, client components, framework layer details (RSC, SSR, Client entrypoints), Rsbuild configuration, and how SSG, initial page load, and client-side navigation work.
    • Removed references to Parcel.
  • examples/static/generate.mjs
    • Added a new Node.js script for post-build static generation.
    • Implemented functions to convert streams to string and buffer.
    • Loads the server bundle to get static paths.
    • Generates HTML files and RSC payload files for each route.
  • examples/static/package.json
    • Renamed the package from parcel-rsc-static to rsbuild-rsc-static.
    • Set type to module.
    • Updated the dev script to use cross-env NODE_OPTIONS="--experimental-vm-modules".
    • Removed Parcel-specific targets configuration.
    • Added @rsbuild/core and cross-env to devDependencies.
  • examples/static/rsbuild.config.ts
    • Added execFile and promisify imports.
    • Defined pluginStaticGenerate to run generate.mjs after the build.
    • Integrated pluginStaticGenerate into the Rsbuild plugins.
    • Updated ssr layer path to use import.meta.dirname.
    • Configured output.distPath.root for the server environment.
    • Refactored dev.setupMiddlewares to use indexModule.default.nodeHandler.
  • examples/static/src/framework/entry.rsc.tsx
    • Imported IncomingMessage, ServerResponse, ServerEntry, and toNodeHandler.
    • Exported getStaticPaths to retrieve all static routes.
    • Exported renderStaticPage to render a page to an HTML stream for SSG.
    • Exported renderStaticRsc to render a page to an RSC payload stream for client-side navigation.
    • Introduced getPageModule and buildRscPayload helper functions.
    • Modified the default export to an object containing nodeHandler for dev server middleware.
    • Updated renderHtml call to use bootstrapScripts and ssg: true for static rendering.
  • examples/static/src/framework/ssg.tsx
    • Removed the TocNode interface.
  • package.json
    • Updated rsbuild-plugin-rsc version from 0.0.1-beta.0 to 1.0.0-beta.0.
  • pnpm-lock.yaml
    • Updated @swc/helpers version from 0.5.18 to 0.5.19.
    • Updated @rspack/core dependency resolution.
    • Added @rsbuild/core and cross-env to examples/static dev dependencies.
    • Removed @swc/helpers@0.5.18 entry.
Activity
  • The pull request is titled "chore: release 0.0.1 beta.1", indicating a version update and associated changes.
  • The author, SyMind, has implemented significant updates to the static site generation example and related tooling.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a preview option for e2e tests and adds a comprehensive example for static site generation with React Server Components. The changes are well-structured, particularly the refactoring of the RSC entrypoint for SSG. My review includes a suggestion to correctly handle server shutdown in the test helper to prevent potential race conditions, and a comment regarding a version mismatch in the root package.json that should be verified.

@SyMind SyMind merged commit 862d88a into main Mar 5, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant