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.
pull/615/head
Kumar Gaurav 3 years ago committed by GitHub
parent 1656f0365a
commit c1d964c295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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: The essential file for configuring a VitePress site is `.vitepress/config.js`, which should export a JavaScript object:
```js ```js
module.exports = { export default {
title: 'Hello VitePress', title: 'Hello VitePress',
description: 'Just playing around.' description: 'Just playing around.'
} }

Loading…
Cancel
Save