Skip to content

Commit 67ad34a

Browse files
committed
- Handle node:test as a builtin
- Add compatibility with Rollup 4.0.0 - Upate obsolete dependencies
1 parent 849f919 commit 67ad34a

File tree

5 files changed

+440
-578
lines changed

5 files changed

+440
-578
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ will both work.
4949
### Options
5050
You generally want to have your **runtime dependencies** (those that will be imported/required at runtime) listed under `dependencies` in `package.json`, and your **development dependencies** (those that should be bundled in by Rollup) listed under `devDependencies`.
5151

52-
If you follow this simple rule, then the defaults settings are just what you need:
52+
If you follow this simple rule, then the default settings are just what you need:
5353

5454
```js
5555
// rollup.config.js
@@ -118,10 +118,7 @@ How to handle the `node:` scheme used in recent versions of Node (i.e., `import
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.
120120

121-
#### deps?: boolean = true
122-
#### devDeps?: boolean = false
123-
#### peerDeps?: boolean = true
124-
#### optDeps?: boolean = true
121+
#### deps?: boolean = true<br>devDeps?: boolean = false<br>peerDeps?: boolean = true<br>optDeps?: boolean = true
125122
Set the `deps`, `devDeps`, `peerDeps` and `optDeps` options to `false` to prevent the corresponding dependencies from being externalized, therefore letting Rollup bundle them with your code.
126123

127124
#### include?: string | RegExp | (string | RegExp)[] = []
@@ -139,7 +136,7 @@ Conversely, use the `exclude` option to remove certain dependencies from the lis
139136

140137
```js
141138
nodeExternals({
142-
deps: true, // Deps are external
139+
deps: true, // Keep deps external
143140
exclude: 'electron-reload' // Yet we want `electron-reload` bundled in
144141
})
145142
```
@@ -194,7 +191,7 @@ Rollup's own `external` configuration option always takes precedence over this p
194191

195192
### Breaking changes in version 6
196193
- This package is now esm-only and requires NodeJS v16+.<br />*If you need CommonJS or older NodeJS support, please stick to v5.*
197-
- This plugin now has a **peer-dependency** on Rollup ^3.0.0.<br />*If you need Rollup 2 support, please stick to v5.*
194+
- This plugin now has a **peer-dependency** on Rollup `^3.0.0 || ^4.0.0`.<br />*If you need Rollup 2 support, please stick to v5.*
198195

199196
<details><summary>Previous versions -- click to expand</summary>
200197

0 commit comments

Comments
 (0)