We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3698abc commit 3062937Copy full SHA for 3062937
1 file changed
.storybook/main.ts
@@ -8,6 +8,16 @@ const config = {
8
backgrounds: false,
9
},
10
async viteFinal(config) {
11
+ config.plugins ??= []
12
+
13
+ config.plugins.push({
14
+ name: 'ignore-internals',
15
+ transform(_, id) {
16
+ if (id.includes('/app/pages/blog/') && id.endsWith('.md')) {
17
+ return 'export default {}'
18
+ }
19
+ },
20
+ })
21
// Replace the built-in vue-docgen plugin with a fault-tolerant version.
22
// vue-docgen-api can crash on components that import types from other
23
// .vue files (it tries to parse the SFC with @babel/parser as plain TS).
0 commit comments