@vitejs/plugin-react 6.0.4 → 6.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ const silenceUseClientWarning = (userConfig) => ({ rollupOptions: { onwarn(warni
41
41
  } } });
42
42
  //#endregion
43
43
  //#region src/reactCompilerPreset.ts
44
- const defaultCodeFilter = /forwardRef|memo|(?:const|let|var|function)\s+(?:[A-Z]|use[A-Z0-9])|(?:[A-Z]|use[A-Z0-9])[^\s:=(){}[\],;]*\s*(?:\(|[:=]\s*(?:function|\())/;
44
+ const defaultCodeFilter = /forwardRef|memo|\b(?:[A-Z]|use[A-Z0-9])/;
45
45
  const reactCompilerPreset = (options = {}) => ({
46
46
  preset: () => ({ plugins: [[fileURLToPath(import.meta.resolve("babel-plugin-react-compiler")), options]] }),
47
47
  rolldown: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-react",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "description": "The default Vite plugin for React projects",
5
5
  "keywords": [
6
6
  "fast refresh",
@@ -52,9 +52,9 @@
52
52
  "babel-plugin-react-compiler": "^1.0.0",
53
53
  "react": "^19.2.8",
54
54
  "react-dom": "^19.2.8",
55
- "rolldown": "^1.1.5",
56
- "tsdown": "^0.22.7",
57
- "vite": "^8.1.4"
55
+ "rolldown": "^1.2.0",
56
+ "tsdown": "^0.22.14",
57
+ "vite": "^8.1.5"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",