From c1d964c295d90e8afba6c6f80bc38b2c67e2c717 Mon Sep 17 00:00:00 2001 From: Kumar Gaurav Date: Fri, 6 May 2022 12:41:13 +0530 Subject: [PATCH] ESM instead of CommonJs (#597) Modified the CommonJs style export of `config.js` to the ESM style export. Vite is all about advancement of tools. Why not reflect it in documents, by using ESM instead of CommonJs. --- docs/guide/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md index bc6e747c..f2661653 100644 --- a/docs/guide/configuration.md +++ b/docs/guide/configuration.md @@ -16,7 +16,7 @@ Without any configuration, the page is pretty minimal, and the user has no way t The essential file for configuring a VitePress site is `.vitepress/config.js`, which should export a JavaScript object: ```js -module.exports = { +export default { title: 'Hello VitePress', description: 'Just playing around.' }