Skip to content

Commit

Permalink
docs: fix basepath option description
Browse files Browse the repository at this point in the history
  • Loading branch information
nktnet1 committed Jan 18, 2024
1 parent 2193812 commit 5d46676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ Module name or relative path similar to CommonJS [require](https://nodejs.org/ap
<tr>
<td>basePath</td>
<td>
Absolute path to the module's directory.
The basePath option will only take effect if the given <code>id</code> starts with <code>./</code> or <code>../</code>.
This will only take effect if the given <code>id</code> starts with <code>./</code> or <code>../</code>.
<br/>
For example,
<ul>
Expand All @@ -174,10 +173,11 @@ Module name or relative path similar to CommonJS [require](https://nodejs.org/ap
<li>❌ <code>localLib.mjs</code></li>
<li>❌ <code>node-fetch</code></li>
</ul>
The ❌ examples above will be interpreted as either absolute paths or library imports.
</td>
<td>
<pre>
process.cwd()
./myModule
</pre>
</td>
<td><code>__dirname</code></td>
Expand Down

0 comments on commit 5d46676

Please sign in to comment.