Skip to content

Commit 6198911

Browse files
authored
docs: import.meta.url is replaced even if ESM (#7794)
1 parent 788d2ec commit 6198911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/config/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ vite --config my-config.js
2828
```
2929

3030
::: tip NOTE
31-
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:
31+
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:
3232

3333
```js
3434
const __filename = "value"

0 commit comments

Comments
 (0)