File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
addons/docs/src/frameworks/vue Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11export function webpackFinal ( webpackConfig : any = { } , options : any = { } ) {
2+ let vueDocgenOptions = { } ;
3+
4+ options . presetsList . forEach ( ( preset : any ) => {
5+ if ( preset . name . includes ( 'addon-docs' ) && preset . options . vueDocgenOptions ) {
6+ const appendableOptions = preset . options . vueDocgenOptions ;
7+ vueDocgenOptions = {
8+ ...vueDocgenOptions ,
9+ ...appendableOptions ,
10+ } ;
11+ }
12+ } ) ;
13+
214 webpackConfig . module . rules . push ( {
315 test : / \. v u e $ / ,
416 loader : require . resolve ( 'vue-docgen-loader' , { paths : [ require . resolve ( '@storybook/vue' ) ] } ) ,
517 enforce : 'post' ,
618 options : {
719 docgenOptions : {
820 alias : webpackConfig . resolve . alias ,
9- ...options . vueDocgenOptions ,
21+ ...vueDocgenOptions ,
1022 } ,
1123 } ,
1224 } ) ;
You can’t perform that action at this time.
0 commit comments