rollup/rollup
### [`v2.53.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2532)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.53.1...v2.53.2)
*2021-07-15*
##### Bug Fixes
- Identify additional TDZ situations in functions that are run more than once ([#4177](https://togithub.com/rollup/rollup/issues/4177))
- Fix a scoping issue when a variable inside a catch scope matches the scope parameter's name ([#4178](https://togithub.com/rollup/rollup/issues/4178))
##### Pull Requests
- [#4177](https://togithub.com/rollup/rollup/pull/4177): Fix additional let/var init bugs ([@kzc](https://togithub.com/kzc))
- [#4178](https://togithub.com/rollup/rollup/pull/4178): Correctly create outside variable when shadowed by catch parameter ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.53.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2531)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.53.0...v2.53.1)
*2021-07-11*
##### Bug Fixes
- Do not omit namespace reexports when `treeshake` is `false` ([#4175](https://togithub.com/rollup/rollup/issues/4175))
##### Pull Requests
- [#4175](https://togithub.com/rollup/rollup/pull/4175): Generate namespace objects when not tree-shaking ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.53.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2530)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.8...v2.53.0)
*2021-07-09*
##### Features
- Add `maxParallelFileReads` option to limit read operations with a default of 20 ([#4170](https://togithub.com/rollup/rollup/issues/4170))
##### Pull Requests
- [#4170](https://togithub.com/rollup/rollup/pull/4170): Limit parallel file reads to prevent "EMFILE: too many open files" error ([@schummar](https://togithub.com/schummar))
### [`v2.52.8`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2528)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.7...v2.52.8)
*2021-07-07*
##### Bug Fixes
- Automatically handle many use `var` before declaration and TDZ access scenarios correctly without the need for `treeshake.correctVarValueBeforeDeclaration` ([#4148](https://togithub.com/rollup/rollup/issues/4148))
##### Pull Requests
- [#4148](https://togithub.com/rollup/rollup/pull/4148): Fix var/const/let variable use before declaration ([@kzc](https://togithub.com/kzc) and [@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.7`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2527)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.6...v2.52.7)
*2021-07-02*
##### Bug Fixes
- Fix an issue where reassignments where not tracked through async function returns ([#4163](https://togithub.com/rollup/rollup/issues/4163))
##### Pull Requests
- [#4163](https://togithub.com/rollup/rollup/pull/4163): Deoptimize return values of async functions ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.6`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2526)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.5...v2.52.6)
*2021-07-01*
##### Bug Fixes
- Fix an issue where reassignments where not tracked through an await expression ([#4162](https://togithub.com/rollup/rollup/issues/4162))
##### Pull Requests
- [#4162](https://togithub.com/rollup/rollup/pull/4162): doptimize awaited expressions ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.5`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2525)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.4...v2.52.5)
*2021-07-01*
##### Bug Fixes
- Properly display parser errors not tied to a code location ([#4160](https://togithub.com/rollup/rollup/issues/4160))
##### Pull Requests
- [#4160](https://togithub.com/rollup/rollup/pull/4160): fix: max stack call error is caught on locate ([@semoal](https://togithub.com/semoal))
### [`v2.52.4`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2524)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.3...v2.52.4)
*2021-06-30*
##### Bug Fixes
- Fix an error when external namespaces are reexported across several files ([#4159](https://togithub.com/rollup/rollup/issues/4159))
##### Pull Requests
- [#4159](https://togithub.com/rollup/rollup/pull/4159): Properly handle double reexports from external namespaces ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.3`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2523)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.2...v2.52.3)
*2021-06-25*
##### Bug Fixes
- Fix an issue where code was wrongly removed when using vars in nested scopes ([#4149](https://togithub.com/rollup/rollup/issues/4149))
##### Pull Requests
- [#4149](https://togithub.com/rollup/rollup/pull/4149): Make sure the initializer of hoisted variables is deoptimized ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2522)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.1...v2.52.2)
*2021-06-21*
##### Bug Fixes
- Support falsy plugins in types ([#4144](https://togithub.com/rollup/rollup/issues/4144))
- Do not require return value in renderChunkHook type ([#4144](https://togithub.com/rollup/rollup/issues/4144))
##### Pull Requests
- [#4144](https://togithub.com/rollup/rollup/pull/4144): Use TypeScript config and improve some types ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2521)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.0...v2.52.1)
*2021-06-17*
##### Bug Fixes
- Fix a memory leak in watch mode ([#4142](https://togithub.com/rollup/rollup/issues/4142))
##### Pull Requests
- [#4142](https://togithub.com/rollup/rollup/pull/4142): Make array and object prototype singletons immutable for now ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.52.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2520)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.51.2...v2.52.0)
*2021-06-16*
##### Features
- Add `--configPlugin` CLI option to apply plugins to the config file for e.g. TypeScript configs ([#3835](https://togithub.com/rollup/rollup/issues/3835))
- Add "safest" and "smallest" presets to tree-shaking options for easier configuration ([#4131](https://togithub.com/rollup/rollup/issues/4131))
- Add `treeshake.correctVarValueBeforeDeclaration` option to deoptimize `var` declarations ([#4139](https://togithub.com/rollup/rollup/issues/4139))
##### Pull Requests
- [#3835](https://togithub.com/rollup/rollup/pull/3835): Add typescript config support ([@TheRealSyler](https://togithub.com/TheRealSyler))
- [#4131](https://togithub.com/rollup/rollup/pull/4131): Add presets to the tree-shaking options ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4139](https://togithub.com/rollup/rollup/pull/4139): Add option to deoptimize var declarations for tree-shaking ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4141](https://togithub.com/rollup/rollup/pull/4141): Update dependencies ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.51.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2512)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.51.1...v2.51.2)
*2021-06-11*
##### Bug Fixes
- Include modules imported from no-treeshake modules even if they would be empty ([#4138](https://togithub.com/rollup/rollup/issues/4138))
##### Pull Requests
- [#4138](https://togithub.com/rollup/rollup/pull/4138): Include all dependencies from modules with no-treeshake ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.51.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2511)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.51.0...v2.51.1)
*2021-06-08*
##### Bug Fixes
- Fix error when using `defineConfig` ([#4134](https://togithub.com/rollup/rollup/issues/4134))
##### Pull Requests
- [#4134](https://togithub.com/rollup/rollup/pull/4134): export `rollup.defineConfig` at runtime ([@mshrtsr](https://togithub.com/mshrtsr))
### [`v2.51.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2510)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.6...v2.51.0)
*2021-06-06*
##### Features
- Add a helper for IntelliSense support in config files ([#4127](https://togithub.com/rollup/rollup/issues/4127))
##### Bug Fixes
- Improve performance when generating source maps ([#4122](https://togithub.com/rollup/rollup/issues/4122))
##### Pull Requests
- [#4122](https://togithub.com/rollup/rollup/pull/4122): User Map to optimize performance ([@izevo](https://togithub.com/izevo))
- [#4127](https://togithub.com/rollup/rollup/pull/4127): Export defineConfig defines the auxiliary function of the configuration ([@rxliuli](https://togithub.com/rxliuli))
### [`v2.50.6`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2506)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.5...v2.50.6)
*2021-06-03*
##### Bug Fixes
- Do not consider the object spread operator as side effect when `propertyReadSideEffects` are false ([#4119](https://togithub.com/rollup/rollup/issues/4119))
- Detect side effects when returning thenables from async arrow functions ([#4120](https://togithub.com/rollup/rollup/issues/4120))
##### Pull Requests
- [#4119](https://togithub.com/rollup/rollup/pull/4119): Respect propertyReadSideEffects in spread elements ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4120](https://togithub.com/rollup/rollup/pull/4120): Detect async arrow thenable side effects ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.50.5`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2505)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.4...v2.50.5)
*2021-05-30*
##### Bug Fixes
- Detect side effects when accessing thenables ([#4115](https://togithub.com/rollup/rollup/issues/4115))
##### Pull Requests
- [#4114](https://togithub.com/rollup/rollup/pull/4114): use `colorette` instead of `turbocolor` ([@ryuever](https://togithub.com/ryuever))
- [#4115](https://togithub.com/rollup/rollup/pull/4115): Tracks side effects of thenables ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.50.4`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2504)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.3...v2.50.4)
*2021-05-29*
##### Bug Fixes
- Fix a situation where tree-shaking would stop including nodes prematurely ([#4111](https://togithub.com/rollup/rollup/issues/4111))
- Track mutations and accessor side effects when using `__proto__` in an object literal ([#4112](https://togithub.com/rollup/rollup/issues/4112))
- Check for getter effects when spreading an object ([#4113](https://togithub.com/rollup/rollup/issues/4113))
##### Pull Requests
- [#4111](https://togithub.com/rollup/rollup/pull/4111): Always request a new tree-shaking pass when deoptimizations of a node are first included ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4112](https://togithub.com/rollup/rollup/pull/4112): Actually set the prototype when using a **proto** property ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4113](https://togithub.com/rollup/rollup/pull/4113): Track access side effects when using object spread operator ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.50.3`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2503)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.2...v2.50.3)
*2021-05-28*
##### Bug Fixes
- Wrap parentheses around leading elements in simplified sequence expressions if this would otherwise lead to invalid code ([#4110](https://togithub.com/rollup/rollup/issues/4110))
- Do not associate block soped variables in catch clauses with the clause parameter ([#4108](https://togithub.com/rollup/rollup/issues/4108))
- Do not associate hoisted variables in catch clauses with outside variables if they match the parameter ([#4108](https://togithub.com/rollup/rollup/issues/4108))
- Use correct "this" context for tagged template literal member expressions in simplified sequences ([#4110](https://togithub.com/rollup/rollup/issues/4110))
##### Pull Requests
- [#4108](https://togithub.com/rollup/rollup/pull/4108): Correctly handle catch declarations ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4110](https://togithub.com/rollup/rollup/pull/4110): Invalid sequence expression simplification ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.50.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2502)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.1...v2.50.2)
*2021-05-27*
##### Bug Fixes
- Avoid unnecessary side effects when using methods like `.filter` and `.map` ([#4103](https://togithub.com/rollup/rollup/issues/4103))
- Avoid crash when a module with moduleSideEffects no-treeshake imports a tree-shaken module ([#4104](https://togithub.com/rollup/rollup/issues/4104))
##### Pull Requests
- [#4103](https://togithub.com/rollup/rollup/pull/4103): Do not track side-effect-free array methods as side effects ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4104](https://togithub.com/rollup/rollup/pull/4104): Fix crash when using inlineDynamicImports with no-treeshake ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.50.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2501)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.0...v2.50.1)
*2021-05-26*
##### Bug Fixes
- Do not associate pure annotations in simplified expressions with wrong elements ([#4095](https://togithub.com/rollup/rollup/issues/4095))
- Prevent invalid code when simplified conditionals start with an IIFE function expression ([#4099](https://togithub.com/rollup/rollup/issues/4099))
##### Pull Requests
- [#4095](https://togithub.com/rollup/rollup/pull/4095): Correctly associate pure annotations and remove invalid ones ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4099](https://togithub.com/rollup/rollup/pull/4099): Wrap leading function expression iifes in conditionals ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.50.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2500)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.49.0...v2.50.0)
*2021-05-25*
##### Features
- Only include last elements of comma expressions if they are used or have side effects ([#4087](https://togithub.com/rollup/rollup/issues/4087))
##### Bug Fixes
- Prevent a crash that could occur when calling object methods ([#4091](https://togithub.com/rollup/rollup/issues/4091))
##### Pull Requests
- [#4085](https://togithub.com/rollup/rollup/pull/4085): Switch to ESLint ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4087](https://togithub.com/rollup/rollup/pull/4087): Drop unused last sequence element ([@lukastaegert](https://togithub.com/lukastaegert))
- [#4091](https://togithub.com/rollup/rollup/pull/4091): Prevent crash for recursive "this" deoptimization ([@lukastaegert](https://togithub.com/lukastaegert))
### [`v2.49.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2490)
[Compare Source](https://togithub.com/rollup/rollup/compare/v2.48.0...v2.49.0)
*2021-05-23*
##### Features
- Detect side-effect-free static class methods and properties ([#4018](https://togithub.com/rollup/rollup/issues/4018))
- Detect side-effect-free array elements ([#4018](https://togithub.com/rollup/rollup/issues/4018))
- Do not apply deoptimizations from dead code ([#4018](https://togithub.com/rollup/rollup/issues/4018))
##### Bug Fixes
- Handle side effect detection for getters and setters added in untracked code ([#4018](https://togithub.com/rollup/rollup/issues/4018))
- Track "this" mutations for methods, getters and setters ([#4018](https://togithub.com/rollup/rollup/issues/4018))
##### Pull Requests
- [#4018](https://togithub.com/rollup/rollup/pull/4018): Class method effects ([@marijnh](https://togithub.com/marijnh) and [@lukastaegert](https://togithub.com/lukastaegert))
Configuration
📅 Schedule: "after 10pm every weekday,every weekend,before 5am every weekday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 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:
2.48.0
->2.53.2
Release Notes
rollup/rollup
### [`v2.53.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2532) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.53.1...v2.53.2) *2021-07-15* ##### Bug Fixes - Identify additional TDZ situations in functions that are run more than once ([#4177](https://togithub.com/rollup/rollup/issues/4177)) - Fix a scoping issue when a variable inside a catch scope matches the scope parameter's name ([#4178](https://togithub.com/rollup/rollup/issues/4178)) ##### Pull Requests - [#4177](https://togithub.com/rollup/rollup/pull/4177): Fix additional let/var init bugs ([@kzc](https://togithub.com/kzc)) - [#4178](https://togithub.com/rollup/rollup/pull/4178): Correctly create outside variable when shadowed by catch parameter ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.53.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2531) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.53.0...v2.53.1) *2021-07-11* ##### Bug Fixes - Do not omit namespace reexports when `treeshake` is `false` ([#4175](https://togithub.com/rollup/rollup/issues/4175)) ##### Pull Requests - [#4175](https://togithub.com/rollup/rollup/pull/4175): Generate namespace objects when not tree-shaking ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.53.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2530) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.8...v2.53.0) *2021-07-09* ##### Features - Add `maxParallelFileReads` option to limit read operations with a default of 20 ([#4170](https://togithub.com/rollup/rollup/issues/4170)) ##### Pull Requests - [#4170](https://togithub.com/rollup/rollup/pull/4170): Limit parallel file reads to prevent "EMFILE: too many open files" error ([@schummar](https://togithub.com/schummar)) ### [`v2.52.8`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2528) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.7...v2.52.8) *2021-07-07* ##### Bug Fixes - Automatically handle many use `var` before declaration and TDZ access scenarios correctly without the need for `treeshake.correctVarValueBeforeDeclaration` ([#4148](https://togithub.com/rollup/rollup/issues/4148)) ##### Pull Requests - [#4148](https://togithub.com/rollup/rollup/pull/4148): Fix var/const/let variable use before declaration ([@kzc](https://togithub.com/kzc) and [@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.7`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2527) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.6...v2.52.7) *2021-07-02* ##### Bug Fixes - Fix an issue where reassignments where not tracked through async function returns ([#4163](https://togithub.com/rollup/rollup/issues/4163)) ##### Pull Requests - [#4163](https://togithub.com/rollup/rollup/pull/4163): Deoptimize return values of async functions ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.6`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2526) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.5...v2.52.6) *2021-07-01* ##### Bug Fixes - Fix an issue where reassignments where not tracked through an await expression ([#4162](https://togithub.com/rollup/rollup/issues/4162)) ##### Pull Requests - [#4162](https://togithub.com/rollup/rollup/pull/4162): doptimize awaited expressions ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.5`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2525) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.4...v2.52.5) *2021-07-01* ##### Bug Fixes - Properly display parser errors not tied to a code location ([#4160](https://togithub.com/rollup/rollup/issues/4160)) ##### Pull Requests - [#4160](https://togithub.com/rollup/rollup/pull/4160): fix: max stack call error is caught on locate ([@semoal](https://togithub.com/semoal)) ### [`v2.52.4`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2524) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.3...v2.52.4) *2021-06-30* ##### Bug Fixes - Fix an error when external namespaces are reexported across several files ([#4159](https://togithub.com/rollup/rollup/issues/4159)) ##### Pull Requests - [#4159](https://togithub.com/rollup/rollup/pull/4159): Properly handle double reexports from external namespaces ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.3`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2523) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.2...v2.52.3) *2021-06-25* ##### Bug Fixes - Fix an issue where code was wrongly removed when using vars in nested scopes ([#4149](https://togithub.com/rollup/rollup/issues/4149)) ##### Pull Requests - [#4149](https://togithub.com/rollup/rollup/pull/4149): Make sure the initializer of hoisted variables is deoptimized ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2522) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.1...v2.52.2) *2021-06-21* ##### Bug Fixes - Support falsy plugins in types ([#4144](https://togithub.com/rollup/rollup/issues/4144)) - Do not require return value in renderChunkHook type ([#4144](https://togithub.com/rollup/rollup/issues/4144)) ##### Pull Requests - [#4144](https://togithub.com/rollup/rollup/pull/4144): Use TypeScript config and improve some types ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2521) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.52.0...v2.52.1) *2021-06-17* ##### Bug Fixes - Fix a memory leak in watch mode ([#4142](https://togithub.com/rollup/rollup/issues/4142)) ##### Pull Requests - [#4142](https://togithub.com/rollup/rollup/pull/4142): Make array and object prototype singletons immutable for now ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.52.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2520) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.51.2...v2.52.0) *2021-06-16* ##### Features - Add `--configPlugin` CLI option to apply plugins to the config file for e.g. TypeScript configs ([#3835](https://togithub.com/rollup/rollup/issues/3835)) - Add "safest" and "smallest" presets to tree-shaking options for easier configuration ([#4131](https://togithub.com/rollup/rollup/issues/4131)) - Add `treeshake.correctVarValueBeforeDeclaration` option to deoptimize `var` declarations ([#4139](https://togithub.com/rollup/rollup/issues/4139)) ##### Pull Requests - [#3835](https://togithub.com/rollup/rollup/pull/3835): Add typescript config support ([@TheRealSyler](https://togithub.com/TheRealSyler)) - [#4131](https://togithub.com/rollup/rollup/pull/4131): Add presets to the tree-shaking options ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4139](https://togithub.com/rollup/rollup/pull/4139): Add option to deoptimize var declarations for tree-shaking ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4141](https://togithub.com/rollup/rollup/pull/4141): Update dependencies ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.51.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2512) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.51.1...v2.51.2) *2021-06-11* ##### Bug Fixes - Include modules imported from no-treeshake modules even if they would be empty ([#4138](https://togithub.com/rollup/rollup/issues/4138)) ##### Pull Requests - [#4138](https://togithub.com/rollup/rollup/pull/4138): Include all dependencies from modules with no-treeshake ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.51.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2511) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.51.0...v2.51.1) *2021-06-08* ##### Bug Fixes - Fix error when using `defineConfig` ([#4134](https://togithub.com/rollup/rollup/issues/4134)) ##### Pull Requests - [#4134](https://togithub.com/rollup/rollup/pull/4134): export `rollup.defineConfig` at runtime ([@mshrtsr](https://togithub.com/mshrtsr)) ### [`v2.51.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2510) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.6...v2.51.0) *2021-06-06* ##### Features - Add a helper for IntelliSense support in config files ([#4127](https://togithub.com/rollup/rollup/issues/4127)) ##### Bug Fixes - Improve performance when generating source maps ([#4122](https://togithub.com/rollup/rollup/issues/4122)) ##### Pull Requests - [#4122](https://togithub.com/rollup/rollup/pull/4122): User Map to optimize performance ([@izevo](https://togithub.com/izevo)) - [#4127](https://togithub.com/rollup/rollup/pull/4127): Export defineConfig defines the auxiliary function of the configuration ([@rxliuli](https://togithub.com/rxliuli)) ### [`v2.50.6`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2506) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.5...v2.50.6) *2021-06-03* ##### Bug Fixes - Do not consider the object spread operator as side effect when `propertyReadSideEffects` are false ([#4119](https://togithub.com/rollup/rollup/issues/4119)) - Detect side effects when returning thenables from async arrow functions ([#4120](https://togithub.com/rollup/rollup/issues/4120)) ##### Pull Requests - [#4119](https://togithub.com/rollup/rollup/pull/4119): Respect propertyReadSideEffects in spread elements ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4120](https://togithub.com/rollup/rollup/pull/4120): Detect async arrow thenable side effects ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.50.5`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2505) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.4...v2.50.5) *2021-05-30* ##### Bug Fixes - Detect side effects when accessing thenables ([#4115](https://togithub.com/rollup/rollup/issues/4115)) ##### Pull Requests - [#4114](https://togithub.com/rollup/rollup/pull/4114): use `colorette` instead of `turbocolor` ([@ryuever](https://togithub.com/ryuever)) - [#4115](https://togithub.com/rollup/rollup/pull/4115): Tracks side effects of thenables ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.50.4`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2504) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.3...v2.50.4) *2021-05-29* ##### Bug Fixes - Fix a situation where tree-shaking would stop including nodes prematurely ([#4111](https://togithub.com/rollup/rollup/issues/4111)) - Track mutations and accessor side effects when using `__proto__` in an object literal ([#4112](https://togithub.com/rollup/rollup/issues/4112)) - Check for getter effects when spreading an object ([#4113](https://togithub.com/rollup/rollup/issues/4113)) ##### Pull Requests - [#4111](https://togithub.com/rollup/rollup/pull/4111): Always request a new tree-shaking pass when deoptimizations of a node are first included ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4112](https://togithub.com/rollup/rollup/pull/4112): Actually set the prototype when using a **proto** property ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4113](https://togithub.com/rollup/rollup/pull/4113): Track access side effects when using object spread operator ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.50.3`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2503) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.2...v2.50.3) *2021-05-28* ##### Bug Fixes - Wrap parentheses around leading elements in simplified sequence expressions if this would otherwise lead to invalid code ([#4110](https://togithub.com/rollup/rollup/issues/4110)) - Do not associate block soped variables in catch clauses with the clause parameter ([#4108](https://togithub.com/rollup/rollup/issues/4108)) - Do not associate hoisted variables in catch clauses with outside variables if they match the parameter ([#4108](https://togithub.com/rollup/rollup/issues/4108)) - Use correct "this" context for tagged template literal member expressions in simplified sequences ([#4110](https://togithub.com/rollup/rollup/issues/4110)) ##### Pull Requests - [#4108](https://togithub.com/rollup/rollup/pull/4108): Correctly handle catch declarations ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4110](https://togithub.com/rollup/rollup/pull/4110): Invalid sequence expression simplification ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.50.2`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2502) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.1...v2.50.2) *2021-05-27* ##### Bug Fixes - Avoid unnecessary side effects when using methods like `.filter` and `.map` ([#4103](https://togithub.com/rollup/rollup/issues/4103)) - Avoid crash when a module with moduleSideEffects no-treeshake imports a tree-shaken module ([#4104](https://togithub.com/rollup/rollup/issues/4104)) ##### Pull Requests - [#4103](https://togithub.com/rollup/rollup/pull/4103): Do not track side-effect-free array methods as side effects ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4104](https://togithub.com/rollup/rollup/pull/4104): Fix crash when using inlineDynamicImports with no-treeshake ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.50.1`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2501) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.50.0...v2.50.1) *2021-05-26* ##### Bug Fixes - Do not associate pure annotations in simplified expressions with wrong elements ([#4095](https://togithub.com/rollup/rollup/issues/4095)) - Prevent invalid code when simplified conditionals start with an IIFE function expression ([#4099](https://togithub.com/rollup/rollup/issues/4099)) ##### Pull Requests - [#4095](https://togithub.com/rollup/rollup/pull/4095): Correctly associate pure annotations and remove invalid ones ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4099](https://togithub.com/rollup/rollup/pull/4099): Wrap leading function expression iifes in conditionals ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.50.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2500) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.49.0...v2.50.0) *2021-05-25* ##### Features - Only include last elements of comma expressions if they are used or have side effects ([#4087](https://togithub.com/rollup/rollup/issues/4087)) ##### Bug Fixes - Prevent a crash that could occur when calling object methods ([#4091](https://togithub.com/rollup/rollup/issues/4091)) ##### Pull Requests - [#4085](https://togithub.com/rollup/rollup/pull/4085): Switch to ESLint ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4087](https://togithub.com/rollup/rollup/pull/4087): Drop unused last sequence element ([@lukastaegert](https://togithub.com/lukastaegert)) - [#4091](https://togithub.com/rollup/rollup/pull/4091): Prevent crash for recursive "this" deoptimization ([@lukastaegert](https://togithub.com/lukastaegert)) ### [`v2.49.0`](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#2490) [Compare Source](https://togithub.com/rollup/rollup/compare/v2.48.0...v2.49.0) *2021-05-23* ##### Features - Detect side-effect-free static class methods and properties ([#4018](https://togithub.com/rollup/rollup/issues/4018)) - Detect side-effect-free array elements ([#4018](https://togithub.com/rollup/rollup/issues/4018)) - Do not apply deoptimizations from dead code ([#4018](https://togithub.com/rollup/rollup/issues/4018)) ##### Bug Fixes - Handle side effect detection for getters and setters added in untracked code ([#4018](https://togithub.com/rollup/rollup/issues/4018)) - Track "this" mutations for methods, getters and setters ([#4018](https://togithub.com/rollup/rollup/issues/4018)) ##### Pull Requests - [#4018](https://togithub.com/rollup/rollup/pull/4018): Class method effects ([@marijnh](https://togithub.com/marijnh) and [@lukastaegert](https://togithub.com/lukastaegert))Configuration
📅 Schedule: "after 10pm every weekday,every weekend,before 5am every weekday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.