vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.01k stars 2.1k forks source link

loaderMatch need more limit #4103

Closed cocaine-coder closed 2 months ago

cocaine-coder commented 2 months ago

Describe the bug

when source code or package code (node_modules) existes *.data.js/mjs/ts/mts , will invoke staticDataPlugin.load then loadConfigFromFile throw error "Could not load xxx.data.js: config must export or return an object".

Reproduction

git clone https://github.com/cocaine-coder/babylon-toolkits.git

cd babylon-toolkits

yarn

yarn docs:build

Expected behavior

build successfully

System Info

vitepress --binaries

Additional context

No response

Validations