diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api/import-meta.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/api/import-meta.md b/docs/api/import-meta.md index 8e148fffa..bc8de7af5 100644 --- a/docs/api/import-meta.md +++ b/docs/api/import-meta.md @@ -19,17 +19,18 @@ import.meta.resolveSync("zod") --- - `import.meta.dir` -- Absolute path to the directory containing the current fil, e.g. `/path/to/project`. Equivalent to `__dirname` in Node.js. +- Absolute path to the directory containing the current file, e.g. `/path/to/project`. Equivalent to `__dirname` in CommonJS modules (and Node.js) --- - `import.meta.file` -- The name of the current file, e.g. `index.tsx`. Equivalent to `__filename` in Node.js. +- The name of the current file, e.g. `index.tsx` --- - `import.meta.path` - Absolute path to the current file, e.g. `/path/to/project/index.tx`. +- Equivalent to `__filename` in CommonJS modules (and Node.js) --- |