Fix JSX runtime bundling issue causing crashes in consuming projects

- Add 'react/jsx-runtime' to external dependencies in vite.config.lib.ts
- This prevents bundling React's JSX runtime into the package
- Fixes "Cannot read properties of undefined (reading 'recentlyCreatedOwnerStacks')" error
- Bump version to 0.1.7

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hibna
2025-11-04 04:35:34 +03:00
parent 0ee7ef93eb
commit e3b2d396e1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -41,11 +41,12 @@ export default defineConfig({
},
},
rollupOptions: {
external: ['react', 'react-dom', 'hls.js', 'flv.js'],
external: ['react', 'react-dom', 'react/jsx-runtime', 'hls.js', 'flv.js'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDOM',
'react/jsx-runtime': 'jsxRuntime',
'hls.js': 'Hls',
'flv.js': 'flvjs',
},