Skip to content

Commit

Permalink
docs: import.meta.url is replaced even if ESM (#7794)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Apr 18, 2022
1 parent 788d2ec commit 6198911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Expand Up @@ -28,7 +28,7 @@ vite --config my-config.js
```

::: tip NOTE
Vite will replace `__filename`, `__dirname`, and `import.meta.url` in **CommonJS** and **TypeScript** config files. Using these as variable names will result in an error:
Vite will replace `__filename`, `__dirname`, and `import.meta.url` in config files and its deps. Using these as variable names will result in an error:

```js
const __filename = "value"
Expand Down

0 comments on commit 6198911

Please sign in to comment.