mirror of https://github.com/vuejs/vitepress
If users have a `type: module` entry in their `package.json`, they could not use VitePress with a `config.js` file. This change makes it so that `config.cjs` is searched before `config.js`. Node's 'require' function allows files with such extensions to be loaded even from within an ES module project. * docs/guide/configuration.md: Mention config.cjs * src/node/config.ts: Consider config.cjspull/339/head
parent
aa9f9094b5
commit
7ae37941e1
Loading…
Reference in new issue