Skip to content

Commit 32d5f73

Browse files
fix: Address React 18 compatibility by removing the React Compiler plugin and updating the README to reflect React 17+ readiness.
1 parent 6a68fc0 commit 32d5f73

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

.changeset/react18-compat.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@syntropy-labs/react-web-speech": patch
3+
---
4+
5+
### Bug Fix
6+
7+
- Fixed React 18 compatibility issue by removing React Compiler from production build
8+
- The React Compiler runtime is only available in React 19+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- 🌐 **Browser compatibility** — Handles Chrome, Edge, Safari with proper prefixing
1616
- 📦 **Tree-shakeable** — Only bundle what you use (~5KB gzipped)
1717
- 🔷 **TypeScript-first** — Full type safety and IDE autocomplete
18-
- ⚛️ **React 18+ ready** — Strict Mode compatible
18+
- ⚛️ **React 17+ ready** — Strict Mode compatible
1919

2020
## Installation
2121

tsdown.config.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pluginBabel from '@rollup/plugin-babel'
21
import { defineConfig } from 'tsdown'
32

43
export default defineConfig({
@@ -11,15 +10,4 @@ export default defineConfig({
1110
exports: true,
1211
external: ['react', 'react-dom'],
1312
fixedExtension: true,
14-
plugins: [
15-
pluginBabel({
16-
babelHelpers: 'bundled',
17-
extensions: ['.js', '.jsx', '.ts', '.tsx'],
18-
parserOpts: {
19-
sourceType: 'module',
20-
plugins: ['jsx', 'typescript'],
21-
},
22-
plugins: ['babel-plugin-react-compiler'],
23-
}),
24-
],
2513
})

0 commit comments

Comments
 (0)