Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Oct 1, 2024
1 parent 31cd7fc commit 52b6e0f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
27 changes: 24 additions & 3 deletions packages/react/.size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,41 @@ module.exports = [
path: 'dist/index.mjs',
import: '{ LiveKitRoom }',
limit: '4 kB',
ignore: ['livekit-client', 'react', 'react-dom', 'loglevel', '@livekit/krisp-noise-filter'],
ignore: [
'livekit-client',
'react',
'react-dom',
'react/jsx-runtime',
'loglevel',
'@livekit/krisp-noise-filter',
],
},
{
name: 'LiveKitRoom with VideoConference',
path: 'dist/index.mjs',
import: '{ LiveKitRoom, VideoConference }',
limit: '40 kB',
ignore: ['livekit-client', 'react', 'react-dom', 'loglevel', '@livekit/krisp-noise-filter'],
ignore: [
'livekit-client',
'react',
'react-dom',
'react/jsx-runtime',
'loglevel',
'@livekit/krisp-noise-filter',
],
},
{
name: 'All exports',
path: 'dist/index.mjs',
import: '*',
limit: '100 kB',
ignore: ['livekit-client', 'react', 'react-dom', 'loglevel', '@livekit/krisp-noise-filter'],
ignore: [
'livekit-client',
'react',
'react-dom',
'react/jsx-runtime',
'loglevel',
'@livekit/krisp-noise-filter',
],
},
];
2 changes: 2 additions & 0 deletions packages/react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default defineConfig({
lib: {
entry: {
index: resolve(__dirname, 'src/index.ts'),
hooks: resolve(__dirname, 'src/hooks/index.ts'),
prefabs: resolve(__dirname, 'src/prefabs/index.ts'),
krisp: resolve(__dirname, 'src/hooks/cloud/krisp/useKrispNoiseFilter.ts'),
},
},
Expand Down

0 comments on commit 52b6e0f

Please sign in to comment.