docs-ko icon indicating copy to clipboard operation
docs-ko copied to clipboard

[SYNC] docs: fix broken link to envPrefix config option (#9161)

Open github-actions[bot] opened this issue 3 years ago • 0 comments

docs: fix broken link to envPrefix config option (#9161) (344642a)


+++ b/docs/config/index.md
@@ -23,19 +23,6 @@ You can also explicitly specify a config file to use with the `--config` CLI opt
vite --config my-config.js
```
-::: tip NOTE
-Vite will inject `__filename`, `__dirname` in config files and its deps. Declaring these variables at top level will result in an error:
-
-```js
-const __filename = 'value' // SyntaxError: Identifier '__filename' has already been declared
-
-const func = () => {
-  const __filename = 'value' // no error
-}
-```
-
-:::
-
## Config Intellisense
Since Vite ships with TypeScript typings, you can leverage your IDE's intellisense with jsdoc type hints:

github-actions[bot] avatar Jul 17 '22 00:07 github-actions[bot]