Skip to content

Commit f3ab908

Browse files
committed
feat: install events package instead of relying on node eventemitter implementation
1 parent b1a35c5 commit f3ab908

File tree

3 files changed

+122
-648
lines changed

3 files changed

+122
-648
lines changed

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"dependencies": {
5555
"@livekit/components-core": "workspace:*",
5656
"clsx": "2.1.1",
57+
"events": "^3.3.0",
5758
"jose": "^6.0.12",
5859
"usehooks-ts": "3.1.1",
5960
"zustand": "^5.0.8"
@@ -79,7 +80,7 @@
7980
"@svgr/cli": "^8.0.0",
8081
"@testing-library/react": "^16.0.0",
8182
"@types/events": "^3.0.3",
82-
"@types/node": "^24.3.1",
83+
"@types/node": "^24.7.0",
8384
"@types/react": "^18.0.25",
8485
"@types/react-dom": "^18.0.8",
8586
"@vitejs/plugin-react": "^4.3.2",
@@ -92,7 +93,6 @@
9293
"typed-emitter": "^2.1.0",
9394
"vite": "^6.0.0",
9495
"vite-plugin-dts": "^4.2.3",
95-
"vite-plugin-node-polyfills": "^0.24.0",
9696
"vitest": "^3.0.0"
9797
},
9898
"engines": {

packages/react/vite.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import { defineConfig } from 'vite';
22
import { resolve } from 'path';
33
import dts from 'vite-plugin-dts';
4-
import { nodePolyfills } from 'vite-plugin-node-polyfills'
54

65
// https://vitejs.dev/config/
76
export default defineConfig({
87
appType: 'custom',
98
plugins: [
109
// react(),
11-
nodePolyfills(),
1210
dts({
1311
insertTypesEntry: true, // Create a `types` entry in package.json
1412
rollupTypes: false, // Bundle .d.ts files into a single declaration file

0 commit comments

Comments
 (0)