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