Skip to content

Commit

Permalink
fix: external demo not show (#4084)
Browse files Browse the repository at this point in the history
* feat(module-doc): support external demo

* fix(module-doc): demo not show in mobile
  • Loading branch information
sanyuan0704 authored Jun 28, 2023
1 parent b40280c commit 62c2cda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/slimy-students-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/doc-plugin-preview': patch
---

fix(module-doc): demo not show in mobile

fix(module-doc): 修复移动端 demo 不显示问题
1 change: 1 addition & 0 deletions packages/cli/doc-plugin-preview/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ import Demo from '${demoComponentPath}'
.rule('Raw')
.resourceQuery(/raw/)
.type('asset/source')
.end()
.rule('MDX')
.oneOf('MDXMeta')
.before('MDXCompile')
Expand Down

0 comments on commit 62c2cda

Please sign in to comment.