File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -41,30 +41,6 @@ const config = {
4141 // Add support for .ipynb files
4242 config . assetsInclude = [ '**/*.ipynb' ] ;
4343
44- // Fix Storybook React entry resolution
45- config . build = config . build || { } ;
46- config . build . rollupOptions = config . build . rollupOptions || { } ;
47- config . build . rollupOptions . external = config . build . rollupOptions . external || [ ] ;
48-
49- // Add Storybook React to external dependencies
50- if ( Array . isArray ( config . build . rollupOptions . external ) ) {
51- config . build . rollupOptions . external . push (
52- '@storybook/react' ,
53- '@storybook/react/dist/entry-preview.mjs' ,
54- '@storybook/react/dist/entry-preview-docs.mjs'
55- ) ;
56- }
57-
58- // Alternative approach: optimizeDeps configuration
59- config . optimizeDeps = config . optimizeDeps || { } ;
60- config . optimizeDeps . exclude = config . optimizeDeps . exclude || [ ] ;
61- config . optimizeDeps . exclude . push ( '@storybook/react' ) ;
62-
63- // Fix for development server - ensure proper resolution
64- config . resolve = config . resolve || { } ;
65- config . resolve . dedupe = config . resolve . dedupe || [ ] ;
66- config . resolve . dedupe . push ( '@storybook/react' ) ;
67-
6844 // Return the altered config
6945 return config ;
7046 } ,
You can’t perform that action at this time.
0 commit comments