Skip to content

Commit cc7a232

Browse files
committed
Update README.md
1 parent 4061761 commit cc7a232

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
</p>
1010

1111
# rollup-plugin-node-externals
12-
A Rollup/Vite plugin that automatically declares NodeJS built-in modules as `external`. Also handles npm dependencies, devDependencies, peerDependencies and optionalDependencies.
12+
A Rollup/Vite plugin that automatically declares NodeJS built-in modules as `external`. Also handles dependencies, devDependencies, peerDependencies and optionalDependencies.
1313

14-
Works in pnpm/yarn/lerna monorepos too!
14+
Works in monorepos too!
1515

1616

1717
## Why you need this
@@ -34,7 +34,7 @@ As an added bonus, this plugin will also declare your dependencies (as per your
3434

3535

3636
## Installation
37-
Use your favorite package manager. Mine is [npm](https://www.npmjs.com).
37+
Use your favorite package manager. Mine is [npm](https://www.npmjs.com):
3838

3939
```sh
4040
npm install --save-dev rollup-plugin-node-externals
@@ -122,7 +122,7 @@ export default {
122122
Set the `builtins` option to `false` if you'd like to use some shims/polyfills for those. You'll most certainly need [an other plugin](https://github.com/ionic-team/rollup-plugin-node-polyfills) as well.
123123

124124
#### builtinsPrefix?: 'add' | 'strip' | 'ignore' = 'add'
125-
How to handle the `node:` scheme used in recent versions of Node (i.e., `import path from 'node:path'`).
125+
How to handle the `node:` scheme when importing builtins (i.e., `import path from 'node:path'`).
126126
- If `add` (the default, recommended), the `node:` scheme is always added if missing. In effect, this dedupes your imports of Node builtins by homogenizing their names to their schemed version.
127127
- If `strip`, the scheme is always removed. In effect, this dedupes your imports of Node builtins by homogenizing their names to their scheme-less version. Schemed-only builtins like `node:test` are never stripped.
128128
- `ignore` will simply leave all builtins imports as written in your code.

0 commit comments

Comments
 (0)