Skip to content
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

vue.config.js - use ES modules in docs #6196

Open
Mikilll94 opened this issue Jan 8, 2021 · 2 comments
Open

vue.config.js - use ES modules in docs #6196

Mikilll94 opened this issue Jan 8, 2021 · 2 comments

Comments

@Mikilll94
Copy link

What problem does this feature solve?

Right now in the docs vue.config.js file is using CommonJS syntax, like i.e. here
https://cli.vuejs.org/config/#global-cli-config
https://cli.vuejs.org/guide/webpack.html#simple-configuration

Screenshot 2021-01-08 at 18 34 46

Can you change these examples to use ES modules syntax? ES modules is a more modern and better syntax. Also Visual Studio Code is highlighting this CommonJS syntax with a suggestion to convert it to ES modules.

What does the proposed API look like?

Use ES modules syntax in the docs.

@fangbinwei
Copy link
Collaborator

I think CLI needs support vue.config.mjs first. Since CLI generates configuration files like babel.config.js with CommonJS by default, maybe it is not a good time to change the document now.

@linghengqian
Copy link

This issue was resolved at #6405 and should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants