Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ This repo is a monorepo using pnpm workspaces. The package manager used to insta
- Checkout a topic branch from a base branch (e.g. `main`), and merge back against that branch.

- If adding a new feature:

- Add accompanying test case.
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first, and have it approved before working on it.

- If fixing a bug:

- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log (e.g. `fix: update entities encoding/decoding (fix #3899)`).
- Provide a detailed description of the bug in the PR. Live demo preferred.
- Add appropriate test coverage if applicable.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"lint-staged": "^15.5.2",
"picocolors": "^1.1.1",
"playwright-chromium": "^1.53.2",
"prettier": "^3.0.3",
"prettier": "^3.6.2",
"simple-git-hooks": "^2.13.0",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default function viteReact(opts: Options = {}): Plugin[] {
jsxImportRuntime,
]
const staticBabelPlugins =
typeof opts.babel === 'object' ? opts.babel?.plugins ?? [] : []
typeof opts.babel === 'object' ? (opts.babel?.plugins ?? []) : []
const reactCompilerPlugin = getReactCompilerPlugin(staticBabelPlugins)
if (reactCompilerPlugin != null) {
const reactCompilerRuntimeModule =
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-rsc/examples/basic/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"name": "vite-rsc-basic",
"main": "dist/rsc/cloudflare.js",
"assets": {
"directory": "dist/client"
"directory": "dist/client",
},
"workers_dev": true,
"compatibility_date": "2025-04-01",
"compatibility_flags": ["nodejs_als"]
"compatibility_flags": ["nodejs_als"],
}
4 changes: 2 additions & 2 deletions packages/plugin-rsc/examples/react-router/app/paper.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
}

@utility btn-* {
border-color: --value(--btn-color- *);
color: --value(--btn-color- *);
border-color: --value(--btn-color-*);
color: --value(--btn-color-*);
}

@utility btn-sm {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"main": "./entry.rsc.tsx",
"workers_dev": true,
"compatibility_date": "2025-04-01",
"compatibility_flags": ["nodejs_als"]
"compatibility_flags": ["nodejs_als"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"workers_dev": true,
"services": [{ "binding": "RSC", "service": "vite-rsc-react-router-rsc" }],
"compatibility_date": "2025-04-01",
"compatibility_flags": ["nodejs_als"]
"compatibility_flags": ["nodejs_als"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"main": "./src/framework/entry.rsc.tsx",
"workers_dev": true,
"compatibility_date": "2025-04-01",
"compatibility_flags": ["nodejs_als"]
"compatibility_flags": ["nodejs_als"],
}
11 changes: 9 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading