diff --git a/.changeset/slimy-students-confess.md b/.changeset/slimy-students-confess.md new file mode 100644 index 000000000000..ce1e2a6b44fa --- /dev/null +++ b/.changeset/slimy-students-confess.md @@ -0,0 +1,7 @@ +--- +'@modern-js/doc-plugin-preview': patch +--- + +fix(module-doc): demo not show in mobile + +fix(module-doc): 修复移动端 demo 不显示问题 diff --git a/packages/cli/doc-plugin-preview/src/index.ts b/packages/cli/doc-plugin-preview/src/index.ts index 6b3baf2dfcb4..ce5621a01627 100644 --- a/packages/cli/doc-plugin-preview/src/index.ts +++ b/packages/cli/doc-plugin-preview/src/index.ts @@ -180,6 +180,7 @@ import Demo from '${demoComponentPath}' .rule('Raw') .resourceQuery(/raw/) .type('asset/source') + .end() .rule('MDX') .oneOf('MDXMeta') .before('MDXCompile')