Skip to content

"vitepress" work with "unplugin-vue-components" bug #4519

@huchaomin

Description

@huchaomin

Describe the bug

all auto import components in dev mode is ok.
all auto import components in build mode is ok, when there have no 'script' tag in md files

if md file have 'script' tag of one page. the page's auto import component will not resolve in build mode!!!!

Reproduction

it's an empty vitepress project.

Reproduction URL

Expected behavior

Image Image Image Image

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (28) x64 Intel(R) Core(TM) i7-14700KF
    Memory: 15.99 GB / 31.82 GB
  Binaries:
    Node: 20.17.0 - D:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - D:\Program Files\nodejs\npm.CMD
    pnpm: 9.8.0 - D:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vitepress: ^1.6.3 => 1.6.3

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions