rollup/rollup
### [`v2.0.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#202)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.0.1...v2.0.2)
_2020-03-07_
##### Bug Fixes
- Make sure the ESM import still works ([#3430](https://togithub.com/rollup/rollup/issues/3430))
##### Pull Requests
- [#3430](https://togithub.com/rollup/rollup/pull/3430): Fix conditional exports again ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.0.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#201)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.0.0...v2.0.1)
_2020-03-07_
##### Bug Fixes
- Reenable importing rollup in Node 13.0 - 13.7 ([#3428](https://togithub.com/rollup/rollup/issues/3428))
##### Pull Requests
- [#3428](https://togithub.com/rollup/rollup/pull/3428): Fix conditional exports in Node 13.0 - 13.7 ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.0.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#200)
[Compare Source](https://togithub.com/rollup/rollup/compare/v1.32.1...v2.0.0)
_2020-03-06_
##### Breaking Changes
- Rollup now requires at least Node 10 to run, or a sufficiently modern browser ([#3346](https://togithub.com/rollup/rollup/issues/3346))
- The file structure of Rollup's ESM builds has changed:
- The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js`
- The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js`
In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the `rollup/dist/es` subfolder instead of `rollup/dist` ([#3391](https://togithub.com/rollup/rollup/issues/3391))
- The "watch.chokidar" option no longer accepts a `boolean` value but only an object of parameters that is passed to the bundled Chokidar instance. Chokidar installations by the user will be ignored in favour of the bundled instance ([#3331](https://togithub.com/rollup/rollup/issues/3331))
- Modules that are completely tree-shaken will no longer be listed as part of any chunks in `generateBundle`
- The `experimentalOptimizeChunks` and `chunkGroupingSize` options have been removed
- [acorn](https://togithub.com/acornjs/acorn) plugins can only be used if they accept a passed-in acorn instance instead of importing it themselves. See [acornjs/acorn#870 (comment)](https://togithub.com/acornjs/acorn/pull/870#issuecomment-527339830) for what needs to be done to make plugins compatible that do not support this yet ([#3391](https://togithub.com/rollup/rollup/issues/3391))
- Emitted chunks now have the TypeScript type `UInt8Array` instead of `Buffer`. A `Buffer` can still be used, though ([#3395](https://togithub.com/rollup/rollup/issues/3395))
- The TypeScript types no longer use ESTree types for AST nodes but a very generic type that does not contain information specific to certain node types ([#3395](https://togithub.com/rollup/rollup/issues/3395))
- The signature of the `writeBundle` plugin hook has been changed to match `generateBundle`: The bundle object is now passed as second parameter instead of first and the first parameter is the output options ([#3361](https://togithub.com/rollup/rollup/issues/3361))
- The following plugin hooks have been removed:
- ongenerate: use `generateBundle` instead
- onwrite: use `writeBundle` instead
- transformBundle: use `renderChunk` instead
- transformChunk: use `renderChunk` instead
- You can no longer access `this.watcher` on the plugin context.
- The `transform` hook can no longer return `dependencies`.
- The `treeshake.pureExternalModules` option will now show a deprecation warning when used: use `treeshake.moduleSideEffects: 'no-external'` instead
- Using `import.meta.ROLLUP_ASSET_URL_<..>` and `import.meta.ROLLUP_CHUNK_URL_<..>` in code will now show warnings: use `import.meta.ROLLUP_FILE_URL_<..>` instead
- The `resolveAssetUrl` hook will now show a deprecation warning when used: use `resolveFileUrl` instead
- The following plugin context functions will show warnings when used:
- `this.emitAsset`: use `this.emitFile`
- `this.emitChunk`: use `this.emitFile`
- `this.getAssetFileName`: use `this.getFileName`
- `this.getChunkFileName`: use `this.getFileName`
- `this.isExternal`: use `this.resolve`
- `this.resolveId`: use `this.resolve`
- Directly adding properties to the bundle object in the `generateBundle` is deprecated will show a warning (removing properties is allowed, though): Use `this.emitFile`
- Accessing `chunk.isAsset` on the bundle is deprecated: Use `chunk.type === 'asset'` instead
- The error code for a missing `name` property when targeting UMD has been changed to `MISSING_NAME_OPTION_FOR_IIFE_EXPORT` to emphasize this is needed for the IIFE part of UMD ([#3393](https://togithub.com/rollup/rollup/issues/3393))
##### Features
- Rollup now bundles [Chokidar](https://togithub.com/paulmillr/chokidar) for a better watch experience ([#3331](https://togithub.com/rollup/rollup/issues/3331))
- Rollup now bundles [acorn](https://togithub.com/acornjs/acorn) again, removing its only external dependency ([#3391](https://togithub.com/rollup/rollup/issues/3391))
- Do not consider empty imports from side-effect-free modules for chunking and hoist side-effect imports if necessary ([#3369](https://togithub.com/rollup/rollup/issues/3369))
- Rollup can now be imported as an ES module in Node via `import {rollup} from 'rollup'`. Note that this relies on Node's experimental [conditional package exports](https://nodejs.org/dist/latest-v13.x/docs/api/esm.html#esm_conditional_exports) feature and is therefore itself experimental ([#3391](https://togithub.com/rollup/rollup/issues/3391))
- `systemjs` can be used as format alias for `system` ([#3381](https://togithub.com/rollup/rollup/issues/3381))
##### Bug Fixes
- Unknown output options now trigger a warning when using the JavaScript API ([#3352](https://togithub.com/rollup/rollup/issues/3352))
- Rollup will no longer introduce Node types into TypeScript projects that do not use them ([#3395](https://togithub.com/rollup/rollup/issues/3395))
- Generate correct sourcemaps when tree-shaking occurs in a multi-file bundle ([#3423](https://togithub.com/rollup/rollup/issues/3423))
##### Pull Requests
- [#3331](https://togithub.com/rollup/rollup/pull/3331): Bundle Chokidar ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3343](https://togithub.com/rollup/rollup/pull/3343): Remove experimentalOptimizeChunks ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3346](https://togithub.com/rollup/rollup/pull/3346): Update minimum required Node version to 10 ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3352](https://togithub.com/rollup/rollup/pull/3352): Remove active deprecations ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3361](https://togithub.com/rollup/rollup/pull/3361): Change writeBundle signature to match generateBundle ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3369](https://togithub.com/rollup/rollup/pull/3369): Avoid empty imports from side-effect-free chunks ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3381](https://togithub.com/rollup/rollup/pull/3381): Rename esm to es everywhere, add systemjs alias ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3391](https://togithub.com/rollup/rollup/pull/3391): Bundle acorn, allow importing Rollup as Node ES module, update dependencies ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3393](https://togithub.com/rollup/rollup/pull/3393): Better error code for name-less umd bundle ([@rail44](https://togithub.com/rail44))
- [#3395](https://togithub.com/rollup/rollup/pull/3395): Remove `@types` dependencies ([@lukastaegert](https://togithub.com/lukastaegert))
- [#3423](https://togithub.com/rollup/rollup/pull/3423): Update magic-string and fix sourcemaps ([@lukastaegert](https://togithub.com/lukastaegert))
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
1.32.1
->2.0.2
Release Notes
rollup/rollup
### [`v2.0.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#202) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.0.1...v2.0.2) _2020-03-07_ ##### Bug Fixes - Make sure the ESM import still works ([#3430](https://togithub.com/rollup/rollup/issues/3430)) ##### Pull Requests - [#3430](https://togithub.com/rollup/rollup/pull/3430): Fix conditional exports again ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.0.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#201) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.0.0...v2.0.1) _2020-03-07_ ##### Bug Fixes - Reenable importing rollup in Node 13.0 - 13.7 ([#3428](https://togithub.com/rollup/rollup/issues/3428)) ##### Pull Requests - [#3428](https://togithub.com/rollup/rollup/pull/3428): Fix conditional exports in Node 13.0 - 13.7 ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.0.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#200) [Compare Source](https://togithub.com/rollup/rollup/compare/v1.32.1...v2.0.0) _2020-03-06_ ##### Breaking Changes - Rollup now requires at least Node 10 to run, or a sufficiently modern browser ([#3346](https://togithub.com/rollup/rollup/issues/3346)) - The file structure of Rollup's ESM builds has changed: - The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js` - The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js` In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the `rollup/dist/es` subfolder instead of `rollup/dist` ([#3391](https://togithub.com/rollup/rollup/issues/3391)) - The "watch.chokidar" option no longer accepts a `boolean` value but only an object of parameters that is passed to the bundled Chokidar instance. Chokidar installations by the user will be ignored in favour of the bundled instance ([#3331](https://togithub.com/rollup/rollup/issues/3331)) - Modules that are completely tree-shaken will no longer be listed as part of any chunks in `generateBundle` - The `experimentalOptimizeChunks` and `chunkGroupingSize` options have been removed - [acorn](https://togithub.com/acornjs/acorn) plugins can only be used if they accept a passed-in acorn instance instead of importing it themselves. See [acornjs/acorn#870 (comment)](https://togithub.com/acornjs/acorn/pull/870#issuecomment-527339830) for what needs to be done to make plugins compatible that do not support this yet ([#3391](https://togithub.com/rollup/rollup/issues/3391)) - Emitted chunks now have the TypeScript type `UInt8Array` instead of `Buffer`. A `Buffer` can still be used, though ([#3395](https://togithub.com/rollup/rollup/issues/3395)) - The TypeScript types no longer use ESTree types for AST nodes but a very generic type that does not contain information specific to certain node types ([#3395](https://togithub.com/rollup/rollup/issues/3395)) - The signature of the `writeBundle` plugin hook has been changed to match `generateBundle`: The bundle object is now passed as second parameter instead of first and the first parameter is the output options ([#3361](https://togithub.com/rollup/rollup/issues/3361)) - The following plugin hooks have been removed: - ongenerate: use `generateBundle` instead - onwrite: use `writeBundle` instead - transformBundle: use `renderChunk` instead - transformChunk: use `renderChunk` instead - You can no longer access `this.watcher` on the plugin context. - The `transform` hook can no longer return `dependencies`. - The `treeshake.pureExternalModules` option will now show a deprecation warning when used: use `treeshake.moduleSideEffects: 'no-external'` instead - Using `import.meta.ROLLUP_ASSET_URL_<..>` and `import.meta.ROLLUP_CHUNK_URL_<..>` in code will now show warnings: use `import.meta.ROLLUP_FILE_URL_<..>` instead - The `resolveAssetUrl` hook will now show a deprecation warning when used: use `resolveFileUrl` instead - The following plugin context functions will show warnings when used: - `this.emitAsset`: use `this.emitFile` - `this.emitChunk`: use `this.emitFile` - `this.getAssetFileName`: use `this.getFileName` - `this.getChunkFileName`: use `this.getFileName` - `this.isExternal`: use `this.resolve` - `this.resolveId`: use `this.resolve` - Directly adding properties to the bundle object in the `generateBundle` is deprecated will show a warning (removing properties is allowed, though): Use `this.emitFile` - Accessing `chunk.isAsset` on the bundle is deprecated: Use `chunk.type === 'asset'` instead - The error code for a missing `name` property when targeting UMD has been changed to `MISSING_NAME_OPTION_FOR_IIFE_EXPORT` to emphasize this is needed for the IIFE part of UMD ([#3393](https://togithub.com/rollup/rollup/issues/3393)) ##### Features - Rollup now bundles [Chokidar](https://togithub.com/paulmillr/chokidar) for a better watch experience ([#3331](https://togithub.com/rollup/rollup/issues/3331)) - Rollup now bundles [acorn](https://togithub.com/acornjs/acorn) again, removing its only external dependency ([#3391](https://togithub.com/rollup/rollup/issues/3391)) - Do not consider empty imports from side-effect-free modules for chunking and hoist side-effect imports if necessary ([#3369](https://togithub.com/rollup/rollup/issues/3369)) - Rollup can now be imported as an ES module in Node via `import {rollup} from 'rollup'`. Note that this relies on Node's experimental [conditional package exports](https://nodejs.org/dist/latest-v13.x/docs/api/esm.html#esm_conditional_exports) feature and is therefore itself experimental ([#3391](https://togithub.com/rollup/rollup/issues/3391)) - `systemjs` can be used as format alias for `system` ([#3381](https://togithub.com/rollup/rollup/issues/3381)) ##### Bug Fixes - Unknown output options now trigger a warning when using the JavaScript API ([#3352](https://togithub.com/rollup/rollup/issues/3352)) - Rollup will no longer introduce Node types into TypeScript projects that do not use them ([#3395](https://togithub.com/rollup/rollup/issues/3395)) - Generate correct sourcemaps when tree-shaking occurs in a multi-file bundle ([#3423](https://togithub.com/rollup/rollup/issues/3423)) ##### Pull Requests - [#3331](https://togithub.com/rollup/rollup/pull/3331): Bundle Chokidar ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3343](https://togithub.com/rollup/rollup/pull/3343): Remove experimentalOptimizeChunks ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3346](https://togithub.com/rollup/rollup/pull/3346): Update minimum required Node version to 10 ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3352](https://togithub.com/rollup/rollup/pull/3352): Remove active deprecations ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3361](https://togithub.com/rollup/rollup/pull/3361): Change writeBundle signature to match generateBundle ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3369](https://togithub.com/rollup/rollup/pull/3369): Avoid empty imports from side-effect-free chunks ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3381](https://togithub.com/rollup/rollup/pull/3381): Rename esm to es everywhere, add systemjs alias ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3391](https://togithub.com/rollup/rollup/pull/3391): Bundle acorn, allow importing Rollup as Node ES module, update dependencies ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3393](https://togithub.com/rollup/rollup/pull/3393): Better error code for name-less umd bundle ([@rail44](https://togithub.com/rail44)) - [#3395](https://togithub.com/rollup/rollup/pull/3395): Remove `@types` dependencies ([@lukastaegert](https://togithub.com/lukastaegert)) - [#3423](https://togithub.com/rollup/rollup/pull/3423): Update magic-string and fix sourcemaps ([@lukastaegert](https://togithub.com/lukastaegert))Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.