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:
+1
-1
@@ -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
@@ -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',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user