You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ export default {
34
34
// Make node builtins external. Optional. Default: true
35
35
builtins?: boolean,
36
36
37
-
// Treat prefixed builtins as their unprefixed counterpart. Optional. Default: true
37
+
// Treat prefixed builtins as their unprefixed counterpart. Optional. Default: 'strip'
38
38
prefixedBuiltins?: boolean|'strip',
39
39
40
40
// Make pkg.dependencies external. Optional. Default: false
@@ -78,8 +78,8 @@ If you're working with monorepos, the `packagePath` is made for you. It can take
78
78
#### builtins?: boolean = true
79
79
Set the `builtins` option to `false` if you'd like to use some shims for those. You'll most certainly need [an other plugin](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#resolving-built-ins-like-fs) for this.
80
80
81
-
#### prefixedBuiltins?: boolean | 'strip' = true
82
-
How to handle the `node:` (or sometimes `nodejs:`) prefix some authors use in their code (i.e., `import path from 'node:path'`). If `true` (default), prefixed builtins are treated as their unprefixed equivalent. If `strip`, the prefix is removed from the name and other plugins will never know it was there.
How to handle the `node:` (or sometimes `nodejs:`) prefix some authors use in their code (i.e., `import path from 'node:path'`). If `false`, the import is used as-is to determine if it is external, meaning that `'node:path'` and `'path'` are considered two distincts imports. If `true`, prefixed builtins are treated as their unprefixed equivalent. If `strip` (default), the prefix is also removed from the name and other plugins will never know it was there.
83
83
84
84
#### deps?: boolean = false
85
85
Set the `deps` option to `true` to externalize your normal dependencies, therefore preventing Rollup from bundling them with your code.
0 commit comments