diff options
author | 2023-08-04 17:38:17 -0700 | |
---|---|---|
committer | 2023-08-04 17:38:17 -0700 | |
commit | f06f178862f6572391e9462e340ce8046add46fc (patch) | |
tree | bc165b98df548e3c4a655bfe2656db58460301d6 /docs | |
parent | 8275b8ccd2f0d39b482950dd809d6753c165607c (diff) | |
download | bun-f06f178862f6572391e9462e340ce8046add46fc.tar.gz bun-f06f178862f6572391e9462e340ce8046add46fc.tar.zst bun-f06f178862f6572391e9462e340ce8046add46fc.zip |
Fix incorrect docs
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) --- |