Skip to content

Commit c1d964c

Browse files
authored
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.
1 parent 1656f03 commit c1d964c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Without any configuration, the page is pretty minimal, and the user has no way t
1616
The essential file for configuring a VitePress site is `.vitepress/config.js`, which should export a JavaScript object:
1717

1818
```js
19-
module.exports = {
19+
export default {
2020
title: 'Hello VitePress',
2121
description: 'Just playing around.'
2222
}

0 commit comments

Comments
 (0)