Skip to content

Commit 849f919

Browse files
committed
docs: Fix builtinsPrefix section
1 parent 7c792a8 commit 849f919

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ export default {
106106
```
107107

108108
#### builtins?: boolean = true
109-
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) for this.
109+
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.
110110

111111
#### builtinsPrefix?: 'add' | 'strip' | 'ignore' = 'add'
112-
How to handle the `node:` scheme used in recent versions of Node (i.e., `import path from 'node:path'`).<br>
112+
How to handle the `node:` scheme used in recent versions of Node (i.e., `import path from 'node:path'`).
113113
- If `add` (the default, recommended), the `node:` prefix is always added. In effect, this homogenizes all your imports of Node builtins to their prefixed version.
114-
- If `strip` (the default), the import is always resolved unprefixed. In effect, this homogenizes all your imports of Node builtins to their unprefixed version.
114+
- If `strip`, the prefix is always removed. In effect, this homogenizes all your imports of Node builtins to their unprefixed version.
115115
- `ignore` will simply leave all builtins imports as written in your code.
116-
> _Note that prefix handling is always applied, regardless of the `builtins` options being enabled or disabled._
116+
> _Note that prefix handling is always applied, regardless of the `builtins` options being enabled or not._
117117
118118
#### packagePath?: string | string[] = []
119119
If you're working with monorepos, the `packagePath` option is made for you. It can take a path, or an array of paths, to your package.json file(s). If not specified, the default is to start with the current directory's package.json then go up scan for all `package.json` files in parent directories recursively until either the root git directory is reached or until no other `package.json` can be found.
@@ -130,7 +130,7 @@ Use the `include` option to force certain dependencies into the list of external
130130
```js
131131
nodeExternals({
132132
deps: false, // Deps will be bundled in
133-
include: /^fsevents/ // Except for fsevents
133+
include: 'fsevents' // Except for fsevents
134134
})
135135
```
136136

0 commit comments

Comments
 (0)