Skip to content

ESM instead of CommonJs #597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2022
Merged

ESM instead of CommonJs #597

merged 1 commit into from
May 6, 2022

Conversation

quriosapien
Copy link
Contributor

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.

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.
@WebMechanic
Copy link

I believe this is where the voyage goes like with the rest of the Vueniverse:

// .vitepress/config.js
import {defineConfig} from 'vitepress'
export default defineConfig({ ... });

@yyx990803 yyx990803 merged commit c1d964c into vuejs:main May 6, 2022
@yyx990803
Copy link
Member

We actually ship defineConfig and defineConfigWithTheme now, both with full type support, which we should document at some point.

@quriosapien quriosapien deleted the patch-1 branch December 28, 2022 18:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants