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
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@alper/video-player", "name": "@alper/video-player",
"version": "0.1.6", "version": "0.1.7",
"description": "Modern, feature-rich video player library for React", "description": "Modern, feature-rich video player library for React",
"type": "module", "type": "module",
"main": "./dist/video-player.umd.cjs", "main": "./dist/video-player.umd.cjs",
+2 -1
View File
@@ -41,11 +41,12 @@ export default defineConfig({
}, },
}, },
rollupOptions: { rollupOptions: {
external: ['react', 'react-dom', 'hls.js', 'flv.js'], external: ['react', 'react-dom', 'react/jsx-runtime', 'hls.js', 'flv.js'],
output: { output: {
globals: { globals: {
react: 'React', react: 'React',
'react-dom': 'ReactDOM', 'react-dom': 'ReactDOM',
'react/jsx-runtime': 'jsxRuntime',
'hls.js': 'Hls', 'hls.js': 'Hls',
'flv.js': 'flvjs', 'flv.js': 'flvjs',
}, },