From 881050d265a5c0d5c044ec1510339f7254082c21 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Thu, 21 Jul 2022 19:08:55 +0100 Subject: [PATCH] docs(config): clarify config esm syntax (#9157) --- docs/config/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/index.md b/docs/config/index.md index 0ffd9f05967fbd..48254361328e1e 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -15,7 +15,7 @@ export default { } ``` -Note Vite supports using ES modules syntax in the config file even if the project is not using native Node ESM via `type: "module"`. In this case, the config file is auto pre-processed before load. +Note Vite supports using ES modules syntax in the config file even if the project is not using native Node ESM, e.g. `type: "module"` in `package.json`. In this case, the config file is auto pre-processed before load. You can also explicitly specify a config file to use with the `--config` CLI option (resolved relative to `cwd`):