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
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,6 @@ import { nodeExternals } from 'rollup-plugin-node-externals'
44
44
45
45
will both work.
46
46
47
-
> Note: an undocumented named export `externals` also exists that is kept in v6.1 for backwards compatibility only and will be removed in the next major version.
48
47
49
48
### Options
50
49
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`.
@@ -189,24 +188,30 @@ Rollup's own `external` configuration option always takes precedence over this p
189
188
190
189
## Breaking changes
191
190
192
-
### Breaking changes in version 6
193
-
- This package is now esm-only and requires NodeJS v16+.<br />*If you need CommonJS or older NodeJS 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.*
191
+
### Breaking changes in version 7
192
+
- This package now supports the latest release of [any major version that is supported by Node.js itself](https://github.com/nodejs/Release#release-schedule).
193
+
-The undocumented `externals` named export has been removed.
195
194
195
+
### Breaking changes in previous versions
196
196
<details><summary>Previous versions -- click to expand</summary>
197
197
198
-
### Breaking changes in version 5
198
+
#### Breaking changes in version 6
199
+
- This package is now esm-only and requires NodeJS v16+.<br />*If you need CommonJS or older NodeJS support, please stick to v5.*
200
+
- 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.*
201
+
202
+
#### Breaking changes in version 5
199
203
- In previous versions, the `devDeps` option defaulted to `true`.<br>This was practical, but often wrong: devDependencies are meant just for that: being used when developping. Therefore, the `devDeps` option now defaults to `false`, meaning Rollup will include them in your bundle.
200
204
- As anticipated since v4, the `builtinsPrefix` option now defaults to `'add'`.
201
205
- The deprecated `prefixedBuiltins` option has been removed. Use `builtinsPrefix` instead.
202
206
-`rollup-plugin-node-externals` no longer depends on the Find-Up package (while this is not a breaking change per se, it can be in some edge situations).
203
207
- The plugin now has a _peer dependency_ on `rollup ^2.60.0 || ^3.0.0`.
204
208
205
-
### Breaking changes in version 4
209
+
####Breaking changes in version 4
206
210
- In previous versions, the `deps` option defaulted to `false`.<br>This was practical, but often wrong: when bundling for distribution, you want your own dependencies to be installed by the package manager alongside your package, so they should not be bundled in the code. Therefore, the `deps` option now defaults to `true`.
207
211
- Now requires Node 14 (up from Node 12 for previous versions).
208
212
- Now has a _peer dependency_ on `rollup ^2.60.0`.
0 commit comments