Skip to content

Commit

Permalink
docs(config): clarify config esm syntax (#9157)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveALee committed Jul 21, 2022
1 parent 0580215 commit 881050d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Expand Up @@ -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`):

Expand Down

0 comments on commit 881050d

Please sign in to comment.