From d0c564ac77d3e87fdd084932f6145c9a42bdcd2b Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Thu, 9 Oct 2025 11:37:30 +0200 Subject: [PATCH] upgrade react-compiler to v1 --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- vite.config.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 2ad29e51..debaefd8 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "@vitest/browser": "3.2.4", "@vitest/coverage-v8": "3.2.4", "@vitest/ui": "3.2.4", - "babel-plugin-react-compiler": "19.1.0-rc.3", + "babel-plugin-react-compiler": "1.0.0", "chalk": "5.6.2", "happy-dom": "19.0.2", "knip": "5.64.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4d2313a6..dba1f07c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -109,8 +109,8 @@ importers: specifier: 3.2.4 version: 3.2.4(vitest@3.2.4) babel-plugin-react-compiler: - specifier: 19.1.0-rc.3 - version: 19.1.0-rc.3 + specifier: 1.0.0 + version: 1.0.0 chalk: specifier: 5.6.2 version: 5.6.2 @@ -1662,8 +1662,8 @@ packages: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} engines: {node: '>=10', npm: '>=6'} - babel-plugin-react-compiler@19.1.0-rc.3: - resolution: {integrity: sha512-mjRn69WuTz4adL0bXGx8Rsyk1086zFJeKmes6aK0xPuK3aaXmDJdLHqwKKMrpm6KAI1MCoUK72d2VeqQbu8YIA==} + babel-plugin-react-compiler@1.0.0: + resolution: {integrity: sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==} balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -4957,7 +4957,7 @@ snapshots: cosmiconfig: 7.1.0 resolve: 1.22.10 - babel-plugin-react-compiler@19.1.0-rc.3: + babel-plugin-react-compiler@1.0.0: dependencies: '@babel/types': 7.28.0 diff --git a/vite.config.ts b/vite.config.ts index 566f83fa..41cae4a0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ // Run the react-compiler on .tsx files only when bundling { ...babel({ - filter: /\.tsx?$/, + filter: /\.(ts|tsx)$/, babelConfig: { presets: ["@babel/preset-typescript"], plugins: ["babel-plugin-react-compiler"],