Merge pull request #13819 from phated/phated/vue3-addon-docs-fix

Addon-docs/Vue3: Resolve vue3 package for addon-docs preset
This commit is contained in:
Michael Shilman 2021-02-05 08:27:20 +08:00 committed by GitHub
commit 411f94f156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
export function webpackFinal(webpackConfig: any = {}, options: any = {}) {
webpackConfig.module.rules.push({
test: /\.vue$/,
loader: require.resolve('vue-docgen-loader', { paths: [require.resolve('@storybook/vue')] }),
loader: require.resolve('vue-docgen-loader', { paths: [require.resolve('@storybook/vue3')] }),
enforce: 'post',
options: {
docgenOptions: {