File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ const config: StorybookConfig = {
3535 // Alias components package to source to avoid circular dependency during build
3636 '@object-ui/core' : path . resolve ( __dirname , '../packages/core/src/index.ts' ) ,
3737 '@object-ui/react' : path . resolve ( __dirname , '../packages/react/src/index.ts' ) ,
38+ '@object-ui/types' : path . resolve ( __dirname , '../packages/types/src/index.ts' ) ,
39+ '@object-ui/i18n' : path . resolve ( __dirname , '../packages/i18n/src/index.ts' ) ,
40+ '@object-ui/mobile' : path . resolve ( __dirname , '../packages/mobile/src/index.ts' ) ,
3841 '@object-ui/components' : path . resolve ( __dirname , '../packages/components/src/index.ts' ) ,
3942 '@object-ui/fields' : path . resolve ( __dirname , '../packages/fields/src/index.tsx' ) ,
4043 '@object-ui/layout' : path . resolve ( __dirname , '../packages/layout/src/index.ts' ) ,
@@ -79,6 +82,15 @@ const config: StorybookConfig = {
7982 } ,
8083 build : {
8184 target : 'esnext' ,
85+ rollupOptions : {
86+ onwarn ( warning , warn ) {
87+ // Suppress "use client" directive warnings and sourcemap resolution errors
88+ if ( warning . code === 'MODULE_LEVEL_DIRECTIVE' || warning . message ?. includes ( 'sourcemap' ) ) {
89+ return ;
90+ }
91+ warn ( warning ) ;
92+ } ,
93+ } ,
8294 } ,
8395 } ) ;
8496 } ,
You can’t perform that action at this time.
0 commit comments