UNPKG

176 kBMarkdownView Raw
1# rollup changelog
2
3## 2.21.0
4*2020-07-07*
5
6### Features
7* Allow plugins to disable tree-shaking for individual modules to ensure even empty modules are associated with chunks (#3663)
8
9### Pull Requests
10* [#3663](https://github.com/rollup/rollup/pull/3663): Disable treeshaking per module (@lukastaegert)
11
12## 2.20.0
13*2020-07-06*
14
15### Features
16* Support using a function to generate different chunk and asset naming patterns per chunk or asset (#3658)
17* Add `referencedFiles` property to the chunk info in generateBundle to list referenced assets (#3661)
18
19### Pull Requests
20* [#3658](https://github.com/rollup/rollup/pull/3658): Add ability to use a function that returns a pattern string in all places where you could use a pattern string before (@frank-dspeed)
21* [#3661](https://github.com/rollup/rollup/pull/3661): Add referenced files to bundle (@lukastaegert)
22
23## 2.19.0
24*2020-07-05*
25
26### Features
27* Allow plugins to return a Promise in the options hook (#3660)
28
29### Pull Requests
30* [#3660](https://github.com/rollup/rollup/pull/3660): Make options hooks async (@TomerAberbach)
31
32## 2.18.2
33*2020-07-02*
34
35### Bug Fixes
36* Do not remove spread element args when the corresponding positional parameter is unused (#3652)
37
38### Pull Requests
39* [#3652](https://github.com/rollup/rollup/pull/3652): Do not tree-shake arguments that contain a spread element (@lukastaegert)
40
41## 2.18.1
42*2020-06-26*
43
44### Bug Fixes
45* Make sure synthetic exports are present when a module is imported dynamically (#3648)
46* Strip the `rollup-plugin-` prefix off the plugin name when looking for the plugin export in a CLI plugin without a default export (#3647)
47* Convert plugin names with dashes to camel case when looking for the plugin export in a CLI plugin without a default export (#3647)
48
49### Pull Requests
50* [#3647](https://github.com/rollup/rollup/pull/3647): Strip rollup-plugin prefix to find named plugin exports, throw when export cannot be found (@lukastaegert)
51* [#3648](https://github.com/rollup/rollup/pull/3648): Always create a dynamic namespace object when a module with synthetic named exports is imported dynamically (@lukastaegert)
52
53## 2.18.0
54*2020-06-22*
55
56### Features
57* `inlineDynamicImports`, `manualChunks` and `preserveModules` can now be used as output options (#3645)
58* Use sourcemaps for certain warnings that reference source code locations (#3645)
59
60### Bug Fixes
61* `this.getFileName` will now always return the correct file name for chunks when multiple outputs are created (#3645)
62
63### Pull Requests
64* [#3645](https://github.com/rollup/rollup/pull/3645): Per output chunking (@lukastaegert)
65
66## 2.17.1
67*2020-06-19*
68
69### Bug Fixes
70* Properly resolve accessing properties of namespace members again (#3643)
71
72### Pull Requests
73* [#3643](https://github.com/rollup/rollup/pull/3643): Fix accessing nested properties of namespaces (@lukastaegert)
74
75## 2.17.0
76*2020-06-17*
77
78### Features
79* When importing Rollup via package.exports, always fall back to the browser ESM build for non-Node environments (#3634)
80* Create more efficient code when handling namespace mutations (#3637)
81
82### Bug Fixes
83* Fix a severe performance regression when the same module is imported by a lot of modules (#3641)
84* Properly escape special characters in imports (#3638)
85
86### Pull Requests
87* [#3634](https://github.com/rollup/rollup/pull/3634): Set browser build in exports (@guybedford)
88* [#3637](https://github.com/rollup/rollup/pull/3637): Do not include the whole namespace when illegally mutating a namespace (@lukastaegert)
89* [#3638](https://github.com/rollup/rollup/pull/3638): Support backslash escaping, retain exact newline escaping (@guybedford)
90* [#3641](https://github.com/rollup/rollup/pull/3641): Fix performance regression when a file is imported by many importers (@lukastaegert)
91
92## 2.16.1
93*2020-06-13*
94
95### Bug Fixes
96* Do not produce invalid code when an external or chunk id contain quotes or line-breaks (#3632)
97* Do not fail but emit a warning when mutating a namespace object (#3633)
98
99### Pull Requests
100* [#3632](https://github.com/rollup/rollup/pull/3632): Handle single quote escaping in ids (@guybedford)
101* [#3633](https://github.com/rollup/rollup/pull/3633): Turn namespace assignment error into a warning (@guybedford)
102
103## 2.16.0
104*2020-06-12*
105
106### Features
107* Add support for numeric separators (#3626)
108* Switch to finalized ESTree optional chaining AST (#3628)
109
110### Pull Requests
111* [#3626](https://github.com/rollup/rollup/pull/3626): Support numeric separator (@TrySound)
112* [#3628](https://github.com/rollup/rollup/pull/3628): Acorn 7.3.0 upgrade (@guybedford)
113* [#3631](https://github.com/rollup/rollup/pull/3631): Improve discoverability of `manualChunks` for code splitting (@zlamma)
114
115## 2.15.0
116*2020-06-08*
117
118### Features
119* Allow to skip watching some configs via `watch: false` (#3620)
120* Provide the resolved sourcemap path to `sourcemapPathTransform` (#3617)
121
122### Pull Requests
123* [#3617](https://github.com/rollup/rollup/pull/3617): Update sourcemapPathTransform to also take the path to the sourcemap file as a second argument (@dgoldstein0)
124* [#3620](https://github.com/rollup/rollup/pull/3620): Rollup watch only one config in exported array (@luwol03)
125
126## 2.14.0
127*2020-06-07*
128
129### Features
130* Make `this.meta.watchMode` available for plugins to detect watch mode (#3616)
131
132### Bug Fixes
133* Handle exporting the same binding with different names in SystemJS (#3575)
134
135### Pull Requests
136* [#3575](https://github.com/rollup/rollup/pull/3575): Handle some cases of duplicate export bindings (@joeljeske)
137* [#3616](https://github.com/rollup/rollup/pull/3616): Make watch mode available in plugins (@lukastaegert)
138
139## 2.13.1
140*2020-06-04*
141
142### Bug Fixes
143* Prevent conflicts in SystemJS when `module` is used as a top-level variable (#3614)
144
145### Pull Requests
146* [#3614](https://github.com/rollup/rollup/pull/3614): Handle system reserved identifier dedupes (@guybedford)
147
148## 2.13.0
149*2020-06-03*
150
151### Features
152* Allow to specify that an emitted chunk is only loaded after a given module has loaded to improve chunking (#3606)
153
154### Pull Requests
155* [#3606](https://github.com/rollup/rollup/pull/3606): Enable specifying implicit dependencies when emitting chunks (@lukastaegert)
156
157## 2.12.1
158*2020-06-02*
159
160### Bug Fixes
161* Render valid imports when chunk names correspond to directory names in virtual setups (#3609)
162
163### Pull Requests
164* [#3609](https://github.com/rollup/rollup/pull/3609): Handle imports from chunks with names that correspond to parent directory names of other chunks (@guybedford)
165
166## 2.12.0
167*2020-05-31*
168
169### Features
170* Add an option `--waitForBundleInput` to let the build wait until all entry point files are available before starting (#3577)
171
172### Pull Requests
173* [#3577](https://github.com/rollup/rollup/pull/3577): Wait for bundle input option (@Heerschop)
174
175## 2.11.2
176*2020-05-28*
177
178### Bug Fixes
179* Include side-effects in the second argument of `Array.from` (#3604)
180
181### Pull Requests
182* [#3604](https://github.com/rollup/rollup/pull/3604): Mark `Array.from` as side-effectful, use two-argument Array.from when mapping Sets (@lukastaegert)
183
184## 2.11.1
185*2020-05-28*
186
187### Bug Fixes
188* Also include side-effects in files that are marked as side-effect-free if they contain an included default export that is reexported (#3602)
189
190### Pull Requests
191* [#3602](https://github.com/rollup/rollup/pull/3602): Handle side-effects next to side-effect-free default exports in case the default export is reexported (@lukastaegert)
192
193## 2.11.0
194*2020-05-27*
195
196### Features
197* Add basic support for optional chaining (#3582)
198* Provide a normalized set of options with proper default values to `buildStart` and `renderStart` (#3597)
199* Do not count adding properties to the prototype of an unused class as a side-effect (#3598)
200* Support providing `null` for empty setters in SystemJS via option (#3592)
201
202### Bug Fixes
203* Do not fail when using a `/*#__PURE__*/` annotation inside a class field (#3599)
204* Allow using `--watch` and `--treeshake` together with sub-options such as `--watch.clearScreen` on the command line (#3597)
205
206### Pull Requests
207* [#3582](https://github.com/rollup/rollup/pull/3582): Support optional chaining via acorn fork(@guybedford)
208* [#3592](https://github.com/rollup/rollup/pull/3592): System format optional setters(@guybedford)
209* [#3597](https://github.com/rollup/rollup/pull/3597): Provide normalized options (@lukastaegert)
210* [#3598](https://github.com/rollup/rollup/pull/3598): Treeshake prototype modifications in classes (@lukastaegert)
211* [#3599](https://github.com/rollup/rollup/pull/3599): Retain pure annotations in class fields (@lukastaegert)
212* [#3601](https://github.com/rollup/rollup/pull/3601): Fix white-space in docs (@tu4mo)
213
214## 2.10.9
215*2020-05-24*
216
217### Bug Fixes
218* Prevent invalid exports when facades are created (#3590)
219
220### Pull Requests
221* [#3590](https://github.com/rollup/rollup/pull/3590): Prevent unneeded exports when entry facades are created and ensure all exported variables in facades are imported (@lukastaegert)
222
223## 2.10.8
224*2020-05-23*
225
226### Bug Fixes
227* Fix issues when synthetic named exports are reexported as default exports (#3586)
228
229### Pull Requests
230* [#3584](https://github.com/rollup/rollup/pull/3584): Clarify documentation for `output.paths` (@jacksteamdev)
231* [#3585](https://github.com/rollup/rollup/pull/3585): Target Node.js v14 instead of v13 in Windows tests (@mangs)
232* [#3586](https://github.com/rollup/rollup/pull/3586): Handle default reexports of synthetic named exports over several stages (@lukastaegert)
233
234## 2.10.7
235*2020-05-22*
236
237### Bug Fixes
238* Handle modules re-exporting namespaces without further own code (#3576)
239
240### Pull Requests
241* [#3576](https://github.com/rollup/rollup/pull/3576): Fix "cannot read exports of undefined" error (@guybedford)
242
243## 2.10.6
244*2020-05-22*
245
246### Bug Fixes
247* Fix some issues around class fields (#3580)
248* Prevent a maximum call stack error when a called entity references itself in its declaration (#3581)
249
250### Pull Requests
251* [#3580](https://github.com/rollup/rollup/pull/3580): Update acorn class features (@guybedford)
252* [#3581](https://github.com/rollup/rollup/pull/3581): Do not fail when including call arguments of recursively defined variables (@lukastaegert)
253
254## 2.10.5
255*2020-05-19*
256
257### Bug Fixes
258* Do not remove side-effects that may influence an included default export declaration when side-effects are disabled (#3572)
259
260### Pull Requests
261* [#3572](https://github.com/rollup/rollup/pull/3572): Observe side-effects in files containing a default export declaration that reexports a variable (@lukastaegert)
262
263## 2.10.4
264*2020-05-19*
265
266### Bug Fixes
267* Tree-shake unused classes with fields unless there are side-effects in the field declaration (#3569)
268
269### Pull Requests
270* [#3569](https://github.com/rollup/rollup/pull/3569): Make sure unused classes with fields are tree-shaken if possible (@lukastaegert)
271
272## 2.10.3
273*2020-05-18*
274
275### Bug Fixes
276* Validate return value of sourcemapPathTransform option (#3561)
277
278### Pull Requests
279* [#3561](https://github.com/rollup/rollup/pull/3561): Throw error if sourcemapPathTransform-option does not return a string (@Simonwep)
280
281## 2.10.2
282*2020-05-15*
283
284### Bug Fixes
285* Properly include calls to mutating array methods in certain scenarios (#3559)
286
287### Pull Requests
288* [#3559](https://github.com/rollup/rollup/pull/3559): Make sure UnknownFooExpressions are included when referenced as return values in a MultiExpression (@lukastaegert)
289
290## 2.10.1
291*2020-05-15*
292
293### Bug Fixes
294* Do not throw when "undefined" is used as a default export (#3558)
295
296### Pull Requests
297* [#3558](https://github.com/rollup/rollup/pull/3558): Properly handle default exporting undefined (@lukastaegert)
298
299## 2.10.0
300*2020-05-13*
301
302### Features
303* Avoid unnecessary empty imports from a facade chunk to the original chunk (#3552)
304* Pin facade creation order so that if several user-defined chunks reference the same module, the first always becomes the "actual" chunk while the later ones become facades (#3552)
305
306### Bug Fixes
307* Do not omit reexports from secondary chunks when creating facades for entry points without hoisting transitive dependencies (#3552)
308
309### Pull Requests
310* [#3552](https://github.com/rollup/rollup/pull/3552): Avoid unnecessary facade dependency inlining (@guybedford)
311
312## 2.9.1
313*2020-05-11*
314
315### Bug Fixes
316* Do not create unintended live-bindings or invalid reexports when reexporting global variables (#3550)
317
318### Pull Requests
319* [#3550](https://github.com/rollup/rollup/pull/3550): Track updates of globals that are exported as default (@lukastaegert)
320
321## 2.9.0
322*2020-05-10*
323
324### Features
325* Add ids of static and dynamic imports to `this.getModuleInfo` (#3542)
326* Provide `getModuleInfo` and `getModuleIds` to `manualChunks` functions (#3542)
327* Add nullish coalescing support (#3548)
328* Make the rebuild delay in watch mode configurable and set the default to `0` for snappy rebuilds (#3502)
329* Add `this.getModuleIds` to the plugin context as future replacement for `this.moduleIds` (#3542)
330
331### Pull Requests
332* [#3502](https://github.com/rollup/rollup/pull/3502): Configurable build delay (@mattdesl)
333* [#3542](https://github.com/rollup/rollup/pull/3542): Extend manualChunks API (@lukastaegert)
334* [#3548](https://github.com/rollup/rollup/pull/3548): Support nullish coalescing with tree-shaking (@lukastaegert)
335
336## 2.8.2
337*2020-05-07*
338
339### Bug Fixes
340* Avoid invalid code when simplifying the body of a shorthand arrow function expression (#3540)
341
342### Pull Requests
343* [#3540](https://github.com/rollup/rollup/pull/3540): Wrap object expressions in parentheses if they become children of an arrow function expression (@lukastaegert)
344
345## 2.8.1
346*2020-05-07*
347
348### Bug Fixes
349* Allow using plugins on CLI that are exported as `exports.default` (#3529)
350* Do not fail side-effect detection in nested callbacks of builtins (#3539)
351
352### Pull Requests
353* [#3529](https://github.com/rollup/rollup/pull/3529): Use default named export with plugins (@NotWoods)
354* [#3539](https://github.com/rollup/rollup/pull/3539): Track call side-effects both by entity and CallExpression to avoid untracked side-effects in nested calls (@lukastaegert)
355
356## 2.8.0
357*2020-05-06*
358
359### Features
360* When a dynamically imported chunk contains more exports than the imported module namespace, do not create a facade chunk but an inline namespace (#3535)
361
362### Bug Fixes
363* Do not execute dynamically imported code before synchronous code in the importing module when generating CommonJS (#3535)
364
365### Pull Requests
366* [#3535](https://github.com/rollup/rollup/pull/3535): Avoid dynamic facade chunks (@lukastaegert)
367
368## 2.7.6
369*2020-04-30*
370
371### Bug Fixes
372* Fix a type issue when a default export references a global variable (#3526)
373
374### Pull Requests
375* [#3526](https://github.com/rollup/rollup/pull/3526): Handles default exporting global variables (@lukastaegert)
376
377## 2.7.5
378*2020-04-29*
379
380### Bug Fixes
381* Prevent infinite loop when default values of function parameters in a default export contain a slash (#3522)
382
383### Pull Requests
384* [#3522](https://github.com/rollup/rollup/pull/3522): Avoid infinite loop when finding position for id insertion in default export (@lukastaegert)
385
386## 2.7.4
387*2020-04-29*
388
389### Bug Fixes
390* Fix an issue where wrong variable names were used when preserving modules (#3521)
391
392### Pull Requests
393* [#3521](https://github.com/rollup/rollup/pull/3521): Fix and improve default export alias logic (@lukastaegert)
394
395## 2.7.3
396*2020-04-27*
397
398### Bug Fixes
399* Do not access `__proto__` when running Rollup (#3518)
400
401### Pull Requests
402* [#3518](https://github.com/rollup/rollup/pull/3518): use acorn-class-fields and acorn-static-class-features from npm (@nitsky)
403
404## 2.7.2
405*2020-04-22*
406
407### Bug Fixes
408* Prevent an infinite loop when creating separate manual chunks with circular dependencies (#3510)
409* Do not fail if "super" is used in the definition of a class field (#3511)
410* Throw if a plugin tries to emit a file with an absolute Windows path (#3509)
411
412### Pull Requests
413* [#3509](https://github.com/rollup/rollup/pull/3509): Ban emitFile via absolute paths on Windows OS (@SASUKE40)
414* [#3510](https://github.com/rollup/rollup/pull/3510): Do not fail for circular imports between manual chunks (@lukastaegert)
415* [#3511](https://github.com/rollup/rollup/pull/3511): Support "super" in class fields (@lukastaegert)
416
417## 2.7.1
418*2020-04-21*
419
420### Bug Fixes
421* Use correct path for dynamic imports if `output.paths` is used (#3508)
422
423### Pull Requests
424* [#3508](https://github.com/rollup/rollup/pull/3508): Respect output.paths in dynamic imports (@lukastaegert)
425
426## 2.7.0
427*2020-04-21*
428
429### Features
430* Add `preserveEntrySignatures` option to control how exports of entry points are handled (#3498)
431* Add `preserveSignature` flag to `this.emitFile` to control exports of emitted chunks (#3498)
432* Add `output.minifyInternalExports` option to control if internal exports are minified (#3498)
433
434### Pull Requests
435* [#3498](https://github.com/rollup/rollup/pull/3498): Add option to configure if entry signatures are preserved (@lukastaegert)
436
437## 2.6.1
438*2020-04-12*
439
440### Bug Fixes
441* Close watch mode when stdin closes in a non-TTY environment (#3493)
442
443### Pull Requests
444* [#3493](https://github.com/rollup/rollup/pull/3493): Ensure --watch mode exits correctly when stdin is closed (@jakesgordon)
445
446## 2.6.0
447*2020-04-10*
448
449### Features
450* Allow regular expressions to declare external modules (#3482)
451
452### Pull Requests
453* [#3482](https://github.com/rollup/rollup/pull/3482): Allow regular expressions in config.external (@johannes-z)
454
455## 2.5.0
456This version is identical to 2.4.0
457
458## 2.4.0
459*2020-04-09*
460
461### Features
462* Add support for most private and public class field features (#3488)
463
464### Bug Fixes
465* Do not replace `this` with `undefined` in class field definitions (#3488)
466
467### Pull Requests
468* [#3488](https://github.com/rollup/rollup/pull/3488): Rollup class fields support (@guybedford and @lukastaegert)
469
470## 2.3.5
471*2020-04-09*
472
473### Bug Fixes
474* Never remove labels when tree-shaking is disabled (#3492)
475
476### Pull Requests
477* [#3492](https://github.com/rollup/rollup/pull/3492): Always use a new inclusion context when including declarations of variables, always inlcude labels when not treeshaking (@lukastaegert)
478
479## 2.3.4
480*2020-04-07*
481
482### Bug Fixes
483* Handle re-exporting synthetic exports from entry-points (#3319)
484* Fix cross-chunk imports of synthetic exports (#3319)
485* Handle namespace objects that contain re-exported synthetic namespaces (#3319)
486
487### Pull Requests
488* [#3319](https://github.com/rollup/rollup/pull/3319): Handle re-exports of synthetic named exports (@manucorporat and @lukastaegert)
489
490## 2.3.3
491*2020-04-04*
492
493### Bug Fixes
494* Add external namespaces to dynamic namespace objects (#3474)
495
496### Pull Requests
497* [#3474](https://github.com/rollup/rollup/pull/3474): Support external star exports on namespace objects (@guybedford)
498
499## 2.3.2
500*2020-03-31*
501
502### Bug Fixes
503* Only warn but do not fail build when a namespace is called as a function (#3475)
504* Make sure pre-existing sourcemap comments are also removed when rebuilding using the cache (#3476)
505
506### Pull Requests
507* [#3475](https://github.com/rollup/rollup/pull/3475): Call namespace error as a warning (@guybedford)
508* [#3476](https://github.com/rollup/rollup/pull/3476): Store locations for removed comments in cache (@lukastaegert)
509
510## 2.3.1
511*2020-03-30*
512
513### Bug Fixes
514* Do not fail if the config file returns an function returning a Promise (#3472)
515
516### Pull Requests
517* [#3472](https://github.com/rollup/rollup/pull/3472): Fix support for async functions as config (@lukastaegert)
518
519## 2.3.0
520*2020-03-29*
521
522### Features
523* Do not transpile config files with `.mjs` extension in Node 13+ or `.cjs` extension in any Node version and load them appropriately (#3445)
524* Extract helper to load a config file the way rollup does it via `rollup/dist/loadConfigFile` (#3445)
525
526### Bug Fixes
527* Keep watching the config file if an error occurs during initial load in watch node (#3445)
528* Add a helpful error message when using a transpiled config in a repository with "type": "module" (#3445)
529
530### Pull Requests
531* [#3445](https://github.com/rollup/rollup/pull/3445): Support native ESM configs in Node 13, support untranspiled configs (@lukastaegert)
532* [#3468](https://github.com/rollup/rollup/pull/3468): Don't use esm output format alias in the documentation (@vsn4ik)
533
534## 2.2.0
535*2020-03-24*
536
537### Features
538* Add `renderDynamicImport` hook to rewrite dynamic import expressions (#3449)
539* Add information about dynamically imported modules to `this.getModuleInfo` (#3449)
540
541### Bug Fixes
542* Make file emission work with Uin8Array sources when using Rollup in the browser (#3452)
543* Fix types to allow watch to accept an array of configs (#3453)
544* Do not strip `.js` extensions from AMD imports when the import is a user-supplied replacement for a non-resolvable dynamic import target (#3453)
545
546### Pull Requests
547* [#3449](https://github.com/rollup/rollup/pull/3449): Add hook to rewrite dynamic import expressions (@lukastaegert)
548* [#3452](https://github.com/rollup/rollup/pull/3452): Avoid the assumption of Buffer in browser envs (@JoviDeCroock)
549* [#3453](https://github.com/rollup/rollup/pull/3453): fix types since watch accepts single or array config (@lukeed)
550* [#3456](https://github.com/rollup/rollup/pull/3456): fix SystemJS url in tutorial (@guybedford)
551
552## 2.1.0
553*2020-03-18*
554
555### Features
556* Allow specifying an importer when emitting files to resolve relative ids (#3442)
557
558### Pull Requests
559* [#3442](https://github.com/rollup/rollup/pull/3442): Add optional `importer` parameter to `this.emitFile` (@lukastaegert)
560
561## 2.0.6
562*2020-03-13*
563
564### Bug Fixes
565* Do not use file names from different outputs when generating sourcemaps using the `dir` option (#3440)
566
567### Pull Requests
568* [#3440](https://github.com/rollup/rollup/pull/3440): Use correct file names when writing sourcemaps for multiple outputs (@lukastaegert)
569
570## 2.0.5
571*2020-03-12*
572
573### Bug Fixes
574* Fix an issue where conditional statements would assume they have the wrong test value (#3438)
575
576### Pull Requests
577* [#3438](https://github.com/rollup/rollup/pull/3438): Make sure logical expressions always check the left argument for side-effects (@lukastaegert)
578
579## 2.0.4
580*2020-03-12*
581
582### Bug Fixes
583* Avoid conflicts between namespace imports when preserving modules (#3435)
584
585### Pull Requests
586* [#3435](https://github.com/rollup/rollup/pull/3435): Deconflict multiple `index` imports for ES format using nested export star statements (@kamranayub)
587
588## 2.0.3
589*2020-03-10*
590
591### Bug Fixes
592* Add type for this.getCombinedSourcemap to transform context (#3431)
593
594### Pull Requests
595* [#3377](https://github.com/rollup/rollup/pull/3377): Switch to yargs-parser lib (@jamesgeorge007)
596* [#3426](https://github.com/rollup/rollup/pull/3426): Use strict types with PluginDriver (@NotWoods)
597* [#3431](https://github.com/rollup/rollup/pull/3431): Add missing type declaration for getCombinedSourcemap (@Anidetrix)
598* [#3432](https://github.com/rollup/rollup/pull/3432): Detail how return values from `augmentChunkHash` are used (@jakearchibald)
599
600## 2.0.2
601*2020-03-07*
602
603### Bug Fixes
604* Make sure the ESM import still works (#3430)
605
606### Pull Requests
607* [#3430](https://github.com/rollup/rollup/pull/3430): Fix conditional exports again (@lukastaegert)
608
609## 2.0.1
610*2020-03-07*
611
612### Bug Fixes
613* Reenable importing rollup in Node 13.0 - 13.7 (#3428)
614
615### Pull Requests
616* [#3428](https://github.com/rollup/rollup/pull/3428): Fix conditional exports in Node 13.0 - 13.7 (@lukastaegert)
617
618## 2.0.0
619*2020-03-06*
620
621### Breaking Changes
622* Rollup now requires at least Node 10 to run, or a sufficiently modern browser (#3346)
623* The file structure of Rollup's ESM builds has changed:
624 - The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js`
625 - The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js`
626
627 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)
628* 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)
629* Modules that are completely tree-shaken will no longer be listed as part of any chunks in `generateBundle`
630* The `experimentalOptimizeChunks` and `chunkGroupingSize` options have been removed
631* [acorn](https://github.com/acornjs/acorn) plugins can only be used if they accept a passed-in acorn instance instead of importing it themselves. See https://github.com/acornjs/acorn/pull/870#issuecomment-527339830 for what needs to be done to make plugins compatible that do not support this yet (#3391)
632* Emitted chunks now have the TypeScript type `Uint8Array` instead of `Buffer`. A `Buffer` can still be used, though (#3395)
633* 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)
634* 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)
635* The following plugin hooks have been removed:
636 - ongenerate: use `generateBundle` instead
637 - onwrite: use `writeBundle` instead
638 - transformBundle: use `renderChunk` instead
639 - transformChunk: use `renderChunk` instead
640* You can no longer access `this.watcher` on the plugin context.
641* The `transform` hook can no longer return `dependencies`.
642* The `treeshake.pureExternalModules` option will now show a deprecation warning when used: use `treeshake.moduleSideEffects: 'no-external'` instead
643* 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
644* The `resolveAssetUrl` hook will now show a deprecation warning when used: use `resolveFileUrl` instead
645* The following plugin context functions will show warnings when used:
646 - `this.emitAsset`: use `this.emitFile`
647 - `this.emitChunk`: use `this.emitFile`
648 - `this.getAssetFileName`: use `this.getFileName`
649 - `this.getChunkFileName`: use `this.getFileName`
650 - `this.isExternal`: use `this.resolve`
651 - `this.resolveId`: use `this.resolve`
652* Directly adding properties to the bundle object in the `generateBundle` is deprecated will show a warning (removing properties is allowed, though): Use `this.emitFile`
653* Accessing `chunk.isAsset` on the bundle is deprecated: Use `chunk.type === 'asset'` instead
654* 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)
655
656### Features
657* Rollup now bundles [Chokidar](https://github.com/paulmillr/chokidar) for a better watch experience (#3331)
658* Rollup now bundles [acorn](https://github.com/acornjs/acorn) again, removing its only external dependency (#3391)
659* Do not consider empty imports from side-effect-free modules for chunking and hoist side-effect imports if necessary (#3369)
660* 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)
661* `systemjs` can be used as format alias for `system` (#3381)
662
663### Bug Fixes
664* Unknown output options now trigger a warning when using the JavaScript API (#3352)
665* Rollup will no longer introduce Node types into TypeScript projects that do not use them (#3395)
666* Generate correct sourcemaps when tree-shaking occurs in a multi-file bundle (#3423)
667
668### Pull Requests
669* [#3331](https://github.com/rollup/rollup/pull/3331): Bundle Chokidar (@lukastaegert)
670* [#3343](https://github.com/rollup/rollup/pull/3343): Remove experimentalOptimizeChunks (@lukastaegert)
671* [#3346](https://github.com/rollup/rollup/pull/3346): Update minimum required Node version to 10 (@lukastaegert)
672* [#3352](https://github.com/rollup/rollup/pull/3352): Remove active deprecations (@lukastaegert)
673* [#3361](https://github.com/rollup/rollup/pull/3361): Change writeBundle signature to match generateBundle (@lukastaegert)
674* [#3369](https://github.com/rollup/rollup/pull/3369): Avoid empty imports from side-effect-free chunks (@lukastaegert)
675* [#3381](https://github.com/rollup/rollup/pull/3381): Rename esm to es everywhere, add systemjs alias (@lukastaegert)
676* [#3391](https://github.com/rollup/rollup/pull/3391): Bundle acorn, allow importing Rollup as Node ES module, update dependencies (@lukastaegert)
677* [#3393](https://github.com/rollup/rollup/pull/3393): Better error code for name-less umd bundle (@rail44)
678* [#3395](https://github.com/rollup/rollup/pull/3395): Remove `@types` dependencies (@lukastaegert)
679* [#3423](https://github.com/rollup/rollup/pull/3423): Update magic-string and fix sourcemaps (@lukastaegert)
680
681## 1.32.1
682*2020-03-06*
683
684### Bug Fixes
685* Handle default export detection for AMD and IIFE externals that do not have a prototype (#3420)
686* Handle missing whitespace when the else branch of an if-statement is simplified (#3421)
687* Mention the importing module when reporting errors for missing named exports (#3401)
688* Add code to warning for missing output.name of IIFE bundles (#3372)
689
690### Pull Requests
691* [#3372](https://github.com/rollup/rollup/pull/3372): Add warning code for missing output.name of IIFE bundle that has export (@rail44)
692* [#3401](https://github.com/rollup/rollup/pull/3401): Missing exports errors now print the importing module (@timiyay)
693* [#3418](https://github.com/rollup/rollup/pull/3418): Structure lifecycle hooks, add links to build time hooks (@lukastaegert)
694* [#3420](https://github.com/rollup/rollup/pull/3420): Update generated code of getInteropBlock() to work with null prototype objects (@jdalton)
695* [#3421](https://github.com/rollup/rollup/pull/3421): Avoid invalid code when "else" branch is simplified (@lukastaegert)
696
697## 1.32.0
698*2020-02-28*
699
700### Features
701* Allow adding plugins on the command line via `--plugin <plugin>` (#3379)
702
703### Pull Requests
704* [#3379](https://github.com/rollup/rollup/pull/3379): introduce CLI --plugin support (@kzc)
705* [#3390](https://github.com/rollup/rollup/pull/3390): fix typo: this.addWatchfile (@mistlog)
706* [#3392](https://github.com/rollup/rollup/pull/3392): Bump codecov from 3.6.1 to 3.6.5
707* [#3404](https://github.com/rollup/rollup/pull/3404): Update resolveFileUrl docs (@jakearchibald)
708
709## 1.31.1
710*2020-02-14*
711
712### Bug Fixes
713* Make sure errored files are always re-evaluated in watch mode to avoid an issue in the typescript plugin (#3388)
714
715### Pull Requests
716* [#3366](https://github.com/rollup/rollup/pull/3366): Correct spelling minifaction to minification (@VictorHom)
717* [#3371](https://github.com/rollup/rollup/pull/3371): Adjust bug template to mention REPL.it (@lukastaegert)
718* [#3388](https://github.com/rollup/rollup/pull/3388): Run transform hooks again in watch mode on files that errored (@lukastaegert)
719
720## 1.31.0
721*2020-01-31*
722
723### Features
724* Always disable tree-shaking for asm.js functions to maintain semantics (#3362)
725
726### Pull Requests
727* [#3362](https://github.com/rollup/rollup/pull/3362): Preserve asm.js code (@lukastaegert)
728
729## 1.30.1
730*2020-01-27*
731
732### Bug Fixes
733* Do not mistreat static entgry points as dynamic ones when chunking (#3357)
734* Resolve a crash when chunking circular dynamic imports (#3357)
735
736### Pull Requests
737* [#3357](https://github.com/rollup/rollup/pull/3357): Resolve issues with circular dynamic entries (@lukastaegert)
738
739## 1.30.0
740*2020-01-27*
741
742### Features
743* Do not split chunks when dynamically imported modules import modules that are already loaded by all dynamic importers (#3354)
744* Add `hoistTransitiveImports` option to disable hoisting imports of static dependencies into entry chunks (#3353)
745
746### Bug Fixes
747* Make sure polyfills are always loaded first when each static entry point contains them as first import (#3354)
748
749### Pull Requests
750* [#3353](https://github.com/rollup/rollup/pull/3353): Add option to avoid hoisting transitive imports (@lukastaegert)
751* [#3354](https://github.com/rollup/rollup/pull/3354): Improve chunking algorithm for dynamic imports (@tjenkinson and @lukastaegert)
752
753## 1.29.1
754*2020-01-21*
755
756### Bug Fixes
757* Avoid crashes for circular reexports when named exports cannot be found (#3350)
758
759### Pull Requests
760* [#3335](https://github.com/rollup/rollup/pull/3335): Fix typo (@robbinworks)
761* [#3342](https://github.com/rollup/rollup/pull/3342): Remove ":" from test file names for Windows and update dependencies (@lukastaegert)
762* [#3350](https://github.com/rollup/rollup/pull/3350): Properly handle circular reexports (@lukastaegert)
763
764## 1.29.0
765*2020-01-08*
766
767### Features
768* Enable top-level await by default (#3089)
769* Add typings for watch events (#3302)
770
771### Bug Fixes
772* Deconflict files that would conflict only on a case-insensitive OS (#3317)
773* Do not fail in certain scenarios where a logical expression inside a sequence expression was being directly included (#3327)
774
775### Pull Requests
776* [#3089](https://github.com/rollup/rollup/pull/3089): Move top-level await out of experimental (@guybedford)
777* [#3302](https://github.com/rollup/rollup/pull/3302): Adds type definitions for RollupWatcher events (@NotWoods)
778* [#3317](https://github.com/rollup/rollup/pull/3317): Fix module id conflict on a case insensitive OS (@yesmeck)
779* [#3327](https://github.com/rollup/rollup/pull/3327): Handle deoptimizations while a node is being included (@lukastaegert)
780
781## 1.28.0
782*2020-01-04*
783
784### Features
785* Allow piping in stdin via the command line interface (#3312, #3290)
786* Allow plugins to mark modules as having syntheticNamedExports for e.g. better CJS interoperability (#3295)
787* Ignore variable reassignments in dead code when tree-shaking to remove more unneeded code (#3212)
788
789### Bug Fixes
790* Properly respect tree-shaken code when generating sourcemaps (#3318)
791
792### Pull Requests
793* [#3212](https://github.com/rollup/rollup/pull/3212): Handle assignments in dead code (@tjenkinson)
794* [#3290](https://github.com/rollup/rollup/pull/3290): Implement stdin input with optional "-" as the file name (@kzc)
795* [#3295](https://github.com/rollup/rollup/pull/3295): Add syntheticNamedExports (@manucorporat)
796* [#3300](https://github.com/rollup/rollup/pull/3300): Add note about setting `types` in tsconfig file (@tjenkinson)
797* [#3303](https://github.com/rollup/rollup/pull/3303): Use ! to assert not-null in TypeScript (@NotWoods)
798* [#3312](https://github.com/rollup/rollup/pull/3312): Implement stdin input (@lukastaegert)
799* [#3318](https://github.com/rollup/rollup/pull/3318): Update magic-string and other dependencies (@lukastaegert)
800
801## 1.27.14
802*2019-12-22*
803
804### Bug Fixes
805* Update references to official rollup plugins in error messages (#3297, #3298)
806
807### Pull Requests
808* [#3286](https://github.com/rollup/rollup/pull/3286): Update link to JavaScript API documentation (@romankaravia)
809* [#3294](https://github.com/rollup/rollup/pull/3294): Update deprecated references to the node-resolve plugin in the documentation (@Vlad-Shcherbina)
810* [#3297](https://github.com/rollup/rollup/pull/3297): Update references to rollup-plugin-json (@cprecioso)
811* [#3298](https://github.com/rollup/rollup/pull/3298): Update references to official rollup plugins (@cprecioso)
812
813## 1.27.13
814*2019-12-14*
815
816### Bug Fixes
817* Do not truncate environment variable values at the first colon when using the `--environment` option (#3283)
818
819### Pull Requests
820* [#3283](https://github.com/rollup/rollup/pull/3283): Allow environment variables to contain colons (@tlaverdure)
821
822## 1.27.12
823*2019-12-13*
824
825### Bug Fixes
826* Prevent invalid AMD or SystemJS code when accessing `import.meta` (#3282)
827
828### Pull Requests
829* [#3282](https://github.com/rollup/rollup/pull/3282): Always make "module" available for SystemJS and AMD formats if `import.meta` is accessed directly (@lukastaegert)
830
831## 1.27.11
832*2019-12-12*
833
834### Bug Fixes
835* Resolve a crash due to an infinite loop (#3280)
836
837### Pull Requests
838* [#3280](https://github.com/rollup/rollup/pull/3280): Prevent infinite deoptimizations (@lukastaegert)
839
840## 1.27.10
841*2019-12-11*
842
843### Bug Fixes
844* Keep track of function return values in more situations (#3278)
845
846### Pull Requests
847* [#3278](https://github.com/rollup/rollup/pull/3278): Avoid some unnecessary value tracking deoptimizations (@lukastaegert)
848
849## 1.27.9
850*2019-12-07*
851
852### Bug Fixes
853* Fix an issue where reexports could be missing when preserving modules (#3273)
854* Allow turning of color output via NO_COLOR or FORCE_COLOR=0 environment variables (#3272)
855
856### Pull Requests
857* [#3272](https://github.com/rollup/rollup/pull/3272): Support either NO_COLOR or FORCE_COLOR=0 to turn off color (@kikonen)
858* [#3273](https://github.com/rollup/rollup/pull/3273): Make sure that indirectly reexported modules also become chunk dependencies when preserving modules(@lukastaegert)
859
860## 1.27.8
861*2019-12-02*
862
863### Bug Fixes
864* Deoptimize objects when a method is called on them to make sure modifications via "this" are observed (#3266)
865
866### Pull Requests
867* [#3266](https://github.com/rollup/rollup/pull/3266): Workaround for various object literal mutation bugs (@kzc)
868
869## 1.27.7
870*2019-12-01*
871
872### Bug Fixes
873* Fix a scenario where a reassignments to computed properties were not tracked (#3267)
874
875### Pull Requests
876* [#3267](https://github.com/rollup/rollup/pull/3267): Fix incomplete computed property deoptimization (@lukastaegert)
877
878## 1.27.6
879*2019-11-30*
880
881### Bug Fixes
882* Use "auto" export mode by default for all modules when preserving modules (#3265)
883* Observe "output.exports" when preserving modules and warn for mixed exports if necessary (#3265)
884
885### Pull Requests
886* [#3265](https://github.com/rollup/rollup/pull/3265): Use export mode "auto" by default when preserving modules (@lukastaegert)
887
888## 1.27.5
889*2019-11-25*
890
891### Bug Fixes
892* Make sure namespaces for inlined dynamic imports are treated as variable accesses when deconflicting (#3256)
893
894### Pull Requests
895* [#3256](https://github.com/rollup/rollup/pull/3256): Avoid name conflicts when inlining dynamic imports nested in functions (@lukastaegert)
896* [#3257](https://github.com/rollup/rollup/pull/3257): Update dependencies (@lukastaegert)
897
898## 1.27.4
899*2019-11-22*
900
901### Bug Fixes
902* Aggregate circular dependency warnings in the CLI (#3249)
903* Do not defer non-aggregated handlers in the CLI (#3249)
904
905### Pull Requests
906* [#3249](https://github.com/rollup/rollup/pull/3249): Fix broken Windows CLI tests (@lukastaegert)
907* [#3251](https://github.com/rollup/rollup/pull/3251): Add installation as a separate header (@ashrith-kulai)
908
909## 1.27.3
910*2019-11-20*
911
912### Bug Fixes
913* Provide better warning when empty chunks are created in a code-splitting scenario (#3244)
914
915### Pull Requests
916* [#3244](https://github.com/rollup/rollup/pull/3244): Clearer empty chunk warning (@tjenkinson)
917
918## 1.27.2
919*2019-11-18*
920
921### Bug Fixes
922* Fix an issue where live bindings were not working correctly when using `+=` in SystemJS (#3242)
923
924### Pull Requests
925* [#3242](https://github.com/rollup/rollup/pull/3242): Export updated assignments when using shorthand update assignment expressions in SystemJS (@lukastaegert)
926
927## 1.27.1
928*2019-11-18*
929
930### Bug Fixes
931* Fix an issue where code after a switch-statement with removed cases was erroneously not included (#3241)
932
933### Pull Requests
934* [#3237](https://github.com/rollup/rollup/pull/3237): make `acornOptions` optional in `parse()` in docs (@tjenkinson)
935* [#3240](https://github.com/rollup/rollup/pull/3240): Update dependencies and fix vulnerability (@lukastaegert)
936* [#3241](https://github.com/rollup/rollup/pull/3241): Do not truncate after switch-statement with removed case (@lukastaegert)
937
938## 1.27.0
939*2019-11-12*
940
941### Features
942* Add support for output-specific plugins (#3218)
943* Reenable parallel output processing when using the CLI (#3218)
944* Warn if files are emitted that would overwrite previously emitted files (#3218)
945
946### Bug Fixes
947* Do not overwrite files emitted in other builds if outputs are generated in parallel (#3218)
948
949### Pull Requests
950* [#3218](https://github.com/rollup/rollup/pull/3218): Per output plugins (@lukastaegert)
951
952## 1.26.5
953*2019-11-11*
954
955### Bug Fixes
956* Fix a regression where it was no longer to pass a certain option format to generate (#3223)
957
958### Pull Requests
959* [#3223](https://github.com/rollup/rollup/pull/3223): Allow passing input options to output (@lukastaegert)
960
961## 1.26.4
962*2019-11-09*
963
964### Bug Fixes
965* Keep watching known files after a plugin error during the initial build (#3219)
966
967### Pull Requests
968* [#3216](https://github.com/rollup/rollup/pull/3216): Fix small typo (@kaisermann)
969* [#3217](https://github.com/rollup/rollup/pull/3217): Update dependencies and fix security vulnerability (@lukastaegert)
970* [#3219](https://github.com/rollup/rollup/pull/3219): Also recover from plugin errors during the initial build (@lukastaegert)
971
972## 1.26.3
973*2019-11-02*
974
975### Bug Fixes
976* Work around an incompatibility with rollup-plugin-dts (#3211)
977
978### Pull Requests
979* [#3211](https://github.com/rollup/rollup/pull/3211): Do no fail if the source attribute is `undefined` in an unused named export (@lukastaegert)
980
981## 1.26.2
982*2019-10-31*
983
984### Bug Fixes
985* Do not create invalid code when using `treeshake: false` and star re-exports (#3209)
986
987### Pull Requests
988* [#3209](https://github.com/rollup/rollup/pull/3209): Also remove export-all declarations when not tree-shaking (@lukastaegert)
989
990## 1.26.1
991*2019-10-31*
992
993### Bug Fixes
994* Prevent an issue where outputs would overwrite files emitted by other outputs (#3201)
995* Do not throw an error if the config file does not have a .js extension (#3204)
996
997### Pull Requests
998* [#3201](https://github.com/rollup/rollup/pull/3201): Make the CLI run generate/output in serial (@marijnh)
999* [#3204](https://github.com/rollup/rollup/pull/3204): support all config file extensions (.js,.mjs,...) (@arlac77)
1000
1001## 1.26.0
1002*2019-10-27*
1003
1004### Features
1005* Only warn when no output is provided for an IIFE bundle but still produce valid code (#3181)
1006* Support reexporting namespaces as a binding (#3193)
1007* Switch from hash.js to crypto for hashing in the Node build for better performance and support for very large assets (#3194)
1008
1009### Bug Fixes
1010* Correctly handle chunks reexporting the same namespace as two different bindings (#3193)
1011
1012### Pull Requests
1013* [#3181](https://github.com/rollup/rollup/pull/3181): Remove the need to provide an output name for IIFE bundles (@bterrier)
1014* [#3193](https://github.com/rollup/rollup/pull/3193): Add support for "export * as name from …" (@lukastaegert)
1015* [#3194](https://github.com/rollup/rollup/pull/3194): Add support for large assets (> 100 MB) (@SebastianNiemann)
1016
1017## 1.25.2
1018*2019-10-23*
1019
1020### Bug Fixes
1021* Improve performance of bundled UMD code by adding additional parentheses to enforce eager parsing (#3183)
1022* Improve types to tolerate passing a Rollup config with multiple outputs to `rollup.rollup` (#3184)
1023
1024### Pull Requests
1025* [#3183](https://github.com/rollup/rollup/pull/3183): Add parentheses to factory function of UMD bundles (@ajihyf)
1026* [#3184](https://github.com/rollup/rollup/pull/3184): RollupOptions accept output as array (@imcotton)
1027
1028## 1.25.1
1029*2019-10-20*
1030
1031### Bug Fixes
1032* Handle a situation where code was not included after a switch statement (#3178)
1033* Handle a situation where code was not included after a do-while loop (#3180)
1034* Do not fail if different outputs emit the same file (#3175)
1035* Give access to the original acorn error for parse errors (#3176)
1036
1037### Pull Requests
1038* [#3175](https://github.com/rollup/rollup/pull/3175): Disable errors for duplicate emitted file names (@marijnh)
1039* [#3176](https://github.com/rollup/rollup/pull/3176): Add original parser error to rollup error; Update tests (@gribnoysup)
1040* [#3178](https://github.com/rollup/rollup/pull/3178): Fix switch case not being included correctly (@lukastaegert)
1041* [#3179](https://github.com/rollup/rollup/pull/3179): Update dependencies (@lukastaegert)
1042* [#3180](https://github.com/rollup/rollup/pull/3180): Handle conditional breaks in do-while loops with unconditional return (@lukastaegert)
1043
1044## 1.25.0
1045*2019-10-18*
1046
1047### Features
1048* Remove try-catch if there is no side-effect in the try-block (#3166)
1049* Omit side-effect-free trailing cases in switch-statements (#3166)
1050* Remove unused labels (#3170)
1051
1052### Bug Fixes
1053* Do not remove code after labeled statements that contain a throw or return if the label is used (#3170)
1054* Prevent invalid code when expressions are simplified that do not follow a white-space character (#3173)
1055* Do not remove continue statements inside switch statements (#3166)
1056* Prevent trailing empty lines when tree-shaking inside switch statements (#3166)
1057
1058### Pull Requests
1059* [#3166](https://github.com/rollup/rollup/pull/3166): Better try statement tree shaking (@lukastaegert)
1060* [#3170](https://github.com/rollup/rollup/pull/3170): Handle optional control flow in labeled statements, remove unused labels (@lukastaegert)
1061* [#3173](https://github.com/rollup/rollup/pull/3173): Add missing spaces in certain statements and expressions to avoid invalid code (@lukastaegert)
1062
1063## 1.24.0
1064*2019-10-15*
1065
1066### Features
1067* Respect `break`, `continue`, `return` and `throw` when tree-shaking to detect dead code (#3153)
1068* Do treat treat hoisted function declarations as "unknown" when checking for call side-effects (#3153)
1069
1070### Bug Fixes
1071* Make sure that unknown `import.meta` properties produce valid code in SystemJS (#3152)
1072* Make sure `treeshake.annotations: false` is respected for class instantiation (#3153)
1073* Check property access side-effects for class instantiation (#3153)
1074* Do not suppress break statements inside labeled statements (#3153)
1075
1076### Pull Requests
1077* [#3152](https://github.com/rollup/rollup/pull/3152): Allow import.meta.* for systemjs format (@dmail)
1078* [#3153](https://github.com/rollup/rollup/pull/3153): Get rid of immutable.js and implement tree-shaking for broken control flow (@lukastaegert)
1079
1080## 1.23.1
1081*2019-10-05*
1082
1083### Bug Fixes
1084* Fix a regression where the node types had a specific minimal version (#3143)
1085
1086### Pull Requests
1087* [#3143](https://github.com/rollup/rollup/pull/3143): Ensure that types packages have star version ranges (@lukastaegert)
1088
1089## 1.23.0
1090*2019-10-03*
1091
1092### Features
1093* Add placeholders for extensions when preserving modules (#3116)
1094
1095### Pull Requests
1096* [#3116](https://github.com/rollup/rollup/pull/3116): Include extensions in preserveModules output filenames for scriptified assets (@Andarist)
1097* [#3142](https://github.com/rollup/rollup/pull/3142): Fix typo (@tu4mo)
1098
1099## 1.22.0
1100*2019-09-29*
1101
1102### Features
1103* Add a new "hidden" sourcemap type that generates the map files but omits the sourcemap comment (#3120)
1104* Generate more efficient code when using `namespaceToStringTag: true` (#3135)
1105* Make sure namespace objects do not have a prototype (#3136)
1106
1107### Bug Fixes
1108* Do not ignore side-effectful iterators by always preserving for..of loops for now (#3132)
1109* Make sure `--context` is observed as a CLI option (#3134)
1110* Do not require specific versions for @types dependencies (#3131)
1111
1112### Pull Requests
1113* [#3120](https://github.com/rollup/rollup/pull/3120): Generate sourcemaps but omit the comment (@rohitmohan96)
1114* [#3131](https://github.com/rollup/rollup/pull/3131): Use asterisk for @types/* dependencies (@frenzzy)
1115* [#3132](https://github.com/rollup/rollup/pull/3132): Preserve empty for...of loops (@imatlopez)
1116* [#3133](https://github.com/rollup/rollup/pull/3133): Update dependencies (@lukastaegert)
1117* [#3134](https://github.com/rollup/rollup/pull/3134): Wire up --context CLI flag (@tchetwin)
1118* [#3135](https://github.com/rollup/rollup/pull/3135): Remove Symbol polyfill in module namespaces (@mkubilayk)
1119* [#3136](https://github.com/rollup/rollup/pull/3136): Set null prototype on namespace objects (@rpamely)
1120
1121## 1.21.4
1122*2019-09-16*
1123
1124### Bug Fixes
1125* Recognize common browser globals (#3117)
1126* Do not treat "typeof <global>" as a side-effect (#3117)
1127
1128### Pull Requests
1129* [#3117](https://github.com/rollup/rollup/pull/3117): Add browser globals to known globals and prevent "typeof" side-effects (@lukastaegert)
1130
1131## 1.21.3
1132*2019-09-14*
1133
1134### Bug Fixes
1135* Fix a regression where modifying a watched file did not trigger a rebuild (#3112)
1136
1137### Pull Requests
1138* [#3112](https://github.com/rollup/rollup/pull/3112): Fix .addWatchFile() dependencies failing to invalidate in watch mode (@tivac)
1139
1140## 1.21.2
1141*2019-09-09*
1142
1143### Bug Fixes
1144* Fix wrong deprecation message to direct to `this.emitFile` instead of `this.emitAsset`
1145
1146## 1.21.1
1147*2019-09-09*
1148
1149### Bug Fixes
1150* Allow legacy plugins to still add assets directly to the bundle object (#3105)
1151
1152### Pull Requests
1153* [#3105](https://github.com/rollup/rollup/pull/3105): Allow legacy plugins to still add assets directly to the bundle object (@lukastaegert)
1154
1155## 1.21.0
1156*2019-09-08*
1157
1158### Features
1159* Respect `output.entryFileNames` when preserving modules (#3088)
1160* Make accessing unknown globals a side-effect unless this is deactivated via `treeshake.unknownGlobalSideEffects` (#3068)
1161* Respect global objects when checking for pure global functions (#3068)
1162* Introduce a `type` to more easily distinguish chunks and assets in the output bundle (#3080)
1163
1164### Bug Fixes
1165* Recover in watch mode when the initial build fails (#3081)
1166* Make sure `output.strict` is respected for SystemJS output (#3101)
1167
1168### Pull Requests
1169* [#3068](https://github.com/rollup/rollup/pull/3068): Make accessing unknown globals a side-effect (@lukastaegert)
1170* [#3080](https://github.com/rollup/rollup/pull/3080): OutputBundle Tagged union with 'type = chunk|asset' (@askbeka)
1171* [#3081](https://github.com/rollup/rollup/pull/3081): Watch files onbuild, even if build fails (@mhkeller)
1172* [#3088](https://github.com/rollup/rollup/pull/3088): Add support for entryFileNames pattern used in combination with preserveModules option (@Andarist)
1173* [#3101](https://github.com/rollup/rollup/pull/3101): Remove 'use strict'; from systemjs when strict=false (@askbeka)
1174
1175## 1.20.3
1176*2019-08-28*
1177
1178### Bug Fixes
1179* Make sure file hashes change when a change of the naming pattern leads to a file name change of a dependency (#3083)
1180* Fix several issues where reexporting an external "default" export could lead to invalid or incorrect code (#3084)
1181
1182### Pull Requests
1183* [#3078](https://github.com/rollup/rollup/pull/3078): Add github actions workflow config for windows (@shellscape)
1184* [#3083](https://github.com/rollup/rollup/pull/3083): Properly reflect dependency file names in hash (@lukastaegert)
1185* [#3084](https://github.com/rollup/rollup/pull/3084): Fix "default" reexport issues in non ESM/System formats (@lukastaegert)
1186
1187## 1.20.2
1188*2019-08-25*
1189
1190### Bug Fixes
1191* Avoid an issue where circular namespace reexports would crash Rollup (#3074)
1192
1193### Pull Requests
1194* [#3077](https://github.com/rollup/rollup/pull/3077): Handle namespaces that reexport themselves (@lukastaegert)
1195
1196## 1.20.1
1197*2019-08-22*
1198
1199### Bug Fixes
1200* Fix an issue where variable names inside dynamic import expressions were not rendered correctly (#3073)
1201* Fix type definition to allow a single watcher config as well as an array (#3074)
1202
1203### Pull Requests
1204* [#3073](https://github.com/rollup/rollup/pull/3073): Fix wrong variable name in import expression (@lukastaegert)
1205* [#3074](https://github.com/rollup/rollup/pull/3074): Fixes type definition on watch and Watcher constructor (@MicahZoltu)
1206
1207## 1.20.0
1208*2019-08-21*
1209
1210### Features
1211* Add augmentChunkHash plugin hook to be able to reflect changes in renderChunk in the chunk hash (#2921)
1212
1213### Bug Fixes
1214* Do not mutate the acorn options object (#3051)
1215* Make sure the order of emitted chunks always reflects the order in which they were emitted (#3055)
1216* Do not hang when there are strings containing comment-like syntax in some scenarios (#3069)
1217
1218### Pull Requests
1219* [#2921](https://github.com/rollup/rollup/pull/2921): Add augmentChunkHash plugin hook (@isidrok)
1220* [#2995](https://github.com/rollup/rollup/pull/2995): Add info on installing locally to docs (@mesqueeb)
1221* [#3037](https://github.com/rollup/rollup/pull/3037): Refresh pull request labels (@shellscape)
1222* [#3048](https://github.com/rollup/rollup/pull/3048): Document ROLLUP_WATCH environment variable (@shellscape)
1223* [#3051](https://github.com/rollup/rollup/pull/3051): Avoid changes to the original options (.acorn) object (@LongTengDao)
1224* [#3052](https://github.com/rollup/rollup/pull/3052): Minor refactoring: Remove one try-catch (@KSXGitHub)
1225* [#3053](https://github.com/rollup/rollup/pull/3053): Refactor to use async-await in more places (@KSXGitHub)
1226* [#3055](https://github.com/rollup/rollup/pull/3055): Provide consistent chunking via a consistent order of entry modules when emitting chunks (@lukastaegert)
1227* [#3058](https://github.com/rollup/rollup/pull/3058): Remove acorn-bigint and acorn-dynamic-import from bundle (@LongTengDao)
1228* [#3061](https://github.com/rollup/rollup/pull/3061): Update to acorn@7 (@lukastaegert)
1229* [#3063](https://github.com/rollup/rollup/pull/3063): Auto-generate license file (@lukastaegert)
1230* [#3069](https://github.com/rollup/rollup/pull/3069): Prevent infinite loop when scanning for line-breaks and there are comment-like strings (@lukastaegert)
1231
1232## 1.19.4
1233*2019-08-07*
1234
1235### Bug Fixes
1236* Prevent invalid code when exporting an external namespace (#3034)
1237* Prevent invalid or non-equivalent code when simplifying expressions in return and throw statements (#3035)
1238
1239### Pull Requests
1240* [#3034](https://github.com/rollup/rollup/pull/3034): Avoid generating .* as export (@LongTengDao)
1241* [#3035](https://github.com/rollup/rollup/pull/3035): Prevent ASI errors for conditional expressions (@lukastaegert)
1242* [#3036](https://github.com/rollup/rollup/pull/3036): Fix documents to use https, not http (@giraffate)
1243
1244## 1.19.3
1245*2019-08-06*
1246
1247### Bug Fixes
1248* Fix wrong URLs in error messages (#3033)
1249
1250### Pull Requests
1251* [#3033](https://github.com/rollup/rollup/pull/3033): Fix wrong URLs in error messages (@giraffate)
1252
1253## 1.19.2
1254*2019-08-05*
1255
1256### Bug Fixes
1257* Add bin file to package
1258
1259## 1.19.1
1260*2019-08-05*
1261
1262### Bug Fixes
1263* Remove wrong extension in package.json file (#3031)
1264
1265### Pull Requests
1266* [#3031](https://github.com/rollup/rollup/pull/3031): Fix wrong extension (@lukastaegert)
1267
1268## 1.19.0
1269*2019-08-05*
1270
1271### Features
1272* Implement a new unified file emission API for assets and chunks with support for explicit file names (#2999)
1273* Use the id of the last module in a chunk as base for the chunk name if no better name is available (#3025)
1274* Use the id of the last module in a chunk as base for the variable name of a chunk in some formats if no better name is available (#2999)
1275
1276### Bug Fixes
1277* Do not produce invalid variable names if an empty name is chosen for a virtual module (#3026)
1278* Fix an issue where a module variable name would conflict with a local variable name in some formats (#3020)
1279
1280### Pull Requests
1281* [#2999](https://github.com/rollup/rollup/pull/2999): Unified file emission api (@lukastaegert)
1282* [#3020](https://github.com/rollup/rollup/pull/3020): Switch to a code-splitting build and update dependencies (@lukastaegert)
1283* [#3025](https://github.com/rollup/rollup/pull/3025): Use id of last module in chunk as name base for auto-generated chunks (@lukastaegert)
1284* [#3026](https://github.com/rollup/rollup/pull/3026): Avoid variable from empty module name be empty (@LongTengDao)
1285
1286## 1.18.0
1287*2019-08-01*
1288
1289### Features
1290* Add `externalLiveBindings: false` option to optimize code when live bindings are not needed (#3010)
1291
1292### Pull Requests
1293* [#2997](https://github.com/rollup/rollup/pull/2997): Integrate coverage into CI setup (@lukastaegert)
1294* [#2998](https://github.com/rollup/rollup/pull/2998): Update readme badges (@lukastaegert)
1295* [#3010](https://github.com/rollup/rollup/pull/3010): Add option to prevent code for external live bindings (@lukastaegert)
1296
1297## 1.17.0
1298*2019-07-15*
1299
1300### Features
1301* Allow plugins to access current combined sourcemap in transform hook for coverage instrumentation (#2993)
1302
1303### Pull Requests
1304* [#2987](https://github.com/rollup/rollup/pull/2987): Fix code fences for link (@johanholmerin)
1305* [#2989](https://github.com/rollup/rollup/pull/2989): Bump lodash from 4.17.11 to 4.17.14 (@dependabot)
1306* [#2993](https://github.com/rollup/rollup/pull/2993): Add getCombinedSourceMap in transform plugin context (@billowz)
1307
1308## 1.16.7
1309*2019-07-09*
1310
1311### Bug Fixes
1312* Fix an issue where exported import.meta properties would lead to invalid code (#2986)
1313
1314### Pull Requests
1315* [#2985](https://github.com/rollup/rollup/pull/2985): Improve sourcemap types (@jridgewell)
1316* [#2986](https://github.com/rollup/rollup/pull/2986): Only overwrite content when resolving import.meta properties (@lukastaegert)
1317
1318## 1.16.6
1319*2019-07-04*
1320
1321### Bug Fixes
1322* Do not pass undefined to resolveDynamicImport for unresolvable template literals (#2984)
1323
1324### Pull Requests
1325* [#2984](https://github.com/rollup/rollup/pull/2984): Always forward AST nodes for unresolvable dynamic imports (@lukastaegert)
1326
1327## 1.16.5
1328*2019-07-04*
1329
1330### Bug Fixes
1331* onwarn should still be called when --silent is used (#2982)
1332* Properly clean up watchers for files that are deleted between builds (#2982)
1333
1334### Pull Requests
1335* [#2981](https://github.com/rollup/rollup/pull/2981): Do not skip onwarn handler when --silent is used (@lukastaegert)
1336* [#2982](https://github.com/rollup/rollup/pull/2982): Make tests run on Node 12, fix watcher cleanup issue (@lukastaegert)
1337
1338## 1.16.4
1339*2019-07-02*
1340
1341### Bug Fixes
1342* Do not show a TypeScript error when providing a location as number to this.warn and this.error (#2974)
1343* Use the correct TypeScript type for Sourcemap.version (#2976)
1344
1345### Pull Requests
1346* [#2965](https://github.com/rollup/rollup/pull/2965): Use async readFile in getRollupDefaultPlugin (@kaksmet)
1347* [#2974](https://github.com/rollup/rollup/pull/2974): Align TS types, docs and implementation for this.warn and this.error (@lukastaegert)
1348* [#2976](https://github.com/rollup/rollup/pull/2976): Fix sourcemap type and update dependencies (@lukastaegert)
1349
1350## 1.16.3
1351*2019-06-29*
1352
1353### Bug Fixes
1354* Prevent name conflicts with unused function parameters (#2972)
1355
1356### Pull Requests
1357* [#2972](https://github.com/rollup/rollup/pull/2972): Deconflict unused parameters (@lukastaegert)
1358
1359## 1.16.2
1360*2019-06-22*
1361
1362### Bug Fixes
1363* Properly wrap dynamic imports in Promises that can be caught when generating CJS output (#2958)
1364
1365### Pull Requests
1366* [#2958](https://github.com/rollup/rollup/pull/2958): Make sure errors from dynamic imports can be caught (@lukastaegert)
1367
1368## 1.16.1
1369*2019-06-21*
1370
1371### Pull Requests
1372* [#2956](https://github.com/rollup/rollup/pull/2956): Add missing CLI docs for strictDeprecations (@lukastaegert)
1373
1374## 1.16.0
1375*2019-06-21*
1376
1377### Features
1378* Add strictDeprecations option to throw when currently or upcoming deprecated features are used (#2945)
1379* Keep annotations and comments when simplifying logical and conditional expressions (#2955)
1380
1381### Bug Fixes
1382* Generate proper namespace objects when dynamically importing external dependencies for AMD or CJS formats (#2954)
1383* Fix dynamically imported variables not being resolved correctly when importing from an entry chunk with only a default export (#2954)
1384* Do not reexport default when reexporting a namespace (#2954)
1385
1386### Pull Requests
1387* [#2945](https://github.com/rollup/rollup/pull/2945): Add option to handle use of features marked for deprecation as errors (@lukastaegert)
1388* [#2954](https://github.com/rollup/rollup/pull/2954): Improve dynamic import interop (@lukastaegert)
1389* [#2955](https://github.com/rollup/rollup/pull/2955): Keep annotations and comments when simplifying logical and conditional expressions (@lukastaegert)
1390
1391## 1.15.6
1392*2019-06-16*
1393
1394### Bug Fixes
1395* No longer use an alternate screen in watch mode to allow scrolling (#2942)
1396* Prioritize non-external imports over external ones when resolving conflicting namespace re-exports (#2893)
1397
1398### Pull Requests
1399* [#2893](https://github.com/rollup/rollup/pull/2893): Improve handling of conflicting namespace exports (@aleclarson)
1400* [#2942](https://github.com/rollup/rollup/pull/2942): Get rid of alternate screen and simplify screen clearing (@lukastaegert)
1401
1402## 1.15.5
1403*2019-06-14*
1404
1405### Bug Fixes
1406* Do not include any comments for completely tree-shaken files so that `renderedLength === 0` is a reliable check (#2940)
1407* Do not cause type errors when returning `null` from `resolveId` (#2941)
1408
1409### Pull Requests
1410* [#2940](https://github.com/rollup/rollup/pull/2940): Completely omit files that do not have any included statements (@lukastaegert)
1411* [#2941](https://github.com/rollup/rollup/pull/2941): Explicitly allow null as return value for various hooks (@lukastaegert)
1412
1413## 1.15.4
1414*2019-06-14*
1415
1416### Bug Fixes
1417* Improve how asset and chunk URLs are resolved for UMD, IIFE and CJS output (#2937)
1418
1419### Pull Requests
1420* [#2937](https://github.com/rollup/rollup/pull/2937): Fix URL resolution to work when the current script contains query parameters (@lukastaegert)
1421
1422## 1.15.3
1423*2019-06-13*
1424
1425### Bug Fixes
1426* Always reemit assets and chunks from cached transform hooks (#2936)
1427
1428### Pull Requests
1429* [#2936](https://github.com/rollup/rollup/pull/2936): Fix repeated re-emission of files emitted from a transform hook (@lukastaegert)
1430
1431## 1.15.2
1432*2019-06-13*
1433
1434### Bug Fixes
1435* Make sure chunks emitted from transform hooks are also emitted for incremental builds in watch mode (#2933)
1436
1437### Pull Requests
1438* [#2933](https://github.com/rollup/rollup/pull/2933): Reemit chunks emitted from transform hooks (@lukastaegert)
1439
1440## 1.15.1
1441*2019-06-11*
1442
1443### Bug Fixes
1444* Do not fail when reexporting variables in dynamic entry points from other chunks (#2928)
1445
1446### Pull Requests
1447* [#2928](https://github.com/rollup/rollup/pull/2928): Handle reexports from dynamic entries across chunk (@lukastaegert)
1448
1449## 1.15.0
1450*2019-06-11*
1451
1452### Features
1453* Tone down try-catch deoptimization while maintaining polyfill support (#2918)
1454
1455### Bug Fixes
1456* Handle feature detection with "typeof" for regular expressios (#2916)
1457* Deoptimize `'' + variable'` type coercion as expression statement for feature detection (#2917)
1458* Always observe argument side-effects when tree-shaking (#2924)
1459
1460### Pull Requests
1461* [#2916](https://github.com/rollup/rollup/pull/2916): Deoptimize typeof for regular expression literals to better support es6-shim (@lukastaegert)
1462* [#2917](https://github.com/rollup/rollup/pull/2917): Support implicit type coercion errors in es5-shim (@lukastaegert)
1463* [#2918](https://github.com/rollup/rollup/pull/2918): Deoptimize try-catch less radically (@lukastaegert)
1464* [#2924](https://github.com/rollup/rollup/pull/2924): Do not tree-shake arguments with side-effects (@lukastaegert)
1465
1466## 1.14.6
1467*2019-06-10*
1468
1469### Bug Fixes
1470* Fix an issue where call arguments were not included in try statements (#2914)
1471
1472### Pull Requests
1473* [#2914](https://github.com/rollup/rollup/pull/2914): Properly include try statements for each pass when deoptimization is deactivated (@lukastaegert)
1474
1475## 1.14.5
1476*2019-06-09*
1477
1478### Bug Fixes
1479* Keep external ids unmodified when using the object form of resolveId (#2907)
1480* Cache dynamic import resolutions when using Rollup cache (#2908)
1481* Keep all necessary parentheses when tree-shaking call arguments (#2911)
1482
1483### Pull Requests
1484* [#2906](https://github.com/rollup/rollup/pull/2906): Update dependencies (@lukastaegert)
1485* [#2907](https://github.com/rollup/rollup/pull/2907): Do not renormalize external ids when using the object form (@lukastaegert)
1486* [#2908](https://github.com/rollup/rollup/pull/2908): Cache dynamic ids if possible (@lukastaegert)
1487* [#2911](https://github.com/rollup/rollup/pull/2911): Fix treeshaken parameters around parentheses (@manucorporat)
1488
1489## 1.14.4
1490*2019-06-07*
1491
1492### Bug Fixes
1493* Do not omit external re-exports for `moduleSideEffects: false` (#2905)
1494
1495### Pull Requests
1496* [#2905](https://github.com/rollup/rollup/pull/2905): Make sure external re-exports are included for moduleSideEffects: false (@lukastaegert)
1497
1498## 1.14.3
1499*2019-06-06*
1500
1501### Bug Fixes
1502* Generate correct external imports when importing from a directory that would be above the root of the current working directory (#2902)
1503
1504### Pull Requests
1505* [#2902](https://github.com/rollup/rollup/pull/2902): Use browser relative path algorithm for chunks (@lukastaegert)
1506
1507## 1.14.2
1508*2019-06-05*
1509
1510### Bug Fixes
1511* Prevent unnecessary inclusion of external namespace import in certain situations (#2900)
1512
1513### Pull Requests
1514* [#2900](https://github.com/rollup/rollup/pull/2900): Handle early bind for member expressions (@lukastaegert)
1515
1516## 1.14.1
1517*2019-06-05*
1518
1519### Bug Fixes
1520* Fix an issue where try-statements were not included properly when a variable declared inside the statement was accessed outside it (#2898)
1521* Fix an issue where `await` expressions were not included properly (#2899)
1522
1523### Pull Requests
1524* [#2898](https://github.com/rollup/rollup/pull/2898): Properly include try-catch-statements even if they have already been included in some way (@lukastaegert)
1525* [#2899](https://github.com/rollup/rollup/pull/2899): Fix unintended early return in await inclusion handling (@lukastaegert)
1526
1527## 1.14.0
1528*2019-06-05*
1529
1530### Features
1531* Deoptimize code inside and called from try-statements for feature detection (#2892)
1532* Tree-shake unused call arguments (#2892)
1533
1534### Pull Requests
1535* [#2892](https://github.com/rollup/rollup/pull/2892): Implement try-statement-deoptimization for feature detection, tree-shake unused arguments (@lukastaegert)
1536
1537
1538## 1.13.1
1539*2019-06-01*
1540
1541### Bug Fixes
1542* Avoid conflicts between top-level module, require etc. and CommonJS runtimes (#2889)
1543
1544### Pull Requests
1545* [#2888](https://github.com/rollup/rollup/pull/2888): Enable full TypeScript strict mode (@lukastaegert)
1546* [#2889](https://github.com/rollup/rollup/pull/2889): Protect all module globals for CJS output from being redefined (@lukastaegert)
1547
1548## 1.13.0
1549*2019-05-31*
1550
1551### Features
1552* Omit `exports` and `module` from SystemJS wrapper if possible (#2880)
1553* Try to use the first letters of names when mangling exports (#2885)
1554
1555### Bug Fixes
1556* Avoid conflicts with local variables when using format specific globals to render dynamic imports and file URLs (#2880)
1557* Do not produce undefined reexports when reexporting from entry points (#2885)
1558
1559### Pull Requests
1560* [#2880](https://github.com/rollup/rollup/pull/2880): Deconflict global variables used inside format-specific code (@lukastaegert)
1561* [#2885](https://github.com/rollup/rollup/pull/2885): Do not produce undefined reexports when reexporting from entry points and refactor chunk linking (@lukastaegert)
1562
1563## 1.12.5
1564*2019-05-30*
1565
1566### Pull Requests
1567* [#2884](https://github.com/rollup/rollup/pull/2884): Update pluginutils for new micormatch and reduced bundle size (@lukastaegert)
1568
1569## 1.12.4
1570*2019-05-27*
1571
1572### Bug Fixes
1573* Show correct error stack trace for errors throw in "load" hooks (#2871)
1574
1575### Pull Requests
1576* [#2875](https://github.com/rollup/rollup/pull/2875): Mention subfolders in docs (@lukastaegert)
1577* [#2871](https://github.com/rollup/rollup/pull/2871): Reserve error stack information (@LongTengDao)
1578
1579## 1.12.3
1580*2019-05-19*
1581
1582### Bug Fixes
1583* Prevent duplicate imports when exports are reexported as default exports (#2866)
1584
1585### Pull Requests
1586* [#2755](https://github.com/rollup/rollup/pull/2755): Enable TypeScript strictNullChecks (@edsrzf)
1587* [#2866](https://github.com/rollup/rollup/pull/2866): Properly deduplicate reexported default exports (@lukastaegert)
1588
1589## 1.12.2
1590*2019-05-17*
1591
1592### Bug Fixes
1593* Do not fail when using clearScreen:false in watchMode (#2858)
1594* Properly resolve star reexports when preserving modules (#2860)
1595
1596### Pull Requests
1597* [#2858](https://github.com/rollup/rollup/pull/2858): Declare processConfigsErr before use (@humphd)
1598* [#2860](https://github.com/rollup/rollup/pull/2860): Keep nested exports with preserveModules (@TomCaserta)
1599* [#2864](https://github.com/rollup/rollup/pull/2864): Cache transitive reexport detection (@lukastaegert)
1600
1601## 1.12.1
1602*2019-05-16*
1603
1604### Bug Fixes
1605* Extend file name sanitation to also replace "?" and "*" e.g. when preserving modules with the updated commonjs plugin (#2860)
1606* Do not ignore module transformer that return an empty string (#2861)
1607
1608### Pull Requests
1609* [#2860](https://github.com/rollup/rollup/pull/2860): Update to latest plugins and extend file name sanitation (@lukastaegert)
1610* [#2861](https://github.com/rollup/rollup/pull/2861): Allow transformers to return an empty string (@lukastaegert)
1611
1612## 1.12.0
1613*2019-05-15*
1614
1615### Features
1616* Add `treeshake.moduleSideEffects` option to allow removing empty imports without a side-effect check (#2844)
1617* Extend plugin API to allow marking modules as side-effect-free (#2844)
1618* Extend `this.resolve` plugin context function with an option to skip the `resolveId` hook of the calling plugin (#2844)
1619* Add `isEntry` flag to `this.getModuleInfo` plugin context function (#2844)
1620* Distribute Rollup as optimized ES2015 code (#2851)
1621
1622### Pull Requests
1623* [#2844](https://github.com/rollup/rollup/pull/2844): Add options and hooks to control module side effects (@lukastaegert)
1624* [#2851](https://github.com/rollup/rollup/pull/2851): Switch to ES2015 output (@lukastaegert)
1625
1626## 1.11.3
1627*2019-05-05*
1628
1629### Bug Fixes
1630* Quote es3 keywords in namespace objects (#2825)
1631
1632### Pull Requests
1633* [#2825](https://github.com/rollup/rollup/pull/2825): Add es3 support for namespace object import (@sormy)
1634
1635## 1.11.2
1636*2019-05-04*
1637
1638### Bug Fixes
1639* Prevent a crash when handling circular namespace exports (#2836)
1640
1641### Pull Requests
1642* [#2836](https://github.com/rollup/rollup/pull/2836): Make sure circular `export * from X` does not stack overflow (@Swatinem)
1643
1644## 1.11.1
1645*2019-05-04*
1646
1647### Bug Fixes
1648* Fix an issue where rendered exports were reported as "removed" in the bundle information (#2835)
1649
1650### Pull Requests
1651* [#2835](https://github.com/rollup/rollup/pull/2835): Fix `removedExports` to correctly track the exported item (@Swatinem)
1652
1653## 1.11.0
1654*2019-05-03*
1655
1656### Features
1657* Add `emitChunk` plugin context function to emit additional entry chunks that can be referenced from the code (#2809)
1658* Allow `manualChunks` to be a function (#2831)
1659* Omit `.js` extensions in AMD imports to make sure an AMD `baseUrl` would work (#2809)
1660* Automatically use the name of the imported module as a base for dynamically imported chunks (#2809)
1661* Add `resolveFileUrl` plugin hook to replace `resolveAssetUrl` and handle emitted chunks as well (#2809)
1662* Add `resolve` plugin hook to replace `resolveId` and `isExternal` that returns an object (#2829)
1663* Allow `resolveDynamicImport` to return an `{id, external}` object to also resolve unresolvable dynamic imports to a module (#2829)
1664
1665### Bug Fixes
1666* Do not create invalid code if a dynamic import contains nothing but reexports (#2809)
1667* Do not fail if modules that define a manual chunk depend on each other (#2809)
1668* Do not fail if a module that defines a manual chunk is the dependency of a module defining a different manual chunk (#2809)
1669* No longer fail for unnamed duplicate entry points but combine them (#2809)
1670* Always return `string | null` from `this.resolveId` even if some `resolveId` hooks return objects (#2829)
1671* Show proper warnings when `resolveDynamicImport` resolves to a non-external module that does not exist (#2829)
1672
1673### Pull Requests
1674* [#2809](https://github.com/rollup/rollup/pull/2809): Add hook for dynamic entry chunk emission (@lukastaegert)
1675* [#2821](https://github.com/rollup/rollup/pull/2821): Fix syntax error in documentation (@FFxSquall)
1676* [#2829](https://github.com/rollup/rollup/pull/2829): Improve id resolution (@lukastaegert)
1677* [#2831](https://github.com/rollup/rollup/pull/2831): Allow manualChunks to be a function (@lukastaegert)
1678* [#2832](https://github.com/rollup/rollup/pull/2832): Improve `generateBundle` documentation (@lukastaegert)
1679* [#2833](https://github.com/rollup/rollup/pull/2833): Update dependencies (@lukastaegert)
1680
1681## 1.10.1
1682*2019-04-19*
1683
1684### Bug Fixes
1685* Invalid options.format values will now trigger a helpful error (#2813)
1686
1687### Pull Requests
1688* [#2812](https://github.com/rollup/rollup/pull/2812): Minor documentation update (@dnalborczyk)
1689* [#2813](https://github.com/rollup/rollup/pull/2813): Catch invalid options.format values (@marijnh)
1690* [#2816](https://github.com/rollup/rollup/pull/2816): Update all dependencies to fix security issues (@lukastaegert)
1691
1692## 1.10.0
1693*2019-04-11*
1694
1695### Features
1696* Improve generated code to polyfill `import.meta.url` (#2785)
1697* Add plugin hook to configure handling of `import.meta` (#2785)
1698* Improve generated code when accessing URLs of emitted assets (#2796)
1699* Add plugin hook to configure the generated code when accessing URLs of emitted assets (#2796)
1700
1701### Bug Fixes
1702* No longer resolve assets to their parent URL in some cases (#2796)
1703
1704### Pull Requests
1705* [#2785](https://github.com/rollup/rollup/pull/2785): Refactor handling of import.meta.url and add option to configure behaviour (@lukastaegert)
1706* [#2796](https://github.com/rollup/rollup/pull/2796): Improve and fix asset emission (@lukastaegert)
1707
1708## 1.9.3
1709*2019-04-10*
1710
1711### Bug Fixes
1712* Simplify return expressions that are evaluated before the surrounding function is bound (#2803)
1713
1714### Pull Requests
1715* [#2803](https://github.com/rollup/rollup/pull/2803): Handle out-of-order binding of identifiers to improve tree-shaking (@lukastaegert)
1716
1717## 1.9.2
1718*2019-04-10*
1719
1720### Bug Fixes
1721* Allowing replacing `output.file` with `output.dir` in the `outputOptions` hook (#2802)
1722
1723### Pull Requests
1724* [#2802](https://github.com/rollup/rollup/pull/2802): Observe modified output options in bundle.write (@lukastaegert)
1725
1726## 1.9.1
1727*2019-04-10*
1728
1729### Bug Fixes
1730* Make sure inline comments in dynamic imports are preserved (#2797)
1731
1732### Pull Requests
1733* [#2797](https://github.com/rollup/rollup/pull/2797): Emit inline comments inside dynamic import (@manucorporat)
1734
1735## 1.9.0
1736*2019-04-05*
1737
1738### Features
1739* Add built-in support for bigint (#2789)
1740
1741### Pull Requests
1742* [#2789](https://github.com/rollup/rollup/pull/2789): Ship with bigint support built-in (@danielgindi)
1743* [#2791](https://github.com/rollup/rollup/pull/2791): Use shared extractAssignedNames from rollup-pluginutils (@lukastaegert)
1744* [#2792](https://github.com/rollup/rollup/pull/2792): Test that rollup-plugin-commonjs works with preserveModules (@lukastaegert)
1745
1746## 1.8.0
1747*2019-04-02*
1748
1749### Features
1750* Support `module` as alias for `esm` and `commonjs` for `cjs` to match Node (#2783)
1751
1752### Pull Requests
1753* [#2782](https://github.com/rollup/rollup/pull/2782): Inline interopDefault in config loading (@guybedford)
1754* [#2783](https://github.com/rollup/rollup/pull/2783): Support Node-style format aliases (@guybedford)
1755
1756## 1.7.4
1757*2019-03-28*
1758
1759### Bug Fixes
1760* Improve TypeScript type of the treeshaking options (#2779)
1761
1762### Pull Requests
1763* [#2779](https://github.com/rollup/rollup/pull/2779): Make all properties in TreeshakingOptions optional (@ndelangen)
1764
1765## 1.7.3
1766*2019-03-24*
1767
1768### Bug Fixes
1769* Use getters when re-exporting live-bindings (#2765)
1770
1771### Pull Requests
1772* [#2765](https://github.com/rollup/rollup/pull/2765): Support exporting live-bindings from other chunks or external dependencies (@lukastaegert)
1773
1774## 1.7.2
1775*2019-03-24*
1776
1777### Bug Fixes
1778* Make sure relative external ids are resolved correctly (#2774)
1779
1780### Pull Requests
1781* [#2774](https://github.com/rollup/rollup/pull/2774): Resolve relative external ids (@lukastaegert)
1782
1783## 1.7.1
1784*2019-03-24*
1785
1786### Bug Fixes
1787* Prevent invalid code when exporting several hundred identifiers from a chunk (#2768)
1788* Do not wrongly deconflict labels (#2776)
1789
1790### Pull Requests
1791* [#2768](https://github.com/rollup/rollup/pull/2768): Sanitize shortened internal export names (@lukastaegert)
1792* [#2769](https://github.com/rollup/rollup/pull/2769): Update dependencies and fix security issue (@lukastaegert)
1793* [#2776](https://github.com/rollup/rollup/pull/2776): Do not treat break labels as identifiers (@lukastaegert)
1794
1795## 1.7.0
1796*2019-03-20*
1797
1798### Features
1799* Sort chunk exports by name for greater consistency (#2757)
1800
1801### Bug Fixes
1802* Fix a situation where tree-shakeable code would not be removed in an indeterminate manner (#2757)
1803
1804### Pull Requests
1805* [#2757](https://github.com/rollup/rollup/pull/2757): Sort modules before binding, sort exports (@lukastaegert)
1806
1807## 1.6.1
1808*2019-03-20*
1809
1810### Bug Fixes
1811* Avoid name clashes of unused default exports when tree-shaking is false (#2758)
1812* Do not crash when generating SystemJS bundles containing array patterns with member expressions (#2760)
1813
1814### Pull Requests
1815* [#2758](https://github.com/rollup/rollup/pull/2758): Make sure unused default exports are deconflicted when tree-shaking is false (@lukastaegert)
1816* [#2760](https://github.com/rollup/rollup/pull/2760): Handle member expressions in array patterns (@lukastaegert)
1817
1818## 1.6.0
1819*2019-03-08*
1820
1821### Features
1822* Add plugin hook to modify output options (#2736)
1823
1824### Pull Requests
1825* [#2736](https://github.com/rollup/rollup/pull/2736): Add hook for modifying OutputOptions (@Comandeer)
1826
1827## 1.5.0
1828*2019-03-07*
1829
1830### Features
1831* Allow resolving to a different id while marking it as external at the same time (#2734)
1832
1833### Pull Requests
1834* [#2734](https://github.com/rollup/rollup/pull/2734): Allow resolveId to return an object (@lukastaegert)
1835
1836## 1.4.2
1837*2019-03-07*
1838
1839### Bug Fixes
1840* Respect variable identity of exports when hashing (#2741)
1841* Resolve a situations where a variable was imported twice with the same name (#2737)
1842
1843### Pull Requests
1844* [#2741](https://github.com/rollup/rollup/pull/2741): Fix hashing when different variable are exported using the same name (@lukastaegert)
1845* [#2737](https://github.com/rollup/rollup/pull/2737): Fix duplicate imports with conflicting names (@lukastaegert)
1846
1847## 1.4.1
1848*2019-03-04*
1849
1850### Bug Fixes
1851* Do not treat the import target "" as external by default (#2733)
1852
1853### Pull Requests
1854* [#2733](https://github.com/rollup/rollup/pull/2733): Do not treat the import target "" as external by default (@LongTengDao)
1855
1856## 1.4.0
1857*2019-03-01*
1858
1859### Features
1860* Add option to change the name of the dynamic import function to allow polyfilling it (#2723)
1861
1862### Pull Requests
1863* [#2723](https://github.com/rollup/rollup/pull/2723): Add dynamicImportFunction option (@keithamus)
1864
1865## 1.3.3
1866*2019-03-01*
1867
1868### Bug Fixes
1869* Fix performance regression when handling long chains of calls to property methods (#2732)
1870
1871### Pull Requests
1872* [#2730](https://github.com/rollup/rollup/pull/2730): Order types, interfaces, classes, and object members (@lukastaegert)
1873* [#2732](https://github.com/rollup/rollup/pull/2732): Take chunk export mode into account when reexporting default (@lukastaegert)
1874
1875## 1.3.2
1876*2019-02-27*
1877
1878### Bug Fixes
1879* Allow ids of default exported classes to be exported separately (#2728)
1880
1881### Pull Requests
1882* [#2728](https://github.com/rollup/rollup/pull/2728): Update dependencies (@lukastaegert)
1883
1884## 1.3.1
1885*2019-02-27*
1886
1887### Bug Fixes
1888* Correctly reexport the default export from entry chunks (#2727)
1889
1890### Pull Requests
1891* [#2727](https://github.com/rollup/rollup/pull/2727): Take chunk export mode into account when reexporting default (@lukastaegert)
1892
1893## 1.3.0
1894*2019-02-26*
1895
1896### Features
1897* Treeshake call expressions prefixed with UglifyJS style `@__PURE__` annotations (#2429)
1898
1899### Pull Requests
1900* [#2429](https://github.com/rollup/rollup/pull/2429): Add support for /*#__PURE__*/ comments (@conartist6 and @lukastaegert)
1901
1902## 1.2.5
1903*2019-02-26*
1904
1905### Bug Fixes
1906* Store external ids reported by plugins in watch mode (#2718)
1907
1908### Pull Requests
1909* [#2718](https://github.com/rollup/rollup/pull/2718): Incremental external (@andreas-karlsson)
1910
1911## 1.2.4
1912*2019-02-26*
1913
1914### Bug Fixes
1915* Fix an issue where a variable was imported twice under the same name (#2715)
1916
1917### Pull Requests
1918* [#2715](https://github.com/rollup/rollup/pull/2715): Deduplicate imports referencing default exports and their original variables (@lukastaegert)
1919
1920## 1.2.3
1921*2019-02-23*
1922
1923### Bug Fixes
1924* Use correct path when rendering dynamic imports where the entry module is empty (#2714)
1925
1926### Pull Requests
1927* [#2714](https://github.com/rollup/rollup/pull/2714): Properly render dynamic imports when imported module is empty (@lukastaegert)
1928
1929## 1.2.2
1930*2019-02-19*
1931
1932### Bug Fixes
1933* Fix wrong external imports when using the `paths` options only for some outputs (#2706)
1934
1935### Pull Requests
1936* [#2706](https://github.com/rollup/rollup/pull/2706): Always recreate paths for external modules (@lukastaegert)
1937
1938## 1.2.1
1939*2019-02-17*
1940
1941### Bug Fixes
1942* Fix ESM version of Rollup (#2705)
1943
1944### Pull Requests
1945* [#2705](https://github.com/rollup/rollup/pull/2705): Fix ESM version of Rollup (@lukastaegert)
1946
1947## 1.2.0
1948*2019-02-17*
1949
1950### Features
1951* Fewer renamed variables due to a completely reimplemented deconflicting logic (#2689)
1952
1953### Bug Fixes
1954* Respect rendered and tree-shaken exports when determining chunk hashes (#2695)
1955* Fix an error when dynamic imports end up in the same chunk as one of their importees (#2677)
1956* Do not generate invalid code when expressions containing IIFEs are simplified (#2696)
1957* Do not throw an error when more than ten bundles are watched (#2700)
1958* Treat re-exported globals in a spec-compliant way (#2691)
1959* Fix issues related to wrongly renamed variables (#2689)
1960* Do not throw an error if config files contain non-default exports (#2673)
1961* Improve type of `RollupOutput.output` to guarantee at least one chunk (#2679)
1962
1963### Pull Requests
1964* [#2673](https://github.com/rollup/rollup/pull/2673): Allow config files to have non-default exports (@swansontec)
1965* [#2677](https://github.com/rollup/rollup/pull/2677): Prevent final resolution and facade creation for inlined dynamic imports (@Rich-Harris and @lukastaegert)
1966* [#2679](https://github.com/rollup/rollup/pull/2679): Improve type of `RollupOutput.output` (@MattiasBuelens)
1967* [#2689](https://github.com/rollup/rollup/pull/2689): Reimplement variable deconflicting logic (@lukastaegert)
1968* [#2691](https://github.com/rollup/rollup/pull/2691): Fix CI issues and update acorn dependency (@lukastaegert)
1969* [#2693](https://github.com/rollup/rollup/pull/2693): Fix typo in export-globals test (@MattiasBuelens)
1970* [#2695](https://github.com/rollup/rollup/pull/2695): Respect rendered exports when generating chunk hashes (@lukastaegert)
1971* [#2696](https://github.com/rollup/rollup/pull/2696): Correctly render function expression inside simplified expression statements (@lukastaegert)
1972* [#2700](https://github.com/rollup/rollup/pull/2700): Add a fix for MaxListenersExceededWarning (@luwes)
1973* [#2703](https://github.com/rollup/rollup/pull/2703): Update rollup-pluginutils (@lukastaegert)
1974
1975## 1.1.2
1976*2019-01-21*
1977
1978### Bug Fixes
1979* Tree-shaken dynamic imports no longer leave behind `undefined` entries in the bundle information (#2663)
1980* Dynamic imports in dynamically imported files could lead to crashes and would not always create new chunks (#2664)
1981
1982### Pull Requests
1983* [#2663](https://github.com/rollup/rollup/pull/2663): Do not include tree-shaken dynamic imports in bundle information (@lukastaegert)
1984* [#2664](https://github.com/rollup/rollup/pull/2664): Properly handle dynamic imports declared in dynamically imported files (@everdimension)
1985
1986## 1.1.1
1987*2019-01-19*
1988
1989### Bug Fixes
1990* Make sure object prototype methods are not considered to be falsy when tree-shaking (#2652)
1991
1992### Pull Requests
1993* [#2652](https://github.com/rollup/rollup/pull/2652): Make sure object prototype methods are not considered to be falsy (@lukastaegert)
1994* [#2654](https://github.com/rollup/rollup/pull/2654): Use correct signature for `this.setAssetSource` in docs (@everdimension)
1995* [#2656](https://github.com/rollup/rollup/pull/2656): Swap descriptions for `[extname]` and `[ext]` in docs (@tivac)
1996
1997## 1.1.0
1998*2019-01-09*
1999
2000### Features
2001* Make `this.meta` available from the `options` plugin hook (#2642)
2002* Add a new `writeBundle` plugin hook that is called *after* all files have been written (#2643)
2003
2004### Bug Fixes
2005* Make sure the `acorn` import of the bundled non-ESM acorn plugins is correctly translated to ESM (#2636)
2006* Make sure input options are actually passed to the `buildStart` hook (#2642)
2007
2008### Pull Requests
2009* [#2636](https://github.com/rollup/rollup/pull/2636): Improve how acorn is imported, update dependencies (@lukastaegert)
2010* [#2642](https://github.com/rollup/rollup/pull/2642): Make this.meta available in options hook, pass input options to buildStart (@lukastaegert)
2011* [#2643](https://github.com/rollup/rollup/pull/2643): Implement writeBundle hook (@lukastaegert)
2012
2013## 1.0.2
2014*2019-01-05*
2015
2016### Bug Fixes
2017* Make sure the transform hook is always reevaluated when a file watched by the hook changes (#2633)
2018* Fix a crash when generating hashes for tree-shaken dynamic imports (#2638)
2019* Fix a crash and some inconsistencies when using the acorn-bigint plugin (#2640)
2020
2021### Pull Requests
2022* [#2633](https://github.com/rollup/rollup/pull/2633): Document `this.addWatchFile` and make sure it also declares transform dependencies (@lukastaegert)
2023* [#2635](https://github.com/rollup/rollup/pull/2635): Make sure `code` is optional in warning type (@lukastaegert)
2024* [#2638](https://github.com/rollup/rollup/pull/2638): Do not fail when generating hashes for tree-shaken dynamic imports (@lukastaegert)
2025* [#2640](https://github.com/rollup/rollup/pull/2640): Always treat bigints as unknown (@lukastaegert)
2026* [#2641](https://github.com/rollup/rollup/pull/2641): Make sure all CLI options are listed in the summary (@lukastaegert)
2027
2028## 1.0.1
2029*2019-01-03*
2030
2031### Bug Fixes
2032* Properly handle reexporting an external default export for non-ESM targets when using named exports mode (#2620)
2033* Do not (wrongly) re-declare input options in the merged `RollupOptions` type (#2622)
2034
2035### Pull Requests
2036* [#2620](https://github.com/rollup/rollup/pull/2620): Fixed issue with reexporting default as default with `{exports: named, interop: true}` options (@Andarist)
2037* [#2622](https://github.com/rollup/rollup/pull/2622): Simplify RollupOptions (@Kinrany)
2038* [#2627](https://github.com/rollup/rollup/pull/2627): Show how to skip imports for optional plugins (@chris-morgan)
2039
2040## 1.0.0
2041*2018-12-28*
2042
2043### Breaking Changes
2044* Several (mostly deprecated) options have been removed or renamed (#2293, #2409):
2045 - banner -> output.banner
2046 - dest -> output.file
2047 - entry -> input
2048 - experimentalCodeSplitting -> now always active
2049 - experimentalDynamicImport -> now always active
2050 - experimentalPreserveModules -> preserveModules
2051 - exports -> output.exports
2052 - extend -> output.extend
2053 - footer -> output.footer
2054 - format -> output.format
2055 - freeze -> output.freeze
2056 - globals -> output.globals
2057 - indent -> output.indent
2058 - interop -> output.interop
2059 - intro -> output.intro
2060 - load -> use plugin API
2061 - moduleName -> output.name
2062 - name -> output.name
2063 - noConflict -> output.noConflict
2064 - output.moduleId -> output.amd.id
2065 - outro -> output.outro
2066 - paths -> output.paths
2067 - preferConst -> output.preferConst
2068 - pureExternalModules -> treeshake.pureExternalModules
2069 - resolveExternal -> use plugin API
2070 - resolveId -> use plugin API
2071 - sourcemap -> output.sourcemap
2072 - sourceMap -> output.sourcemap
2073 - sourceMapFile -> output.sourcemapFile
2074 - strict -> output.strict
2075 - targets -> use output as an array
2076 - transform -> use plugin API
2077 - useStrict -> output.strict
2078* In general, output options can no longer be used as input options (#2409)
2079* `bundle.generate` and `bundle.write` now return a new format (#2293)
2080* Several plugin hooks have become deprecated and will display warnings when used (#2409):
2081 - transformBundle
2082 - transformChunk
2083 - ongenerate
2084 - onwrite
2085* Plugin transform dependencies are deprecated in favour of using the `this.addWatchFile` plugin context function (#2409)
2086* Accessing `this.watcher` in plugin hooks is deprecated in favour of the `watchChange` plugin hook and the `this.addWatchFile` plugin context function (#2409)
2087* Using dynamic import statements will by default create a new chunk unless `inlineDynamicImports` is used (#2293)
2088* Rollup now uses acorn@6 which means that acorn plugins must be compatible with this version; acorn is now external for non-browser builds to make plugins work (#2293)
2089
2090### Features
2091* The `--dir` ClI option can now be aliased as `-d` (#2293)
2092* The `--input` option now supports named entry points via `=` (#2293)
2093
2094### Bug Fixes
2095* Both the `--input` option as well as the default CLI option now support named inputs (#2293)
2096
2097### Pull Requests
2098* [#2293](https://github.com/rollup/rollup/pull/2293): Unify code paths for 1.0 relase and update documentation (@guybedford and @lukastaegert)
2099* [#2409](https://github.com/rollup/rollup/pull/2409): Remove old deprecated features and add new deprecation warnings (@guybedford)
2100* [#2486](https://github.com/rollup/rollup/pull/2486): Upgrade to acorn 6 (@marijnh)
2101* [#2611](https://github.com/rollup/rollup/pull/2611): Fix hook's name in test description (@Andarist)
2102* [#2612](https://github.com/rollup/rollup/pull/2612): Fix a self-contradicting comment in the docs (@LongTengDao)
2103
2104## 0.68.2
2105*2018-12-23*
2106
2107### Bug Fixes
2108* Do not assume hoisted variables to have been initialized (#2607)
2109
2110### Pull Requests
2111* [#2607](https://github.com/rollup/rollup/pull/2607): Fix an issues where hoisted variables were assumed to have been initialized (@lye)
2112
2113## 0.68.1
2114*2018-12-19*
2115
2116### Bug Fixes
2117* Fix an issue with UMD wrappers where a variable is used without being defined (#2600)
2118
2119### Pull Requests
2120* [#2600](https://github.com/rollup/rollup/pull/2600): Fix UMD and IIFE wrapper issues and add comprehensive functional wrapper tests (@lukastaegert)
2121
2122## 0.68.0
2123*2018-12-16*
2124
2125### Breaking Changes
2126* `optimizeChunks` is renamed to `experimentalOptimizeChunks` to reflect this feature is not production-ready yet (#2575)
2127
2128### Features
2129* Plugins can iterate all module ids via `this.moduleIds` (#2565)
2130* Plugins can get graph information about a module via `this.getModuleInfo(id)` (#2565)
2131* Plugins and JS API users get more information about the generated chunks: `dynamicImports`, `facadeModuleId`, `isDynamicEntry`, `name` (#2575)
2132* Tree-shaken dynamic imports will no longer create chunks or influence chunking in any way (#2575)
2133* Dynamic imports will no longer follow the `entryFileNames` but the `chunkFileNames` property reflecting those are solely internally used (#2575)
2134* If there are chunk naming conflicts, entry chunks will always take precedence (#2575)
2135* If an entry facade is created, only the facade chunk is marked as `isEntry` (#2575)
2136* Dynamic chunks will only be marked as `isEntry` if they are actually entry chunks as well; thus there is now a 1-to-1 correspondence between modules listed in `input` and chunks marked as `isEntry` (#2575)
2137* Chunks no longer contain imports for variables that are tree-shaken in the chunk but used in other chunks (#2584)
2138* Chunks will always import re-exported variables directly from the chunk where they are originally exported from (#2584)
2139* Null characters will be pruned from chunk ids to allow for virtually created chunks and make `rollup-plugin-multi-entry` compatible with code-splitting and thus the upcoming 1.0 version (#2590)
2140* Simplify the UMD wrapper code as much as possible, especially if there are no exports (#2594)
2141* The UMD wrapper will now work in strict mode by checking for `self` before `this` when determining the global variable (#2594)
2142
2143### Bug Fixes
2144* If a facade is created for a dynamic entry point, this facade will be imported instead of the facaded chunk (#2575)
2145* Manual chunks that include multiple entry points will have proper facades created for all entry points if necessary (#2575)
2146* If missing exports are shimmed, the shim variable will not be global but created on a per-module basis and is deconflicted with variables having the same name (#2584)
2147* Missing export shims work properly in SystemJS (#2584)
2148* `preserveModules` now handles dynamic namespace imports (#2584)
2149* Fix chunk execution order in certain scenarios (#2584)
2150* Exports and assignments using destructuring syntax will properly update the exported variables when generating SystemJS output (#2587)
2151* Hashes in chunk names will now also take dynamic imports into account (#2596)
2152
2153### Pull Requests
2154* [#2565](https://github.com/rollup/rollup/pull/2565): Provide module graph information on the plugin context (@samccone)
2155* [#2575](https://github.com/rollup/rollup/pull/2575): Extend bundle information, tree-shake dynamic imports, fix dynamic import facade creation, support manual chunks with multiple entry points, make `optimizeChunks` experimental (@lukastaegert)
2156* [#2577](https://github.com/rollup/rollup/pull/2577): Update dependencies (@lukastaegert)
2157* [#2584](https://github.com/rollup/rollup/pull/2584): Prune tree-shaken chunk imports, fix missing export shimming, support dynamic namespaces when preserving modules, improve chunk execution order (@lukastaegert)
2158* [#2587](https://github.com/rollup/rollup/pull/2587): Support exports using destructuring declarations and assignments in SystemJS (@lukastaegert)
2159* [#2590](https://github.com/rollup/rollup/pull/2590): Make sure chunk ids do not contain invalid characters to allow for chunks to correspond to virtual modules (@lukastaegert)
2160* [#2594](https://github.com/rollup/rollup/pull/2594): Simplify UMD wrapper code and make sure it works in strict mode (@lukastaegert)
2161* [#2596](https://github.com/rollup/rollup/pull/2596): Take both static and dynamic dependencies into account when calculating hashes (@lukastaegert)
2162
2163## 0.67.4
2164*2018-12-03*
2165
2166### Bug Fixes
2167* Prevent corrupt source maps for files with very long lines (#2571)
2168
2169### Pull Requests
2170* [#2571](https://github.com/rollup/rollup/pull/2571): Fix an issue with long lines in sourcemaps (@mislav)
2171
2172## 0.67.3
2173*2018-11-17*
2174
2175### Bug Fixes
2176* Make sure the ESM browser build is actually published to npm (#2560)
2177* Throw proper error when using `inlineDynamicImports` with `experimentalPreserveModules` (#2560)
2178
2179### Pull Requests
2180* [#2552](https://github.com/rollup/rollup/pull/2552): Properly include ESM browser build in package (@lukastaegert)
2181* [#2560](https://github.com/rollup/rollup/pull/2560): Show proper error when using `inlineDynamicImports` with `experimentalPreserveModules` (@clarkdo)
2182
2183## 0.67.2
2184*2018-11-17*
2185
2186### Bug Fixes
2187* Prevent crash when not returning sourcemaps from `renderChunk` plugin hook (#2558)
2188
2189### Pull Requests
2190* [#2558](https://github.com/rollup/rollup/pull/2558): Prevent crash when not returning sourcemaps from `renderChunk` (@kyle1320)
2191
2192## 0.67.1
2193*2018-11-11*
2194
2195### Bug Fixes
2196* Deconflict CLI entry points with same name but on different paths if no explicit naming is used (#2548)
2197
2198### Pull Requests
2199* [#2548](https://github.com/rollup/rollup/pull/2548): Deconflict CLI entry points with same name but on different paths if no explicit naming is used (@lukastaegert)
2200
2201## 0.67.0
2202*2018-11-04*
2203
2204### Breaking Changes
2205none
2206
2207### Features
2208* Do not resolve external dynamic imports via plugins to match the logic for static external imports again (#2505)
2209* Support virtual modules created by plugins when preserving modules (#2511)
2210* Add new `output.sourcemapExcludeSources` option to exclude the actual sources from sourcemaps (#2531)
2211
2212### Bug Fixes
2213* Fix TypeScript type for sourcemaps (#2507)
2214* Fix order of external and inter-chunk imports to match the proper execution order (#2508)
2215* Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
2216* Prevent memory leak when using the bundle as cache (#2522)
2217* Fix mis-placed semicolons for certain SystemJS exports (#2529)
2218
2219### Pull Requests
2220* [#2505](https://github.com/rollup/rollup/pull/2505): Do not resolve external dynamic imports via plugins (@lukastaegert)
2221* [#2507](https://github.com/rollup/rollup/pull/2507): Fix public sourcemap type (@aMarCruz)
2222* [#2508](https://github.com/rollup/rollup/pull/2508): Improve execution order of chunks and externals (@lukastaegert)
2223* [#2510](https://github.com/rollup/rollup/pull/2510): Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (@devsnek)
2224* [#2511](https://github.com/rollup/rollup/pull/2511): Create chunks for virtual modules when preserving modules (@lukastaegert)
2225* [#2522](https://github.com/rollup/rollup/pull/2522): Prevent memory leak when using the bundle as cache (@kyle1320)
2226* [#2529](https://github.com/rollup/rollup/pull/2529): Fix mis-placed semicolons for certain SystemJS exports (@kyle1320)
2227* [#2531](https://github.com/rollup/rollup/pull/2531): add `sourcemapExcludeSources` option to exclude the source content from sourcemaps (@kitsonk)
2228
2229## 0.66.6
2230*2018-10-10*
2231* Properly deconflict function and class declaration ids of reassigned default exports ([#2502](https://github.com/rollup/rollup/pull/2502))
2232
2233## 0.66.5
2234*2018-10-09*
2235* Remove cache from memory once no longer needed ([#2496](https://github.com/rollup/rollup/pull/2496))
2236* Provide better error message when reexporting external namespace reexports ([#2499](https://github.com/rollup/rollup/pull/2499))
2237
2238## 0.66.4
2239*2018-10-04*
2240* Fix links in warnings and errors ([#2471](https://github.com/rollup/rollup/pull/2471))
2241
2242## 0.66.3
2243*2018-10-03*
2244* Detect side-effects in string.replace function arguments ([#2476](https://github.com/rollup/rollup/pull/2476))
2245* Make sure chunk ids are assigned before creating output bundle ([#2483](https://github.com/rollup/rollup/pull/2483))
2246* Use proper plugin name in error ([#2470](https://github.com/rollup/rollup/pull/2470))
2247* Update TypeScript version and fix type errors ([#2488](https://github.com/rollup/rollup/pull/2488))
2248
2249## 0.66.2
2250*2018-09-21*
2251* Add additional information to parse errors messages in JSON and other non-JS files ([#2466](https://github.com/rollup/rollup/pull/2466))
2252
2253## 0.66.1
2254*2018-09-19*
2255* Ignore falsy plugins ([#2464](https://github.com/rollup/rollup/pull/2464))
2256* Switch back to official TypeScript plugin ([#2465](https://github.com/rollup/rollup/pull/2465))
2257
2258## 0.66.0
2259*2018-09-16*
2260* Support ES2019 optional catch bindings ([#2455](https://github.com/rollup/rollup/pull/2455))
2261* Add option to transform paths within sourcemaps ([#2430](https://github.com/rollup/rollup/pull/2430))
2262* Add renderStart and renderEnd plugin hooks ([#2438](https://github.com/rollup/rollup/pull/2438))
2263* Expose ESM browser build and minify browser builds ([#2437](https://github.com/rollup/rollup/pull/2437)
2264* Associate hoisted variables in function bodys with function parameters ([#2456](https://github.com/rollup/rollup/pull/2456))
2265* Fix issue when deconflicting variables used as pattern defaults ([#2446](https://github.com/rollup/rollup/pull/2446))
2266* Properly deconflict default exported class and function expressions with ids ([#2458](https://github.com/rollup/rollup/pull/2458))
2267* Faster internal test builds ([#2457](https://github.com/rollup/rollup/pull/2457))
2268* Switch to rollup-plugin-typescript2 ([#2460](https://github.com/rollup/rollup/pull/2460))
2269* Fix internal "perf" script ([#2433](https://github.com/rollup/rollup/pull/2433))
2270* Test that errors are passed to the buildEnd hook ([#2450](https://github.com/rollup/rollup/pull/2450))
2271
2272## 0.65.2
2273*2018-09-05*
2274* Prevent watch mode memory leak ([#2441](https://github.com/rollup/rollup/pull/2441))
2275
2276## 0.65.1
2277*2018-09-05*
2278* Prevent globbing when using chokidar ([#2432](https://github.com/rollup/rollup/pull/2432))
2279
2280## 0.65.0
2281*2018-08-25*
2282* Refactor and unify plugin system ([#2382](https://github.com/rollup/rollup/pull/2382))
2283* Implement plugin cache API ([#2389](https://github.com/rollup/rollup/pull/2389))
2284* Add watchChange plugin hook to watch changed files, deprecate asset dependencies ([#2405](https://github.com/rollup/rollup/pull/2405))
2285* Refine asset handling ([#2369](https://github.com/rollup/rollup/pull/2369))
2286* Implement `renderChunk` hook to replace `transformChunk` and `transformBundle` hooks ([#2406](https://github.com/rollup/rollup/pull/2406))
2287* Add rollup version to plugin context ([#2394](https://github.com/rollup/rollup/pull/2394))
2288* Do not resume stdin in watch mode to fix it for Lerna users ([#2410](https://github.com/rollup/rollup/pull/2410))
2289* Allow `[format]` placeholder for id generation ([#2387](https://github.com/rollup/rollup/pull/2387))
2290* Always log error stacks even when a code frame is given ([#2417](https://github.com/rollup/rollup/pull/2417))
2291* Do not test module ids starting with `\0` as external ([#2400](https://github.com/rollup/rollup/pull/2400))
2292* Fix tracing of namespace variables ([#2408](https://github.com/rollup/rollup/pull/2408))
2293* Fix re-tracing of namespace variables ([#2420](https://github.com/rollup/rollup/pull/2420))
2294* Properly wrap comment annotations in SystemJS exports ([#2408](https://github.com/rollup/rollup/pull/2408))
2295* Fix renaming of destructured parameters ([#2419](https://github.com/rollup/rollup/pull/2419))
2296* Do not display version in watch mode when using `--silent` ([#2392](https://github.com/rollup/rollup/pull/2392))
2297* Make `cacheExpiry` an experimental option for now ([#2401](https://github.com/rollup/rollup/pull/2401))
2298* Lint test configs on commit ([#2402](https://github.com/rollup/rollup/pull/2402))
2299* Add code of conduct ([#2388](https://github.com/rollup/rollup/pull/2388))
2300* Move to CircleCI ([#2390](https://github.com/rollup/rollup/pull/2390))
2301* Update pull request template ([#2404](https://github.com/rollup/rollup/pull/2404))
2302
2303## 0.64.1
2304*2018-08-07*
2305* Do not render initializers of hoisted variables in dead branches ([#2384](https://github.com/rollup/rollup/pull/2384))
2306
2307## 0.64.0
2308*2018-08-07*
2309* Print memory consumption together with performance timings ([#2370](https://github.com/rollup/rollup/pull/2370))
2310* Enable plugins to mark imports as external by returning false for resolveId ([#2351](https://github.com/rollup/rollup/pull/2351))
2311* Always retain empty manual chunks ([#2362](https://github.com/rollup/rollup/pull/2362))
2312* Ensure CLI warnings are shown on errors and add error for external id collisions ([#2334](https://github.com/rollup/rollup/pull/2334))
2313* Remove unnecessary dependency, update dependencies, fix linting of test config ([#2376](https://github.com/rollup/rollup/pull/2376))
2314* Add targeted Github issue templates ([#2356](https://github.com/rollup/rollup/pull/2356))
2315
2316## 0.63.5
2317*2018-08-01*
2318* Ensure onwrite plugin hooks execute in sequence ([#2364](https://github.com/rollup/rollup/pull/2364))
2319* Always warn when no name is provided for a global module ([#2359](https://github.com/rollup/rollup/pull/2359))
2320* Add utility type for user created plugins ([#2355](https://github.com/rollup/rollup/pull/2355))
2321* Remove deprecated es6 format from types ([#2349](https://github.com/rollup/rollup/pull/2349))
2322* Mark inlineDynamicImports as optional in types ([#2348](https://github.com/rollup/rollup/pull/2348))
2323
2324## 0.63.4
2325*2018-07-20*
2326* Use turbocolor instead of chalk ([#2339](https://github.com/rollup/rollup/pull/2339))
2327
2328## 0.63.3
2329*2018-07-20*
2330* Handle expressions where "in" and "instanceof" are applied to primitive values ([#2344](https://github.com/rollup/rollup/pull/2344))
2331
2332## 0.63.2
2333*2018-07-18*
2334* Fix bind order in for-of loops ([#2338](https://github.com/rollup/rollup/pull/2338))
2335
2336## 0.63.1
2337*2018-07-18*
2338
2339## 0.63.0
2340*2018-07-17*
2341* Fix many tree-shaking related issues ([#2315](https://github.com/rollup/rollup/pull/2315))
2342* Add experimental support for top-level await ([#2235](https://github.com/rollup/rollup/pull/2235))
2343* Prevent duplicate version printout in watch mode ([#2325](https://github.com/rollup/rollup/pull/2325))
2344* Respect error frames provided by plugins ([#2309](https://github.com/rollup/rollup/pull/2309))
2345* Add `esm` format alias to types ([#2327](https://github.com/rollup/rollup/pull/2327))
2346* Further unify internal test setup ([#2329](https://github.com/rollup/rollup/pull/2329))
2347
2348## 0.62.0
2349*2018-06-27*
2350* Add option to automatically shim missing exports ([#2118](https://github.com/rollup/rollup/pull/2118))
2351* Inline dynamic imports that are also imported statically and only used in a single chunk ([#2295](https://github.com/rollup/rollup/pull/2295))
2352* Handle caching and invalidation of assets ([#2267](https://github.com/rollup/rollup/pull/2267))
2353* Fix plugin related types ([#2299](https://github.com/rollup/rollup/pull/2299))
2354
2355## 0.61.2
2356*2018-06-23*
2357* Improve watcher error handling, only rebuild invalidated outputs ([#2296](https://github.com/rollup/rollup/pull/2296))
2358* Update dependencies, make watcher more stable ([#2297](https://github.com/rollup/rollup/pull/2297))
2359
2360## 0.61.1
2361*2018-06-21*
2362* Do not try to deconflict "undefined" ([#2291](https://github.com/rollup/rollup/pull/2291))
2363* Properly track values for loop interator declarations and reassigned namespaces, add smoke test ([#2292](https://github.com/rollup/rollup/pull/2292))
2364
2365## 0.61.0
2366*2018-06-20*
2367* Declare file dependencies via transform plugin hooks ([#2259](https://github.com/rollup/rollup/pull/2259))
2368* Handle undefined values when evaluating conditionals ([#2264](https://github.com/rollup/rollup/pull/2264))
2369* Handle known undefined properties when evaluating conditionals ([#2265](https://github.com/rollup/rollup/pull/2265))
2370* Access watch events via the plugin context ([#2261](https://github.com/rollup/rollup/pull/2261))
2371* Add option to suppress `__esModule` flag in output ([#2287](https://github.com/rollup/rollup/pull/2287))
2372* Fix issue when re-declaring variables, track reassignments in more cases ([#2279](https://github.com/rollup/rollup/pull/2279))
2373* Add VSCode debug settings ([#2276](https://github.com/rollup/rollup/pull/2276))
2374
2375## 0.60.7
2376*2018-06-14*
2377* Fix typing issue ([#2269](https://github.com/rollup/rollup/pull/2269))
2378
2379## 0.60.6
2380*2018-06-14*
2381* Track mutations of included virtual arrays ([#2263](https://github.com/rollup/rollup/pull/2263))
2382* Update readme ([#2266](https://github.com/rollup/rollup/pull/2266))
2383
2384## 0.60.5
2385*2018-06-14*
2386* Track deep reassignments of global and exported variables and improve performance ([#2254](https://github.com/rollup/rollup/pull/2254))
2387
2388## 0.60.4
2389*2018-06-13*
2390* Properly handle initially uninitialized exports and exports of globals in SystemJS output ([#2258](https://github.com/rollup/rollup/pull/2258))
2391
2392## 0.60.3
2393*2018-06-13*
2394* Fix types to allow watching an array of outputs ([#2262](https://github.com/rollup/rollup/pull/2262))
2395
2396## 0.60.2
2397*2018-06-11*
2398* Permit setting an asset's source in `generateBundle` ([#2256](https://github.com/rollup/rollup/pull/2256))
2399* Add automatic linting ([#2242](https://github.com/rollup/rollup/pull/2242))
2400
2401## 0.60.1
2402*2018-06-07*
2403* Fix plugin regressions ([#2246](https://github.com/rollup/rollup/pull/2246))
2404* Avoid conflicts for large numbers of variables ([#2244](https://github.com/rollup/rollup/pull/2244))
2405
2406## 0.60.0
2407*2018-06-06*
2408* New plugin hooks: transformChunk, buildStart, buildEnd; extended plugin context with warn, error, resolveId, isExternal, emitAsset, setAssetSource and getAssetFileName available to any hook ([#2208](https://github.com/rollup/rollup/pull/2208))
2409* [BREAKING] Deprecate the `legacy` option and thus IE8 support ([#2141](https://github.com/rollup/rollup/pull/2141))
2410* Detect more known extensions and load .mjs without extension ([#2211](https://github.com/rollup/rollup/pull/2211))
2411* Add compact output mode ([#2151](https://github.com/rollup/rollup/pull/2151))
2412* Significantly improve sourcemap generation performance ([#2228](https://github.com/rollup/rollup/pull/2228))
2413* Enable naming SystemJS modules ([#2028](https://github.com/rollup/rollup/pull/2028))
2414* Do not use alternate screen if clearScreen is set in watch mode ([#2125](https://github.com/rollup/rollup/pull/2125))
2415* Allow object input form for code-splitting in watch mode ([#2217](https://github.com/rollup/rollup/pull/2217))
2416* Track reassignments of methods of exports from outside ([#2240](https://github.com/rollup/rollup/pull/2240))
2417* Preserve id of default exported functions and classes ([#2234](https://github.com/rollup/rollup/pull/2234))
2418* Add semicolons after default exports ([#2209](https://github.com/rollup/rollup/pull/2209))
2419* Fix build problems on Windows ([#2232](https://github.com/rollup/rollup/pull/2232))
2420* Display install size in readme ([#2196](https://github.com/rollup/rollup/pull/2196))
2421* Improve preserve modules test ([#2236](https://github.com/rollup/rollup/pull/2236))
2422
2423## 0.59.4
2424*2018-05-28*
2425* Fix performance regression when many return statements are used ([#2218](https://github.com/rollup/rollup/pull/2218))
2426
2427## 0.59.3
2428*2018-05-24*
2429* Fix reassignment tracking for constructor parameters ([#2214](https://github.com/rollup/rollup/pull/2214))
2430
2431## 0.59.2
2432*2018-05-21*
2433* Fix reassignment tracking in for-in loops ([#2205](https://github.com/rollup/rollup/pull/2205))
2434
2435## 0.59.1
2436*2018-05-16*
2437* Fix infinite recursion when determining literal values of circular structures ([#2193](https://github.com/rollup/rollup/pull/2193))
2438* Fix invalid code when simplifying expressions without spaces ([#2194](https://github.com/rollup/rollup/pull/2194))
2439
2440## 0.59.0
2441*2018-05-15*
2442* Tree-shake statically analysable dynamic conditionals ([#2167](https://github.com/rollup/rollup/pull/2167))
2443* Do not emit empty chunks when code-splitting or empty files when preserving modules ([#2128](https://github.com/rollup/rollup/pull/2128))
2444* Support `import.meta.url` ([#2164](https://github.com/rollup/rollup/pull/2164))
2445* Add `esm` format alias ([#2102](https://github.com/rollup/rollup/pull/2102))
2446* Use alphanumeric base64 characters when deconflicting variables ([#2188](https://github.com/rollup/rollup/pull/2188))
2447* Improve handling of external modules imported as both default and named imports ([#2136](https://github.com/rollup/rollup/pull/2136))
2448* Properly deconflict named imports from other chunks ([#2177](https://github.com/rollup/rollup/pull/2177))
2449* Fix an issue with namespaces containing reexports ([#2157](https://github.com/rollup/rollup/pull/2157))
2450* Fix an issue with with incorrectly mapped default exports when code-splitting CJS or AMD modules ([#2178](https://github.com/rollup/rollup/pull/2178))
2451* Fix an issue with wrong paths of relative external imports ([#2160](https://github.com/rollup/rollup/pull/2160))
2452* Fix an issue when using default exports and `interop: false` ([#2149](https://github.com/rollup/rollup/pull/2149))
2453* Fix in issue with invalid syntax in SystemJS output ([#2187](https://github.com/rollup/rollup/pull/2187))
2454* Fix an issue when tree-shaking call expressions and reassigned variables ([#2186](https://github.com/rollup/rollup/pull/2186))
2455* Fix file paths in source maps ([#2161](https://github.com/rollup/rollup/pull/2161))
2456* Fix wrong file name in error message ([#2137](https://github.com/rollup/rollup/pull/2137))
2457* Always use npm 5 on CI ([#2185](https://github.com/rollup/rollup/pull/2185))
2458
2459## 0.58.2
2460*2018-04-23*
2461* Fix rendering of certain statically resolvable if statements ([#2146](https://github.com/rollup/rollup/pull/2146))
2462
2463## 0.58.1
2464*2018-04-18*
2465* Fix comment detection ([#2129](https://github.com/rollup/rollup/pull/2129))
2466
2467## 0.58.0
2468*2018-04-16*
2469* Support individual chunk names with optional content hashes ([#2068](https://github.com/rollup/rollup/pull/2068))
2470* Support manually created chunks ([#2084](https://github.com/rollup/rollup/pull/2084))
2471* Automatically import deep dependencies when code splitting for better performance ([#2073](https://github.com/rollup/rollup/pull/2073))
2472* Automatically minify internal export/import names for esm and system output ([#2087](https://github.com/rollup/rollup/pull/2087))
2473* Add option to automatically merge small chunks ([#2090](https://github.com/rollup/rollup/pull/2090))
2474* Significantly improve tree-shaking performance ([#2119](https://github.com/rollup/rollup/pull/2119))
2475* Enable tree-shaking for logical expressions ([#2098](https://github.com/rollup/rollup/pull/2098))
2476* Rework external types and reduce type related dependencies ([#2108](https://github.com/rollup/rollup/pull/2108))
2477* Support parallel dependency resolution ([#2116](https://github.com/rollup/rollup/pull/2116))
2478* Improve deprecation handling ([#2076](https://github.com/rollup/rollup/pull/2076))
2479* Enable `--perf` timings in watch mode ([#2065](https://github.com/rollup/rollup/pull/2065))
2480* Improve performance timers ([#2111](https://github.com/rollup/rollup/pull/2111))
2481* Improve error handling for plugins ([#2100](https://github.com/rollup/rollup/pull/2100))
2482* Improve error when using `--dir` in a single file build ([#2123](https://github.com/rollup/rollup/pull/2123))
2483* Do not warn for external imports that are unused due to tree-shaking ([#2124](https://github.com/rollup/rollup/pull/2124))
2484* Update mixed export warning message ([#2107](https://github.com/rollup/rollup/pull/2107))
2485* Remove duplicate badges from readme ([#2083](https://github.com/rollup/rollup/pull/2083))
2486* Update readme examples ([#2086](https://github.com/rollup/rollup/pull/2086))
2487
2488## 0.57.1
2489*2018-03-17*
2490* Improve sourcemap generation performance ([#2062](https://github.com/rollup/rollup/pull/2062))
2491* Add reserved config option namespace and improve CLI interface ([#2063](https://github.com/rollup/rollup/pull/2063))
2492* Fix issue with default exported function and class expressions ([#2059](https://github.com/rollup/rollup/pull/2059))
2493* Replace `forEach` with faster `for` loops in some places ([#2064](https://github.com/rollup/rollup/pull/2064))
2494
2495## 0.57.0
2496*2018-03-15*
2497* Add option to preserve the module structure instead of bundling ([#1922](https://github.com/rollup/rollup/pull/1922))
2498* Enable watch mode when code-splitting ([#2035](https://github.com/rollup/rollup/pull/2035))
2499* Optionally pass CLI commands to config file ([#1926](https://github.com/rollup/rollup/pull/1926))
2500* Option to add correct `.toString` tags to namespaces ([#2041](https://github.com/rollup/rollup/pull/2041))
2501* Option and scripts to display performance timings ([#2045](https://github.com/rollup/rollup/pull/2045))
2502* Fixes for exported or early accessed namespaces + improved namespace indentation ([#2041](https://github.com/rollup/rollup/pull/2041))
2503* Include missing TypeScript dependencies ([#1965](https://github.com/rollup/rollup/pull/1965))
2504* Add #_PURE annotation to frozen namespaces ([#2044](https://github.com/rollup/rollup/pull/2044))
2505* Improve sourcemap and tree-shaking performance ([#2052](https://github.com/rollup/rollup/pull/2052))
2506* Inline sourcemap lookups and make rollup smaller ([#2055](https://github.com/rollup/rollup/pull/2055))
2507* Use updated magic-string types ([#2057](https://github.com/rollup/rollup/pull/2057))
2508* [BREAKING] Revert class id preservation from #2025 ([#2048](https://github.com/rollup/rollup/pull/2048))
2509* [BREAKING] Refactor missing export plugin hook ([#1987](https://github.com/rollup/rollup/pull/1987))
2510
2511## 0.56.5
2512*2018-03-07*
2513* Preserve ids when deconflicting classes ([#2025](https://github.com/rollup/rollup/pull/2025))
2514* Fix an issue with re-exported namespace imports ([#2034](https://github.com/rollup/rollup/pull/2034))
2515* Prevent an infinite loop when binding member expressions ([#1963](https://github.com/rollup/rollup/pull/1963))
2516* Convert code style via prettier ([#2031](https://github.com/rollup/rollup/pull/2031))
2517* Fix links in documentation ([#2026](https://github.com/rollup/rollup/pull/2026))
2518
2519## 0.56.4
2520*2018-03-05*
2521* Make rollup builds reproducible ([#2024](https://github.com/rollup/rollup/pull/2024))
2522* Improve error handling for source maps ([#2012](https://github.com/rollup/rollup/pull/2012))
2523* Properly handle SystemJS default exports without semicolons ([#2019](https://github.com/rollup/rollup/pull/2019))
2524* Properly handle importing the same variable several times when code-splitting ([#2020](https://github.com/rollup/rollup/pull/2020))
2525* Improve re-export tracing ([#2021](https://github.com/rollup/rollup/pull/2021))
2526* Apply "prettier" on commit ([#2017](https://github.com/rollup/rollup/pull/2017))
2527* Automatically clean up outdated tests ([#2009](https://github.com/rollup/rollup/pull/2009))
2528* Add SystemJS output to form tests ([#2022](https://github.com/rollup/rollup/pull/2022))
2529* Improve internal build configuration ([#2016](https://github.com/rollup/rollup/pull/2016))
2530
2531## 0.56.3
2532*2018-02-25*
2533* Fix issues around default exports and module facades ([#2001](https://github.com/rollup/rollup/pull/2001))
2534* Improve and fix internal chunk interface ([#1994](https://github.com/rollup/rollup/pull/1994))
2535* Fix superfluous semicolons added after declarations ([#1999](https://github.com/rollup/rollup/pull/1999))
2536* Improve code-splitting tests ([#1990](https://github.com/rollup/rollup/pull/1990))
2537
2538## 0.56.2
2539*2018-02-19*
2540* Fix handling of reassigned default exports ([#1975](https://github.com/rollup/rollup/pull/1975))
2541* Fix handling of renamed exports in entry points ([#1977](https://github.com/rollup/rollup/pull/1977))
2542* Update internal TypeScript version ([#1980](https://github.com/rollup/rollup/pull/1980))
2543* Omit compiled source files from published types ([#1981](https://github.com/rollup/rollup/pull/1981))
2544* Fix example in readme file ([#1984](https://github.com/rollup/rollup/pull/1984))
2545* Fix non-replaced dynamic imports in non-ESM output ([#1985](https://github.com/rollup/rollup/pull/1985))
2546
2547## 0.56.1
2548*2018-02-16*
2549* Fix regression when rendering switch statements ([#1971](https://github.com/rollup/rollup/pull/1971))
2550
2551## 0.56.0
2552*2018-02-15*
2553* Update to ECMAScript 2018 ([#1953](https://github.com/rollup/rollup/pull/1953))
2554* Rework tree-shaking rendering algorithm ([#1949](https://github.com/rollup/rollup/pull/1949))
2555* Tree-shake pure prototype calls on literals ([#1916](https://github.com/rollup/rollup/pull/1916))
2556* Expose AST parser to plugins ([#1945](https://github.com/rollup/rollup/pull/1945))
2557* Fix namespace re-export deconflicting ([#1960](https://github.com/rollup/rollup/pull/1960))
2558* Allow globals to be re-exported ([#1959](https://github.com/rollup/rollup/pull/1959))
2559* Fix internal performance timers ([#1966](https://github.com/rollup/rollup/pull/1966))
2560
2561## 0.55.5
2562*2018-02-10*
2563* Remove OpenCollective dependency ([#1915](https://github.com/rollup/rollup/pull/1915))
2564
2565## 0.55.4
2566*2018-02-09*
2567* Improve name deconflicting of external variables ([#1930](https://github.com/rollup/rollup/pull/1930))
2568* Improve re-export handling ([#1947](https://github.com/rollup/rollup/pull/1947))
2569* Mark preserveSymlinks option as optional ([#1939](https://github.com/rollup/rollup/pull/1939))
2570* Enable code-splitting tests to check directory structures ([#1924](https://github.com/rollup/rollup/pull/1924))
2571* Improve TypeScript definition test ([#1954](https://github.com/rollup/rollup/pull/1954))
2572
2573## 0.55.3
2574*2018-02-01*
2575* Remove OpenCollective dependency ([#1915](https://github.com/rollup/rollup/pull/1915))
2576
2577## 0.55.2
2578*2018-02-01*
2579* Add option to not follow symlinks ([#1819](https://github.com/rollup/rollup/pull/1819))
2580* Fix crash in windows shell ([#1928](https://github.com/rollup/rollup/pull/1928))
2581* Fix and test for external TypeScript errors ([#1903](https://github.com/rollup/rollup/pull/1903))
2582* Activate OpenCollective ([#1915](https://github.com/rollup/rollup/pull/1915))
2583* Optimize CI scripts ([#1921](https://github.com/rollup/rollup/pull/1921))
2584
2585## 0.55.1
2586*2018-01-26*
2587* Improve dynamic import workflow ([#1907](https://github.com/rollup/rollup/pull/1907))
2588* Properly handle multiple dynamic imports of the same module ([#1911](https://github.com/rollup/rollup/pull/1911))
2589* Fix import specifier deshadowing ([#1912](https://github.com/rollup/rollup/pull/1912))
2590* Allow plugin load hook to return an empty string ([#1908](https://github.com/rollup/rollup/pull/1908))
2591* Let onwarn handler accept strings ([#1905](https://github.com/rollup/rollup/pull/1905))
2592
2593## 0.55.0
2594*2018-01-23*
2595* Support code splitting ([#1841](https://github.com/rollup/rollup/pull/1841))
2596* Support SystemJS as output format ([#1897](https://github.com/rollup/rollup/pull/1897))
2597* Allow injecting acorn plugins ([#1857](https://github.com/rollup/rollup/pull/1857))
2598* Add `missingExport` plugin hook ([#1845](https://github.com/rollup/rollup/pull/1845))
2599* No longer parse config files via bublé ([#1899](https://github.com/rollup/rollup/pull/1899))
2600* Use externally maintained dynamic import acorn plugin ([#1891](https://github.com/rollup/rollup/pull/1891))
2601* Fix an error message ([#1886](https://github.com/rollup/rollup/pull/1886))
2602* Refactor internal rendering options ([#1900](https://github.com/rollup/rollup/pull/1900))
2603* Extract internal path resolution ([#1879](https://github.com/rollup/rollup/pull/1879))
2604* Extract internal bundle option handling ([#1880](https://github.com/rollup/rollup/pull/1880))
2605* Add import description type ([#1884](https://github.com/rollup/rollup/pull/1884))
2606* Clean up watch options types ([#1860](https://github.com/rollup/rollup/pull/1860))
2607* Clean up some tests ([#1888](https://github.com/rollup/rollup/pull/1888))
2608
2609## 0.54.1
2610*2018-01-17*
2611* Fix TypeScript errors in emitted type definitions ([#1871](https://github.com/rollup/rollup/pull/1871))
2612
2613## 0.54.0
2614*2018-01-12*
2615* Automatically inline locally resolvable dynamic imports ([#1816](https://github.com/rollup/rollup/pull/1816))
2616* Preserve directives in function bodies ([#1856](https://github.com/rollup/rollup/pull/1856))
2617* Refactor an error notification ([#1846](https://github.com/rollup/rollup/pull/1846))
2618* Refactor a wrong import ([#1863](https://github.com/rollup/rollup/pull/1863))
2619* Improve emitted TypeScript definitions ([#1864](https://github.com/rollup/rollup/pull/1864))
2620* Refactor unused import ([#1866](https://github.com/rollup/rollup/pull/1866))
2621
2622## 0.53.4
2623*2018-01-10*
2624* More type cleanup ([#1858](https://github.com/rollup/rollup/pull/1858))
2625* Use chalks internal helper to detect if colors should be used ([#1853](https://github.com/rollup/rollup/pull/1853))
2626* Refactor entity handling to use interfaces ([#1840](https://github.com/rollup/rollup/pull/1840))
2627* Use immutable.js internal types ([#1844](https://github.com/rollup/rollup/pull/1844))
2628* Ship `TypeScript` declaration files ([#1837](https://github.com/rollup/rollup/pull/1837))
2629
2630## 0.53.3
2631*2018-01-02*
2632* Use correct name when re-exporting from external modules ([#1794](https://github.com/rollup/rollup/pull/1794))
2633* Disable warnings when `resolveId` returns false ([#1825](https://github.com/rollup/rollup/pull/1825))
2634
2635## 0.53.2
2636*2017-12-30*
2637* Properly handle output arrays in the JavaScript API ([#1827](https://github.com/rollup/rollup/pull/1827))
2638
2639## 0.53.1
2640*2017-12-28*
2641* Properly deprecate more config options ([#1812](https://github.com/rollup/rollup/pull/1812))
2642* Pass output options to `transformBundle` plugin hook ([#1813](https://github.com/rollup/rollup/pull/1813))
2643
2644## 0.53.0
2645*2017-12-22*
2646* Experimental dynamic import support ([#1790](https://github.com/rollup/rollup/pull/1790))
2647* Unify config validation ([#1805](https://github.com/rollup/rollup/pull/1805))
2648
2649## 0.52.3
2650*2017-12-19*
2651* Properly hoist default exported functions in more situations ([#1799](https://github.com/rollup/rollup/pull/1799))
2652* Allow plugin transformations to not overwrite source maps by returning null ([#1797](https://github.com/rollup/rollup/pull/1797))
2653* Provide more parameters to "external" handler ([#1792](https://github.com/rollup/rollup/pull/1792))
2654
2655## 0.52.2
2656*2017-12-15*
2657* No longer ignore side-effects in JSON.parse and JSON.stringify ([#1785](https://github.com/rollup/rollup/pull/1785))
2658* Updated links in warnings ([#1776](https://github.com/rollup/rollup/pull/1776))
2659* No longer prevent self-imports ([#1777](https://github.com/rollup/rollup/pull/1777))
2660* Properly hoist default exported functions ([#1787](https://github.com/rollup/rollup/pull/1787))
2661* Prevent corruption when re-exporting default exports ([#1765](https://github.com/rollup/rollup/pull/1765))
2662
2663## 0.52.1
2664*2017-12-05*
2665* Improve deprecation warnings ([#1765](https://github.com/rollup/rollup/pull/1765))
2666* Properly use stdin ([#1774](https://github.com/rollup/rollup/pull/1774))
2667* Let --environment be used multiple times ([#1768](https://github.com/rollup/rollup/pull/1768))
2668* Always transpile config files ([#1759](https://github.com/rollup/rollup/pull/1759))
2669* Respect globals option in headers of UMD and IIFE files ([#1747](https://github.com/rollup/rollup/pull/1747))
2670
2671## 0.52.0
2672*2017-11-25*
2673* Accept config as promise ([#1731](https://github.com/rollup/rollup/pull/1731))
2674* Accept promises for intro/outro/banner/footer ([#1253](https://github.com/rollup/rollup/pull/1253))
2675* Option to prevent freezing of namespace imports ([#1696](https://github.com/rollup/rollup/pull/1696))
2676* Option to retain all output in watch mode ([#1688](https://github.com/rollup/rollup/pull/1688))
2677* Options to fine-tune treeshaking ([#1760](https://github.com/rollup/rollup/pull/1760))
2678
2679## 0.51.8
2680*2017-11-19*
2681* Fix speed problems by simplifying treeshaking reassignment handling ([#1740](https://github.com/rollup/rollup/pull/1740))
2682* Update dependencies ([#1742](https://github.com/rollup/rollup/pull/1742))
2683
2684## 0.51.7
2685*2017-11-17*
2686* Keep "this"-context when calling sequence expressions ([#1724](https://github.com/rollup/rollup/pull/1724))
2687
2688## 0.51.6
2689*2017-11-16*
2690* Use sourcemaps to determine error locations ([#1728](https://github.com/rollup/rollup/pull/1728))
2691
2692## 0.51.5
2693*2017-11-11*
2694* Fix regressions with uninitialised conditional expressions ([#1720](https://github.com/rollup/rollup/pull/1720))
2695
2696## 0.51.4
2697*2017-11-11*
2698* Fix regressions preventing builds ([#1725](https://github.com/rollup/rollup/pull/1725))
2699
2700## 0.51.3
2701*2017-11-10*
2702* Fix regression when treeshaking sequence expressions ([#1717](https://github.com/rollup/rollup/pull/1717))
2703
2704## 0.51.2
2705*2017-11-09*
2706* Fix treeshaking regression when labels are used inside functions ([#1712](https://github.com/rollup/rollup/pull/1712))
2707
2708## 0.51.1
2709*2017-11-08*
2710* Fix an issue with empty return statements ([#1704](https://github.com/rollup/rollup/pull/1704))
2711
2712## 0.51.0
2713*2017-11-08*
2714* Massive improvements to the treeshaking algorithm ([#1667](https://github.com/rollup/rollup/pull/1667))
2715
2716## 0.50.1
2717*2017-11-08*
2718* Fix treeshaking regression ([#1695](https://github.com/rollup/rollup/pull/1695))
2719* Treeshaking improvements ([#1650](https://github.com/rollup/rollup/pull/1650))
2720* Enable installation from Github ([#1670](https://github.com/rollup/rollup/pull/1670))
2721* Update documentation ([#1660](https://github.com/rollup/rollup/pull/1660))
2722
2723## 0.50.0
2724*2017-09-16*
2725* Many treeshaking improvements ([#1624](https://github.com/rollup/rollup/pull/1624))
2726* Show finish time in watch mode ([#1620](https://github.com/rollup/rollup/pull/1620))
2727
2728## 0.49.3
2729*2017-09-08*
2730* Respect `watch` options ([#1596](https://github.com/rollup/rollup/issues/1596))
2731* Fix treeshaking regressions ([#1604](https://github.com/rollup/rollup/pull/1604))
2732* Allow `-o` to work with `output.format` ([#1606](https://github.com/rollup/rollup/pull/1606))
2733
2734## 0.49.2
2735*2017-08-29*
2736* Fix treeshaking regressions ([#1591](https://github.com/rollup/rollup/pull/1591))
2737
2738## 0.49.1
2739*2017-08-28*
2740* Fix treeshaking regressions ([#1586](https://github.com/rollup/rollup/pull/1586))
2741
2742## 0.49.0
2743*2017-08-27*
2744* Completely update the treeshaking algorithm ([#1582](https://github.com/rollup/rollup/pull/1582))
2745* Only flip screen buffer if appropriate ([#1574](https://github.com/rollup/rollup/pull/1574))
2746* Guard against two instances creating the same dir ([#1576](https://github.com/rollup/rollup/pull/1576))
2747
2748## 0.48.2
2749
2750* Paths is an output option ([#1569](https://github.com/rollup/rollup/pull/1569))
2751
2752## 0.48.1
2753
2754* Print deprecation warnings in watch mode, and fix options when watcher restarts ([#1568](https://github.com/rollup/rollup/pull/1568))
2755
2756## 0.48.0
2757
2758* Numerous changes to the `options` object and CLI arguments ([#1479](https://github.com/rollup/rollup/issues/1479)). See [this gist](https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32) for a rundown.
2759
2760## 0.47.6
2761
2762* Set `process.env.ROLLUP_WATCH` *before* loading config file
2763
2764## 0.47.5
2765
2766* Fix broken multi-bundle configs with `rollup.watch` ([#1532](https://github.com/rollup/rollup/issues/1532))
2767
2768## 0.47.4
2769
2770* Delete cached config file before reloading in watch mode
2771
2772## 0.47.3
2773
2774* Deshadow aliased imports ([#1550](https://github.com/rollup/rollup/issues/1550))
2775
2776## 0.47.2
2777
2778* Rebuild with dependency that npm randomly deleted
2779
2780## 0.47.1
2781
2782* Ignore external namespace imports when deshadowing ([#1547](https://github.com/rollup/rollup/issues/1547))
2783
2784## 0.47.0
2785
2786* Watch config file, restart `rollup.watch` on change ([#1535](https://github.com/rollup/rollup/issues/1535))
2787* Correctly render `export { foo } from` declarations in `es` output ([#1543](https://github.com/rollup/rollup/pull/1543))
2788* Reinstate missing `rollup.VERSION`
2789
2790## 0.46.3
2791
2792* init for/for-of loop section head with correct scopes ([#1538](https://github.com/rollup/rollup/issues/1538), [#1539](https://github.com/rollup/rollup/issues/1539))
2793* Fix namespace imports and re-exports in `es` output ([#1511](https://github.com/rollup/rollup/issues/1511))
2794* Deshadow indirectly imported namespaces ([#1488](https://github.com/rollup/rollup/issues/1488), [#1505](https://github.com/rollup/rollup/issues/1505))
2795
2796## 0.46.2
2797
2798* Pass options to `bundle.write` correctly in `rollup.watch` ([#1533](https://github.com/rollup/rollup/issues/1533))
2799* init for-in loop section head with correct scopes ([#1480](https://github.com/rollup/rollup/issues/1480))
2800* support `--no-interop` flag ([#1524](https://github.com/rollup/rollup/issues/1524))
2801
2802## 0.46.1
2803
2804* Remove `rollup.watch` from browser build ([#1530](https://github.com/rollup/rollup/issues/1530))
2805* Remove `source-map-support` dependency ([#1528](https://github.com/rollup/rollup/issues/1528))
2806
2807## 0.46.0
2808
2809* `options.format` is now required ([#1491](https://github.com/rollup/rollup/pull/1491))
2810* if `options.format` is `es6`, it will now throw an error (should be `es`) ([#1491](https://github.com/rollup/rollup/pull/1491))
2811* Add experimental `rollup.watch` method, replacing [rollup-watch](https://github.com/rollup/rollup-watch) ([#1491](https://github.com/rollup/rollup/pull/1491))
2812* Batch warnings together in CLI output ([#1491](https://github.com/rollup/rollup/pull/1491))
2813* Clear screen between rebuilds in `--watch` mode ([#1491](https://github.com/rollup/rollup/pull/1491))
2814* `onwarn` function's second argument is the default handler, allowing easier filtering without reimplementing any logic ([#1491](https://github.com/rollup/rollup/pull/1491))
2815* Prevent semi-colon removal after variable declaration that is for loop body ([#1275](https://github.com/rollup/rollup/issues/1275))
2816* Return `exports` for namespaced but non-extended IIFE bundles ([#1492](https://github.com/rollup/rollup/issues/1492))
2817* Fix scoping in switch statements ([#1498](https://github.com/rollup/rollup/pull/1498))
2818* Handle side-effects in tagged template expressions ([#1508](https://github.com/rollup/rollup/pull/1508))
2819* More descriptive error for missing options.format ([#1510](https://github.com/rollup/rollup/pull/1510))
2820* Refactor scope handling ([#1517](https://github.com/rollup/rollup/pull/1517))
2821* Handle failure of a config in multi-config build ([#1513](https://github.com/rollup/rollup/issues/1513))
2822
2823
2824## 0.45.2
2825
2826* Fix interop when import is a string ([#1486](https://github.com/rollup/rollup/issues/1486))
2827* Separate `resolvedIds` from `resolvedExternalIds` ([#1490](https://github.com/rollup/rollup/pull/1490))
2828* Add `--extend` flag to CLI ([#1482](https://github.com/rollup/rollup/pull/1482))
2829
2830## 0.45.1
2831
2832* Remove `weak` from `optionalDependencies` ([#1483](https://github.com/rollup/rollup/issues/1483))
2833
2834## 0.45.0
2835
2836* [BREAKING] `bundle.generate(...)` returns a Promise, so that `transformBundle` plugin hooks can be asynchronous ([#1474](https://github.com/rollup/rollup/issues/1474))
2837
2838## 0.44.0
2839
2840* [BREAKING] Don't extend existing globals, unless `options.extend` is true ([#827](https://github.com/rollup/rollup/issues/827))
2841* Fix handling of catch clause parameters ([#1462](https://github.com/rollup/rollup/issues/1462))
2842
2843## 0.43.1
2844
2845* Fix memory leak on incremental rebuilds ([#883](https://github.com/rollup/rollup/issues/883))
2846* Allow `this.warn` and `this.error` to accept a `{line, column}` object as an alternative to a character index ([#1265](https://github.com/rollup/rollup/issues/1265))
2847* Print more useful error if entry module is 'external' ([#1264](https://github.com/rollup/rollup/issues/1264))
2848* Catch errors in `bundle.generate` options ([#1463](https://github.com/rollup/rollup/pull/1463))
2849* Fix magic-string deprecation warning ([#1445](https://github.com/rollup/rollup/pull/1445))
2850
2851## 0.43.0
2852
2853* Allow config files to import JSON ([#1426](https://github.com/rollup/rollup/issues/1426))
2854* Allow undefined imports in interop block ([#1341](https://github.com/rollup/rollup/issues/1341))
2855* Add `process.env.ROLLUP_WATCH = 'true'` in watch mode ([#1429](https://github.com/rollup/rollup/issues/1429))
2856* Add `pureExternalModules` option ([#1352](https://github.com/rollup/rollup/issues/1352))
2857* Allow plugins to specify `options.entry` ([#1270](https://github.com/rollup/rollup/issues/1270))
2858* Update dependencies
2859
2860## 0.42.0
2861
2862* Deprecate `options.moduleId` in favour of `options.amd.id` ([#1365](https://github.com/rollup/rollup/pull/1365))
2863* Add `options.amd.define` option to specify name of AMD `define` function ([#1365](https://github.com/rollup/rollup/pull/1365))
2864* Fix incorrect class removal with `treeshake: false` ([#1375](https://github.com/rollup/rollup/pull/1375))
2865* Deconflict module exports imported as namespaces ([#1384](https://github.com/rollup/rollup/issues/1384))
2866* Handle bare self-imports ([#1274](https://github.com/rollup/rollup/issues/1274))
2867* Allow config file to export an array of multiple configs ([#1389](https://github.com/rollup/rollup/pull/1389))
2868* Handle exponentiation operator, and fail gracefully on unknown operators ([#1416](https://github.com/rollup/rollup/issues/1416))
2869* Add `watch` option ([#1424](https://github.com/rollup/rollup/pull/1424))
2870
2871## 0.41.6
2872
2873* Preserve `originalSourceMap` on incremental rebuilds for loaders with sourcemaps ([#1336](https://github.com/rollup/rollup/issues/1336))
2874
2875## 0.41.5
2876
2877* Wrap ternary consequent/alternate sequences in parens ([#1273](https://github.com/rollup/rollup/issues/1273))
2878* Fix erroneous warning on multiple `export * from` declarations with defaults ([#1278](https://github.com/rollup/rollup/issues/1278))
2879* Prevent variable conflicts with `treeshake: false` ([#1268](https://github.com/rollup/rollup/issues/1268))
2880* Allow missing `source` when collapsing sourcemaps ([#1254](https://github.com/rollup/rollup/issues/1254))
2881* Allow plugins to log with strings ([#1316](https://github.com/rollup/rollup/pull/1316))
2882
2883## 0.41.4
2884
2885* Fix cases of multiple `export * from 'external'` declarations ([#1252](https://github.com/rollup/rollup/issues/1252))
2886* Fix 'TODO' error message ([#1257](https://github.com/rollup/rollup/issues/1257))
2887
2888## 0.41.3
2889
2890* Don't treat `this.foo` as possible namespace ([#1258](https://github.com/rollup/rollup/issues/1258))
2891
2892## 0.41.2
2893
2894* Optimize `namespace['foo']` references ([#1240](https://github.com/rollup/rollup/pull/1240))
2895
2896## 0.41.1
2897
2898* Include `new` expressions where callee is a class with side-effects ([#980](https://github.com/rollup/rollup/issues/980) [#1233](https://github.com/rollup/rollup/issues/1233))
2899
2900## 0.41.0
2901
2902* Add `this.warn(...)` and `this.error(...)` methods to plugin `transform` hook contexts ([#1140](https://github.com/rollup/rollup/issues/1140))
2903* `throw` always considered to be a side effect ([#1227](https://github.com/rollup/rollup/pull/1227))
2904
2905## 0.40.2
2906
2907* Add `file` property to sourcemaps for bundles with plugins ([#986](https://github.com/rollup/rollup/issues/986))
2908* Don't require globals for empty imports ([#1217](https://github.com/rollup/rollup/issues/1217))
2909
2910## 0.40.1
2911
2912* Allow missing space between `export default` and declaration ([#1218](https://github.com/rollup/rollup/pull/1218))
2913
2914## 0.40.0
2915
2916* [BREAKING] Better, more consistent error logging ([#1212](https://github.com/rollup/rollup/pull/1212))
2917* Don't use colours and emojis for non-TTY stderr ([#1201](https://github.com/rollup/rollup/issues/1201))
2918
2919## 0.39.2
2920
2921* Prevent mutation of cached ASTs (fixes stack overflow with rollup-watch) ([#1205](https://github.com/rollup/rollup/pull/1205))
2922
2923## 0.39.1
2924
2925* Ignore `var` initialisers in dead branches ([#1198](https://github.com/rollup/rollup/issues/1198))
2926
2927## 0.39.0
2928
2929* [BREAKING] Warnings are objects, rather than strings ([#1194](https://github.com/rollup/rollup/issues/1194))
2930
2931## 0.38.3
2932
2933* More informative warning for implicit external dependencies ([#1051](https://github.com/rollup/rollup/issues/1051))
2934* Warn when creating browser bundle with external dependencies on Node built-ins ([#1051](https://github.com/rollup/rollup/issues/1051))
2935* Statically analyse LogicalExpression nodes, for better dead code removal ([#1061](https://github.com/rollup/rollup/issues/1061))
2936
2937## 0.38.2
2938
2939* Preserve `var` declarations in dead branches ([#997](https://github.com/rollup/rollup/issues/997))
2940* Warn if exporting a call expression that looks like a function declaration ([#1011](https://github.com/rollup/rollup/issues/1011))
2941* Wrap function expressions in parentheses if necessary ([#1011](https://github.com/rollup/rollup/issues/1011))
2942
2943## 0.38.1
2944
2945* Fix sourcemap comment removal ([#1104](https://github.com/rollup/rollup/issues/1104))
2946* Warn if empty bundle is generated ([#444](https://github.com/rollup/rollup/issues/444))
2947* Support ES2017 syntax ([#492](https://github.com/rollup/rollup/issues/492))
2948* Remove unused imports from external modules ([#595](https://github.com/rollup/rollup/issues/595))
2949* Remove unused function and class declarations inside function bodies ([#1108](https://github.com/rollup/rollup/issues/1108), [#1178](https://github.com/rollup/rollup/issues/1178))
2950* Deconflict function expression IDs ([#1176](https://github.com/rollup/rollup/issues/1176))
2951
2952## 0.38.0
2953
2954* [BREAKING] `export { foo as default }` creates live binding ([#1078](https://github.com/rollup/rollup/issues/1078))
2955* Prevent sourceMappingURL removal edge case ([#988](https://github.com/rollup/rollup/issues/988))
2956* Bind function expression IDs to the correct scope ([#1083](https://github.com/rollup/rollup/issues/1083))
2957* Correctly deshadow destructured parameters with assignments ([#1008](https://github.com/rollup/rollup/issues/1008))
2958
2959## 0.37.2
2960
2961* Remove unused `new` expressions without side-effects ([#179](https://github.com/rollup/rollup/issues/179))
2962* Only remove valid sourceMappingURL comments ([#1132](https://github.com/rollup/rollup/issues/1132))
2963* Ensure blocks containing activated `var` declarations are included in output ([#1113](https://github.com/rollup/rollup/issues/1113))
2964* Support plugin outros ([#1116](https://github.com/rollup/rollup/issues/1116))
2965
2966## 0.37.1
2967
2968* Follow symlinks ([#447](https://github.com/rollup/rollup/issues/447))
2969* Fix tree-shaking of recursive functions and other cases ([#1120](https://github.com/rollup/rollup/issues/1120), [#1142](https://github.com/rollup/rollup/issues/1142))
2970* Support module names that require quotes ([#582](https://github.com/rollup/rollup/issues/582), [#584](https://github.com/rollup/rollup/issues/584))
2971* Fix [#957](https://github.com/rollup/rollup/issues/957)
2972
2973## 0.37.0
2974
2975* [BREAKING] Default exports are not included in reified namespaces ([#1028](https://github.com/rollup/rollup/issues/1028))
2976* Parentheses do not defeat tree-shaking ([#1101](https://github.com/rollup/rollup/issues/1101), [#1128](https://github.com/rollup/rollup/issues/1128))
2977* More `legacy` fixes: do not create getters ([#1069](https://github.com/rollup/rollup/pull/1069)), do not include `__esModule` ([#1068](https://github.com/rollup/rollup/pull/1068)), quote reserved property names ([#1057](https://github.com/rollup/rollup/pull/1057))
2978* Fix missing namespace member warnings ([#1045](https://github.com/rollup/rollup/issues/1045))
2979* Fix TypeError in arrow function without braces returning a function ([#1062](https://github.com/rollup/rollup/pull/1062))
2980
2981## 0.36.4
2982
2983* Only depend on program-level call expressions ([#977](https://github.com/rollup/rollup/issues/977))
2984
2985## 0.36.3
2986
2987* Add `legacy` option for IE8 support ([#989](https://github.com/rollup/rollup/pull/989))
2988
2989## 0.36.2
2990
2991* Insert semicolons where necessary to fix broken code ([#1004](https://github.com/rollup/rollup/issues/1004))
2992* Include module ID and location when warning about top-level `this` ([#1012](https://github.com/rollup/rollup/pull/1012))
2993* More informative error for missing exports ([#1033](https://github.com/rollup/rollup/issues/1033))
2994* `options.moduleContext` for per-module context overrides ([#1023](https://github.com/rollup/rollup/pull/1023))
2995
2996## 0.36.1
2997
2998* Include naked block statements ([#981](https://github.com/rollup/rollup/issues/981))
2999* Correctly include falsy alternate statements in optimised if blocks ([#973](https://github.com/rollup/rollup/issues/973))
3000* Prevent omission of default exports that are only used by the exporting module ([#967](https://github.com/rollup/rollup/pull/967))
3001* Prevent warning on `auto` exports with ES output ([#966](https://github.com/rollup/rollup/pull/966))
3002
3003## 0.36.0
3004
3005* `export { foo as default }` no longer creates a live binding ([#860](https://github.com/rollup/rollup/issues/860))
3006
3007## 0.35.15
3008
3009* Warn on missing unused imports in deshadowing phase ([#928](https://github.com/rollup/rollup/issues/928))
3010* Always add a newline to the end of bundles ([#958](https://github.com/rollup/rollup/issues/958))
3011
3012## 0.35.14
3013
3014* Include all parent statements of expression with effects, up to function boundary ([#930](https://github.com/rollup/rollup/issues/930))
3015
3016## 0.35.13
3017
3018* Include superclasses when including their subclasses ([#932](https://github.com/rollup/rollup/issues/932))
3019
3020## 0.35.12
3021
3022* Add `interop: false` option to disable unwrapping of external imports ([#939](https://github.com/rollup/rollup/issues/939))
3023
3024## 0.35.11
3025
3026* Deconflict reified namespaces with other declarations ([#910](https://github.com/rollup/rollup/issues/910))
3027
3028## 0.35.10
3029
3030* Only remove EmptyStatement nodes directly inside blocks ([#913](https://github.com/rollup/rollup/issues/931))
3031
3032## 0.35.9
3033
3034* Support Node 0.12 ([#909](https://github.com/rollup/rollup/issues/909))
3035
3036## 0.35.8
3037
3038* Correctly deshadow re-assigned module functions ([#910](https://github.com/rollup/rollup/issues/910))
3039
3040## 0.35.7
3041
3042* Refactor `flushTime.js` ([#922](https://github.com/rollup/rollup/pull/922))
3043
3044## 0.35.6
3045
3046* Fix browser build
3047
3048## 0.35.5
3049
3050* Allow empty for loop heads ([#919](https://github.com/rollup/rollup/issues/919))
3051
3052## 0.35.4
3053
3054* Preserve effects in for-of and for-in loops ([#870](https://github.com/rollup/rollup/issues/870))
3055* Remove empty statements ([#918](https://github.com/rollup/rollup/pull/918))
3056
3057## 0.35.3
3058
3059* Render identifiers inside template literals
3060
3061## 0.35.2
3062
3063* Fix broken build caused by out of date locally installed dependencies
3064
3065## 0.35.1
3066
3067* Rewrite deconflicted class identifiers ([#915](https://github.com/rollup/rollup/pull/915))
3068* Include `dependencies` in `bundle.modules` objects ([#903](https://github.com/rollup/rollup/issues/903))
3069* Update to Acorn 4 ([#914](https://github.com/rollup/rollup/pull/914))
3070
3071## 0.35.0
3072
3073* Rewrite analysis/tree-shaking code ([#902](https://github.com/rollup/rollup/pull/902))
3074* Include conditional mutations of global objects ([#901](https://github.com/rollup/rollup/issues/901))
3075* Only reify namespaces if necessary ([#898](https://github.com/rollup/rollup/issues/898))
3076* Track mutations of aliased globals ([#893](https://github.com/rollup/rollup/issues/893))
3077* Include duplicated var declarations ([#716](https://github.com/rollup/rollup/issues/716))
3078
3079## 0.34.13
3080
3081* Pass `{ format }` through to `transformBundle` ([#867](https://github.com/rollup/rollup/issues/867))
3082
3083## 0.34.12
3084
3085* Fix `rollup --watch` ([#887](https://github.com/rollup/rollup/issues/887))
3086* Case-sensitive paths ([#862](https://github.com/rollup/rollup/issues/862))
3087
3088## 0.34.11
3089
3090* Prevent leaky state when `bundle` is reused ([#875](https://github.com/rollup/rollup/issues/875))
3091* Ensure `intro` appears before interop block ([#880](https://github.com/rollup/rollup/issues/880))
3092
3093## 0.34.10
3094
3095* Allow custom `options.context` to replace top-level `this` ([#851](https://github.com/rollup/rollup/issues/851))
3096* Fix `noConflict` when used via `rollup --config` ([#846](https://github.com/rollup/rollup/issues/846))
3097* Place `outro` block *after* export block ([#852](https://github.com/rollup/rollup/issues/852))
3098
3099## 0.34.9
3100
3101* Disable indentation by default, for faster bundle generation ([#812](https://github.com/rollup/rollup/pull/812))
3102* More helpful error on missing entry file ([#802](https://github.com/rollup/rollup/issues/802))
3103* Preserve comments before import declarations ([#815](https://github.com/rollup/rollup/pull/815))
3104
3105## 0.34.8
3106
3107* Wrap UMD factory function in parens to avoid lazy parsing ([#774](https://github.com/rollup/rollup/pull/774))
3108
3109## 0.34.7
3110
3111* Leave it up to resolveId to normalize the entry path ([#835](https://github.com/rollup/rollup/pull/835))
3112* Cache decoded mappings ([#834](https://github.com/rollup/rollup/pull/834))
3113
3114## 0.34.5
3115
3116* Fix circular export ([#813](https://github.com/rollup/rollup/issues/813))
3117
3118## 0.34.4
3119
3120* Module render performance tweak ([#823](https://github.com/rollup/rollup/pull/823))
3121
3122## 0.34.3
3123
3124* Avoid infinite recursion in `Bundle.sort()` ([#800](https://github.com/rollup/rollup/pull/800))
3125
3126## 0.34.2
3127
3128* resolveId calls are cached now to improve incremental build
3129* Fixed error message recursion in plugins
3130
3131## 0.34.1
3132
3133* Support `paths` config ([#754](https://github.com/rollup/rollup/issues/754))
3134* Allow `export *` from external module, internally
3135
3136## 0.34.0
3137
3138* Use resolved IDs for relative imports that are also external modules, to allow `options.globals` to work with them ([#763](https://github.com/rollup/rollup/issues/763))
3139* Ensure reassigned exports are declared in an ES bundle, and remove empty `exports.foo;` statements ([#755](https://github.com/rollup/rollup/issues/755))
3140* Add newline after sourcemap comment ([#756](https://github.com/rollup/rollup/issues/756))
3141
3142## 0.33.2
3143
3144* Add `bundle` as second argument to `ongenerate` and `onwrite` hooks ([#773](https://github.com/rollup/rollup/pull/773))
3145* Warn on top-level `this` ([#770](https://github.com/rollup/rollup/issues/770))
3146
3147## 0.33.1
3148
3149* Fix `--no-strict` option ([#751](https://github.com/rollup/rollup/pull/751))
3150* Fix Windows edge case with case-sensitive paths ([#760](https://github.com/rollup/rollup/pull/760))
3151
3152## 0.33.0
3153
3154* Downgrade missing transformer sourcemap to a warning, not an error, and print the name of the offending plugin if possible ([#746](https://github.com/rollup/rollup/issues/746))
3155* Warn if same name is re-exported from two modules ([#722](https://github.com/rollup/rollup/issues/722))
3156
3157## 0.32.4
3158
3159* Add `ongenerate` and `onwrite` plugin hooks ([#742](https://github.com/rollup/rollup/pull/742))
3160
3161## 0.32.3
3162
3163* Generated correct sourcemaps with reified namespaces ([#668](https://github.com/rollup/rollup/issues/668))
3164* Exclude plugin helper modules from sourcemaps ([#747](https://github.com/rollup/rollup/pull/747))
3165
3166## 0.32.2
3167
3168* Allow `--globals` to work with `--external` or `options.external` in whatever configuration ([#743](https://github.com/rollup/rollup/issues/743))
3169
3170## 0.32.1
3171
3172* Preserve side-effects to default exports that coincide with used named exports ([#733](https://github.com/rollup/rollup/issues/733))
3173* Support `rollup -c node:pkgname` ([#736](https://github.com/rollup/rollup/issues/736))
3174
3175## 0.32.0
3176
3177* Deprecate `es6` format in favour of `es` ([#468](https://github.com/rollup/rollup/issues/468))
3178* Add correct `jsnext:main` build ([#726](https://github.com/rollup/rollup/pull/726))
3179
3180## 0.31.2
3181
3182* Allow `load` plugins to provide sourcemap ([#715](https://github.com/rollup/rollup/pull/715))
3183* Allow `sourceMapFile` in config options ([#717](https://github.com/rollup/rollup/issues/717))
3184
3185## 0.31.1
3186
3187* Logging for errors emitted by `rollup-watch` ([#712](https://github.com/rollup/rollup/issues/712))
3188
3189## 0.31.0
3190
3191* Rewrite top-level `this` as `undefined` ([#707](https://github.com/rollup/rollup/pull/707))
3192* Pass `options.acorn` to Acorn ([#564](https://github.com/rollup/rollup/issues/564))
3193
3194## 0.30.0
3195
3196* Bundle CLI ([#700](https://github.com/rollup/rollup/issues/700))
3197* Ensure absolute paths are normalised ([#704](https://github.com/rollup/rollup/issues/704))
3198* Allow `rollup --watch` to work with targets
3199
3200## 0.29.1
3201
3202* Merge `target` options with main options ([#701](https://github.com/rollup/rollup/issues/701))
3203* Update magic-string ([#690](https://github.com/rollup/rollup/issues/690))
3204
3205## 0.29.0
3206
3207* `rollup --watch` ([#284](https://github.com/rollup/rollup/issues/284))
3208
3209## 0.28.0
3210
3211* Experimental support for incremental rebuilds ([#658](https://github.com/rollup/rollup/pull/658))
3212
3213## 0.27.1
3214
3215* Ensure names exported from a module are not replaced with reserved words ([#696](https://github.com/rollup/rollup/pull/696))
3216* Revert ([#692](https://github.com/rollup/rollup/pull/692)) – resolved IDs must be strings
3217
3218## 0.27.0
3219
3220* Use native promises instead of `es6-promise` ([#689](https://github.com/rollup/rollup/issues/689))
3221* Support multiple targets in config files ([#655](https://github.com/rollup/rollup/issues/655))
3222* Allow `resolveId` plugin functions to return non-strings ([#692](https://github.com/rollup/rollup/pull/692))
3223
3224## 0.26.7
3225
3226* Distinguish between default and namespace imports of external module ([#637](https://github.com/rollup/rollup/issues/637))
3227* Add `__esModule` property to named exports in AMD, CJS and UMD modes ([#650](https://github.com/rollup/rollup/issues/650))
3228
3229## 0.26.6
3230
3231* Deconflict named imports from external modules in ES bundles ([#659](https://github.com/rollup/rollup/issues/659))
3232* Support `options.preferConst` to generate `const` declarations for exports rather than `var` declarations ([#653](https://github.com/rollup/rollup/issues/653))
3233
3234## 0.26.5
3235
3236* Preserve `debugger` statements ([#664](https://github.com/rollup/rollup/issues/664))
3237* Allow `options.external` to be a function ([#522](https://github.com/rollup/rollup/issues/522))
3238
3239## 0.26.4
3240
3241* Prevent plugin-provided external IDs being normalised ([#630](https://github.com/rollup/rollup/issues/630), [#633](https://github.com/rollup/rollup/issues/633))
3242* Throw if module exports/re-exports the same name twice, or has multiple default exports ([#679](https://github.com/rollup/rollup/issues/679))
3243* Warn about `eval` security issue ([#675]((https://github.com/rollup/rollup/issues/675)))
3244
3245
3246## 0.26.3
3247
3248* Ensure reference is not incorrectly marked as a reassignment ([#648](https://github.com/rollup/rollup/issues/648))
3249
3250## 0.26.2
3251
3252* Sanity check output of `load` hook ([#607](https://github.com/rollup/rollup/issues/607))
3253* Correct scoping for ID class expressions ([#626](https://github.com/rollup/rollup/issues/626))
3254* Warn if named and default exports are used together in auto mode ([#587](https://github.com/rollup/rollup/issues/587))
3255* Allow variable initialisers to be rewritten if necessary ([#632](https://github.com/rollup/rollup/issues/632))
3256* Prevent double `var` with no-treeshake option ([#639](https://github.com/rollup/rollup/pull/639))
3257
3258## 0.26.1
3259
3260* Add `treeshake: false`/`--no-treeshake` option for debugging ([#505](https://github.com/rollup/rollup/issues/505))
3261* Update build process to use Bublé ([#620](https://github.com/rollup/rollup/pull/620))
3262
3263## 0.26.0
3264
3265* Add `noConflict`/`--no-conflict` option for UMD builds ([#580](https://github.com/rollup/rollup/pull/580))
3266* Normalise relative external paths ([#591](https://github.com/rollup/rollup/pull/591))
3267* Report files causing transform errors ([#609](https://github.com/rollup/rollup/pull/609))
3268* Handle sourcemap segments with a single member ([#619](https://github.com/rollup/rollup/pull/619))
3269* Update dependencies
3270
3271## 0.25.8
3272
3273* Unixize entry path ([#586](https://github.com/rollup/rollup/pull/586))
3274
3275## 0.25.7
3276
3277* Expand deshadowed shorthand properties ([#575](https://github.com/rollup/rollup/issues/575))
3278* Allow external files to be non-existent ([#532](https://github.com/rollup/rollup/issues/532))
3279
3280## 0.25.6
3281
3282* Fix a regression introduced by #566 ([#569](https://github.com/rollup/rollup/issues/569))
3283* Prune dead conditional expressions more carefully ([#567](https://github.com/rollup/rollup/issues/567))
3284
3285## 0.25.5
3286
3287* Make sure shorthand destructuring assignments don't break ([#528](https://github.com/rollup/rollup/issues/528))
3288* Allow 'exports' key ([#542](https://github.com/rollup/rollup/issues/542))
3289* Ensure `foo. bar` where `foo` is a namespace import is rewritten correctly ([#566](https://github.com/rollup/rollup/issues/566))
3290* Fix an edge case for exported globals (e.g. `export { document }`) ([#562](https://github.com/rollup/rollup/issues/562))
3291
3292## 0.25.4
3293
3294* Fix misnamed exports of default imports in ES bundles ([#513](https://github.com/rollup/rollup/issues/513))
3295* CLI: warn on missing config ([#515](https://github.com/rollup/rollup/pull/515))
3296* Detect side-effects in non-top-level member expression assignment ([#476](https://github.com/rollup/rollup/issues/476))
3297* Don't remove computed property class keys ([#504](https://github.com/rollup/rollup/issues/504))
3298* Augment existing global object rather than replacing ([#493](https://github.com/rollup/rollup/issues/493))
3299* Don't fail on `export {}`, warn instead ([#486](https://github.com/rollup/rollup/issues/486))
3300
3301## 0.25.3
3302
3303* Handle non-objects and `null` in `_interopDefault` ([#474](https://github.com/rollup/rollup/issues/474))
3304
3305## 0.25.2
3306
3307* Skip dead branches of a conditional expression (#[465](https://github.com/rollup/rollup/pull/465))
3308* Allow globals to be exported ([#472](https://github.com/rollup/rollup/pull/472))
3309* Ensure reassigned exports are exported ([#484](https://github.com/rollup/rollup/issues/484))
3310
3311## 0.25.1
3312
3313* Throw error if namespace is called ([#446](https://github.com/rollup/rollup/issues/446))
3314* Prevent shadowing bug in ES6 output ([#441](https://github.com/rollup/rollup/pull/441))
3315* Prevent `var exports.foo` ([#426](https://github.com/rollup/rollup/issues/426))
3316* Prevent double export of aliased symbols ([#438](https://github.com/rollup/rollup/issues/438))
3317* Provide more informative error if Rollup is used in-browser without appropriate `resolveId`/`load` hooks ([#275](https://github.com/rollup/rollup/issues/275))
3318* Use `_interopDefault` function to DRY out code with many external dependencies, in CommonJS output ([#458](https://github.com/rollup/rollup/pull/458))
3319
3320## 0.25.0
3321
3322* **breaking** Module order is determined according to spec, rather than in a way designed to prevent runtime errors. Rollup will warn if it detects runtime errors are likely ([#435](https://github.com/rollup/rollup/issues/435))
3323* Prevent overly aggressive tree-shaking with complex call expressions ([#440](https://github.com/rollup/rollup/issues/440))
3324
3325## 0.24.1
3326
3327* Handle calls to default exports other that are not function expressions or references to function declarations ([#421](https://github.com/rollup/rollup/issues/421))
3328* Ensure namespace blocks are created for chained imports ([#430](https://github.com/rollup/rollup/issues/430))
3329* Include references in computed property keys ([#434](https://github.com/rollup/rollup/issues/434))
3330* Use CLI `--external` option correctly ([#417](https://github.com/rollup/rollup/pull/417))
3331* Allow relative imports to be treated as external, if absolute paths are provided in `options.external` ([#410](https://github.com/rollup/rollup/issues/410))
3332* Make IIFE output adhere to Crockford style ([#415](https://github.com/rollup/rollup/pull/415))
3333
3334## 0.24.0
3335
3336* No longer attempts to resolve IDs in `options.external` ([#407](https://github.com/rollup/rollup/issues/407))
3337* Fix broken sourcemap resolution in cases where some modules are transformed and others aren't ([#404](https://github.com/rollup/rollup/issues/404))
3338
3339## 0.23.2
3340
3341* Ensure `dest` or `sourceMapFile` is resolved against CWD for purposes of sourcemap generation ([#344](https://github.com/rollup/rollup/issues/344))
3342* Support `banner`, `footer`, `intro` and `outro` options via CLI ([#330](https://github.com/rollup/rollup/issues/330))
3343* Allow `options.global` to be a function rather than an object, and warn on missing names ([#293](https://github.com/rollup/rollup/issues/293))
3344* Ensure side-effects are captured in cyclical call expressions ([#397](https://github.com/rollup/rollup/issues/397))
3345* Fix parse error with body-less arrow function expressions ([#403](https://github.com/rollup/rollup/issues/403))
3346
3347## 0.23.1
3348
3349* Reinstate missing fix from ([#392](https://github.com/rollup/rollup/pull/392))
3350
3351## 0.23.0
3352
3353* Add `bundleTransform` plugin hook and option ([#387](https://github.com/rollup/rollup/pull/387))
3354* Correctly store names in sourcemaps, regardless of transformers
3355* Add `--environment` option to CLI ([#388](https://github.com/rollup/rollup/pull/388))
3356* Handle destructuring in exports ([#374](https://github.com/rollup/rollup/issues/374))
3357* Fix UMD global exports bug introduced in 0.22.1 ([#392](https://github.com/rollup/rollup/pull/392))
3358
3359## 0.22.2
3360
3361* Prevent lost `var` keywords ([#390](https://github.com/rollup/rollup/issues/390))
3362
3363## 0.22.1
3364
3365* Update expected option keys ([#379](https://github.com/rollup/rollup/issues/379))
3366* Handle transformers that return stringified sourcemaps ([#377](https://github.com/rollup/rollup/issues/377))
3367* Automatically create missing namespaces if `moduleName` contains dots ([#378](https://github.com/rollup/rollup/issues/378))
3368* Ignore external dependency warnings coming from config file ([#333](https://github.com/rollup/rollup/issues/333))
3369* Update to latest magic-string for performance boost
3370
3371## 0.22.0
3372
3373* Duplicate warnings are squelched ([#362](https://github.com/rollup/rollup/issues/362))
3374* Plugins can manipulate or override the `options` object ([#371](https://github.com/rollup/rollup/pull/371))
3375
3376## 0.21.3
3377
3378* Validate option keys ([#348](https://github.com/rollup/rollup/pull/348))
3379* Allow namespaces imports to sit alongside named imports ([#355](https://github.com/rollup/rollup/issues/355))
3380* Count references inside destructured objects ([#364](https://github.com/rollup/rollup/issues/364))
3381* Preserve top-level `delete` statements ([#352](https://github.com/rollup/rollup/issues/352))
3382
3383## 0.21.2
3384
3385* Missing relative imports are an error, not a warning ([#321](https://github.com/rollup/rollup/issues/321))
3386* Fixed incorrectly renamed default exports in ES6 bundles ([#339](https://github.com/rollup/rollup/issues/339))
3387* Fixed infinite recursion bug ([#341](https://github.com/rollup/rollup/issues/341))
3388
3389## 0.21.1
3390
3391* Remove `aggressive: true` (was too aggressive) ([#309](https://github.com/rollup/rollup/pull/309))
3392* Handle top-level block statements ([#326](https://github.com/rollup/rollup/issues/326))
3393* Optimise namespaces with default exports ([#314](https://github.com/rollup/rollup/issues/314))
3394
3395## 0.21.0
3396
3397* Only include statements whose side-effects are relevant (i.e. contribute to exports or affect global state) ([#253](https://github.com/rollup/rollup/pull/253)) ([#253](https://github.com/rollup/rollup/pull/253))
3398* Exclude dead branches from analysis and inclusion ([#249](https://github.com/rollup/rollup/pull/249))
3399* Add `aggressive: true` option to eliminate all side-effects outside entry module
3400* More informative error when re-exporting non-existent binding ([#274](https://github.com/rollup/rollup/issues/274))
3401* Fix infinite recursion bug ([#291](https://github.com/rollup/rollup/issues/291))
3402* Log errors when using `rollup --config` ([#288](https://github.com/rollup/rollup/pull/288))
3403* Return rejected promises on startup instead of throwing error, if options are invalid ([#303](https://github.com/rollup/rollup/pull/303))
3404
3405## 0.20.5
3406
3407* Ensure re-exports don't create a local binding ([#270](https://github.com/rollup/rollup/pull/270))
3408
3409## 0.20.4
3410
3411* Check file exists at resolve time, to allow filenames with non-extension dots in them ([#250](https://github.com/rollup/rollup/pull/250))
3412* Import `Promise` where used, for Node 0.10 support ([#254](https://github.com/rollup/rollup/issues/254))
3413* Allow asynchronous transformer plugins ([#260](https://github.com/rollup/rollup/issues/260))
3414* Don't assume re-exported bindings are globals when deconflicting ([#267](https://github.com/rollup/rollup/issues/267))
3415
3416
3417## 0.20.3
3418
3419* Fix bug where multiple `export *` declarations caused error ([#244](https://github.com/rollup/rollup/pulls/244))
3420* Missing namespace exports are a warning, not an error ([#244](https://github.com/rollup/rollup/pulls/244))
3421* Plugins can provide `banner` and `footer` options (string, or function that returns a string) ([#235](https://github.com/rollup/rollup/issues/235))
3422* Warn on encountering `eval` ([#186](https://github.com/rollup/rollup/issues/186))
3423
3424## 0.20.2
3425
3426* Handle errors in build config file
3427* More robust deconflicting, in cases where e.g. `foo$1` already exists
3428* Use Rollup CLI for own build process
3429
3430## 0.20.1
3431
3432* Support `--config` file to enable plugins with CLI ([#226](https://github.com/rollup/rollup/pulls/226))
3433* Prevent `default` being used as variable name ([#215](https://github.com/rollup/rollup/issues/215))
3434* Update deps
3435
3436## 0.20.0
3437
3438* Support for [plugins](https://github.com/rollup/rollup/wiki/Plugins) ([#207](https://github.com/rollup/rollup/pulls/207))
3439* BREAKING – `options.transform`, `options.load`, `options.resolveId`, `options.resolveExternal` and `options.external` are no longer supported, and should be handled by plugins. [More info](https://github.com/rollup/rollup/wiki/Plugins)
3440* BREAKING – the .js extension is only added if it looks like there's no extension, allowing e.g. `import data from 'data.json'` (with the appropriate transformer). For safety, always include the file extension – import `./foo.js`, not `./foo`
3441
3442## 0.19.2
3443
3444* Fix exporting namespaces to include all of their exports ([#204](https://github.com/rollup/rollup/issues/204))
3445* Namespace exotic objects are frozen to ensure that its properties cannot be modified, reconfigured, redefined or deleted ([#203](https://github.com/rollup/rollup/pulls/203))
3446* Fix `ReferenceError: Promise is not defined` in node v0.10 ([#189](https://github.com/rollup/rollup/issues/189))
3447
3448## 0.19.1
3449
3450* Fix `module.basename()` when used with custom `resolveId` function
3451* Use [rollup-babel](https://github.com/rollup/rollup-babel) to build self
3452* Exposed the version string through the API: `require( 'rollup' ).VERSION`
3453
3454## 0.19.0
3455
3456* **breaking** The `transform` option is no longer passed through to custom loaders. Loaders should only concern themselves with providing source code; transformation will *always* take place
3457* `options.transform` functions can return a string, or a `{code, map, ast}` object. Where possible, sourcemap chains will be flattened ([#175](https://github.com/rollup/rollup/pull/175))
3458* `options.resolveId`, `options.resolveExternal` and `options.load` can each be a function or an array of functions. If an array, the first non-null/undefined return value is used. In both cases, failed resolution/loading will fall back to the defaults, unless an error is thrown. ([#174](https://github.com/rollup/rollup/pull/174))
3459* New `intro` and `outro` options – similar to `banner` and `footer` except inserted *inside* any format-specific wrapper
3460* Multiple var declarations in an export block (e.g. `export let a = 1, b = 2`) are split up to facilitate tree-shaking ([#171](https://github.com/rollup/rollup/issues/171))
3461* More informative error when using a missing namespace property ([#169](https://github.com/rollup/rollup/pull/169))
3462* Update various dependencies
3463
3464## 0.18.5
3465
3466* Allow namespaces to be assigned to variables ([#168](https://github.com/rollup/rollup/issues/168))
3467* Promote `chalk` and `source-map-support` to `dependencies`, as they're used by the CLI ([#167](https://github.com/rollup/rollup/pull/167))
3468
3469## 0.18.4
3470
3471* Make external modules configurable (i.e. `external.config.foo = 'bar'`) without erroring
3472
3473## 0.18.3
3474
3475* Crop indent exclusion ranges to exclude enclosing quotes ([#166](https://github.com/rollup/rollup/issues/166))
3476
3477## 0.18.2
3478
3479* Include definitions of namespace members that are exported as defaults
3480
3481## 0.18.1
3482
3483* Include `acorn.parse` in bundle, remove `sander` from dependencies, simplify build
3484
3485## 0.18.0
3486
3487* Internal rewrite
3488* Reinstate statically-analysable namespace imports
3489* Avoid using getters in namespace blocks where possible ([#144](https://github.com/rollup/rollup/issues/144))
3490* Track variable aliases ([#96](https://github.com/rollup/rollup/issues/96))
3491* Prevent multiline strings being indented ([#164](https://github.com/rollup/rollup/issues/164))
3492
3493## 0.17.4
3494
3495* Allow imports from hidden directories (replay of [#133](https://github.com/rollup/rollup/issues/133))
3496
3497## 0.17.3
3498
3499* Handle parenthesised default exports ([#136](https://github.com/rollup/rollup/issues/136))
3500
3501## 0.17.2
3502
3503* Allow use of scoped npm packages ([#131](https://github.com/rollup/rollup/issues/131))
3504
3505## 0.17.1
3506
3507* Allow namespaces to be passed to a function ([#149](https://github.com/rollup/rollup/issues/149))
3508
3509## 0.17.0
3510
3511* Roll back to 0.15.0 and reapply subsequent fixes pending resolution of ([#132](https://github.com/rollup/rollup/issues/132)) and related issues
3512
3513## 0.16.4
3514
3515* Fix import paths with `.` ([#133](https://github.com/rollup/rollup/issues/133))
3516* Prevent sourceMappingURL confusion leading to broken sourcemap
3517* Add code coverage reporting [#130](https://github.com/rollup/rollup/pull/130))
3518* Add `modules` property to user-facing `bundle` – an array with `{id}` objects ([#128](https://github.com/rollup/rollup/issues/128))
3519
3520## 0.16.3
3521
3522* Prevent adjacent blocks of multiple var declarations causing magic-string failure ([#105](https://github.com/rollup/rollup/issues/105))
3523
3524## 0.16.2
3525
3526* Top-level function calls and assignments to globals are treated as side-effects, and always included
3527* Import files from subdirectories of external packages, e.g. `import mod from 'foo/sub/mod'` ([#126](https://github.com/rollup/rollup/issues/126))
3528
3529## 0.16.1
3530
3531* Handle assignment patterns, and destructured/rest parameters, when analysing scopes
3532* Fix bug preventing project from self-building (make base `Identifier` class markable)
3533
3534## 0.16.0
3535
3536* Internal refactoring ([#99](https://github.com/rollup/rollup/pull/99))
3537* Optimisation for statically-analysable namespace imports ([#99](https://github.com/rollup/rollup/pull/99))
3538* Windows support (theoretically!) ([#117](https://github.com/rollup/rollup/pull/117) / [#119](https://github.com/rollup/rollup/pull/119))
3539
3540## 0.15.0
3541
3542* Load all modules specified by `import` statements, and do tree-shaking synchronously once loading is complete. This results in simpler and faster code, and enables future improvements ([#97](https://github.com/rollup/rollup/pull/97))
3543* Only rewrite `foo` as `exports.foo` when it makes sense to ([#92](https://github.com/rollup/rollup/issues/92))
3544* Fix bug with shadowed variables that are eventually exported ([#91](https://github.com/rollup/rollup/issues/91))
3545* Exclude unused function declarations that happen to modify a used name ([#90](https://github.com/rollup/rollup/pull/90))
3546* Simplify internal `Scope` model – scopes always attach to blocks, never function expressions/declarations
3547
3548## 0.14.1
3549
3550* `export { name } from './other'` does not create a local binding ([#16](https://github.com/rollup/rollup/issues/16))
3551* A single binding can be exported under multiple names ([#18](https://github.com/rollup/rollup/issues/18))
3552* `useStrict` option exposed to CLI as `--strict`/`--no-strict` ([#81](https://github.com/rollup/rollup/issues/81))
3553* Neater exports from ES6 bundles
3554
3555## 0.14.0
3556
3557* Internal refactoring
3558* Correctly deconflict generated default export names ([#72](https://github.com/rollup/rollup/issues/72))
3559* Handle `export { x } from 'y'` declarations ([#74](https://github.com/rollup/rollup/issues/74))
3560* Dedupe named imports from external modules in ES6 bundles ([#77](https://github.com/rollup/rollup/issues/77))
3561
3562## 0.13.0
3563
3564* Support `banner` and `footer` options ([#66](https://github.com/rollup/rollup/pull/66))
3565* Remove pre-existing sourcemap comments ([#66](https://github.com/rollup/rollup/pull/66))
3566* Deconflict external imports ([#66](https://github.com/rollup/rollup/pull/66))
3567* Use existing AST, if provided ([#66](https://github.com/rollup/rollup/pull/66))
3568* Rename internal namespace exports as appropriate ([#66](https://github.com/rollup/rollup/pull/66))
3569* Remove uninitialised var declarations that get exported ([#66](https://github.com/rollup/rollup/pull/66))
3570* Rename variables named `exports` to avoid conflicts ([#66](https://github.com/rollup/rollup/pull/66))
3571
3572## 0.12.1
3573
3574* Don't attempt to mark statements belonging to external modules ([#68](https://github.com/rollup/rollup/issues/68))
3575* Correctly deshadow variables that conflict with imports ([#68](https://github.com/rollup/rollup/issues/68))
3576
3577## 0.12.0
3578
3579* Internal re-architecting, resulting in more efficient bundling with reduced memory usage
3580* Shorthand properties are expanded if necessary ([#61](https://github.com/rollup/rollup/issues/61))
3581* Fixed various bugs with bundle external dependencies, particularly when generating ES6 bundles ([#59](https://github.com/rollup/rollup/issues/59))
3582* Add `--globals` option to CLI ([#60](https://github.com/rollup/rollup/pull/60))
3583* Allow imports of external modules for side-effects ([#55](https://github.com/rollup/rollup/pull/55))
3584* Prevent Rollup hanging on non-existent external module ([#54](https://github.com/rollup/rollup/pull/54))
3585
3586## 0.11.4
3587
3588* Side-effect preservation applies to internal default exports ([#43](https://github.com/rollup/rollup/issues/43))
3589
3590## 0.11.3
3591
3592* Class methods are not incorrectly renamed ([#42](https://github.com/rollup/rollup/issues/42))
3593* External modules are assigned names before canonical names are determined ([#42](https://github.com/rollup/rollup/issues/42))
3594
3595## 0.11.2
3596
3597* Correctly handle computed properties (e.g. `foo[bar]`) when discovering dependencies ([#47](https://github.com/rollup/rollup/pull/47))
3598
3599## 0.11.1
3600
3601* Support for `export * from '..'` ([#46](https://github.com/rollup/rollup/pull/46))
3602
3603## 0.11.0
3604
3605* Experimental browser-friendly build (`dist/rollup.browser.js`) ([#25](https://github.com/rollup/rollup/issues/25))
3606* Internal re-architecting to make discovery process simpler and more performant
3607* Preservation of side-effects that happen in a separate module to the affected definition ([#39](https://github.com/rollup/rollup/issues/39))
3608
3609## 0.10.0
3610
3611* Better sorting algorithm – sorting happens at the module level, rather than the statement level. This avoids certain edge cases
3612* IIFEs are ignored for the purposes of distinguishing between 'strong' and 'weak' dependencies
3613* Empty `var` declarations for exported bindings are omitted
3614
3615## 0.9.1
3616
3617* Much faster statement insertion (fixes major 0.9.0 performance regression)
3618
3619## 0.9.0
3620
3621* BREAKING - `resolvePath` is now `resolveId`. The returned `id` (which by default is a filepath) is passed to the `load` function, which can optionally be overridden, and which is applied to all modules including the entry module. This allows custom resolver and loading logic for integration with third party systems (e.g. JSPM) or, eventually, in-browser usage ([#30](https://github.com/rollup/rollup/issues/30))
3622* A statement cannot appear after later statements from the same bundle ([#34](https://github.com/rollup/rollup/issues/34))
3623* Tricky cyclical dependencies are handled ([#36](https://github.com/rollup/rollup/issues/36))
3624* `sourcemap` option is used by CLI (was omitted previously)
3625
3626## 0.8.3
3627
3628* Correctly rename functions that have arguments with the same name ([#32](https://github.com/rollup/rollup/issues/32))
3629* Ensure unused default exports are given a legal name ([#33](https://github.com/rollup/rollup/issues/33))
3630
3631## 0.8.2
3632
3633* Support `moduleId` and `moduleName` via CLI ([#24](https://github.com/rollup/rollup/issues/24))
3634
3635## 0.8.1
3636
3637* Anonymous functions that are exported as default are converted to named function declarations for correct hoisting, rather than being bound to functions ([#29](https://github.com/rollup/rollup/issues/29))
3638* Automatically-generated default export names are deconflicted with local definitions ([#29](https://github.com/rollup/rollup/issues/29))
3639
3640## 0.8.0
3641
3642* Top-level variable declarations with multiple declarators are split up, to avoid unnecessary code importing and incorrectly-ordered statements ([#26](https://github.com/rollup/rollup/issues/26))
3643* `this` at the top level is `undefined` ([#28](https://github.com/rollup/rollup/issues/28))
3644
3645## 0.7.8
3646
3647* Avoid using `path.parse` - unsupported in node 0.10
3648
3649## 0.7.7
3650
3651* Promise `source-map-support` from `devDependencies` to `dependencies` ([#23](https://github.com/rollup/rollup/issues/23))
3652
3653## 0.7.6
3654
3655* Better placement of `export default` statements ([#21](https://github.com/rollup/rollup/issues/21))
3656* Prevent function calls and property assignments from being treated as rebinding for sake of unbound default exports
3657* Add `--external foo,bar,baz` option to CLI (equivalent to `external: ['foo', 'bar', 'baz']`)
3658* Add CLI tests
3659
3660## 0.7.5
3661
3662* Prevent accidental conflicts with the global namespace ([#20](https://github.com/rollup/rollup/issues/20))
3663
3664## 0.7.4
3665
3666* More precise statement re-ordering to satisfy `export default` constraint (fixes bug introduced in 0.7.3)
3667
3668## 0.7.3
3669
3670* Default exports are not bound. To enable this, statements within a module are sorted to retain their original order ([#15](https://github.com/rollup/rollup/issues/15))
3671* Better positioning of comments ([#14](https://github.com/rollup/rollup/issues/14))
3672* Various fixes to get Travis-CI rigged up
3673
3674## 0.7.2
3675
3676* Fix sourcemap paths on Windows ([#6](https://github.com/rollup/rollup/pull/6))
3677
3678## 0.7.1
3679
3680* Named functions can be used as default exports from a bundle
3681* Method calls are assumed to mutate the owner (i.e. `foo.bar()` mutates `foo`) ([#13](https://github.com/rollup/rollup/issues/13))
3682* `options.indent` can be used to control indentation of resulting bundle. `options.true` (default) means 'auto', `options.false` means empty string. Alternatively specify whitespace e.g. `' '` or `'\t'` ([#5](https://github.com/rollup/rollup/issues/5))
3683
3684## 0.7.0
3685
3686* Ensure statements are always separated by a newline ([#9](https://github.com/rollup/rollup/pull/9))
3687* Use CommonJS `exports` correctly (UMD exports)
3688* Throw error if `moduleName` is required but missing (UMD exports)
3689* Attach IIFE global to `this` rather than `window`
3690* Allow names inside bundle to the the names of `Object.prototype` properties ([#12](https://github.com/rollup/rollup/pull/12))
3691* Keep exports live ([#11](https://github.com/rollup/rollup/pull/11))
3692
3693## 0.6.5
3694
3695* Add sourceMappingURL comment to code, as appropriate
3696* Higher resolution sourcemaps
3697
3698## 0.6.4
3699
3700* Fix CJS bundling with default export
3701
3702## 0.6.3
3703
3704* Fix exports and external module imports with some output formats
3705* Fix endless cycle bug on Windows ([#3](https://github.com/rollup/rollup/pull/3)) - thanks @Bobris
3706
3707## 0.6.2
3708
3709* Permit assignments to properties of imported bindings
3710
3711## 0.6.1
3712
3713* Support for basic transformers
3714
3715## 0.6.0
3716
3717* BREAKING - `rollup.rollup` and `bundle.write` both take a single options argument
3718* BREAKING - external modules must be declared upfront with `options.external: [...]`
3719* Non-relative module paths will be resolved by looking for `jsnext:main` fields in the appropriate `package.json` files. This behaviour can be overridden by passing an alternative `resolveExternal` function
3720* Fix sourcemap options
3721* Include CLI files in npm package (duh)
3722
3723## 0.5.0
3724
3725* Command line interface
3726* Sourcemap generation
3727* Correct behaviour with `export { x as y } from 'z'`
3728
3729## 0.4.1
3730
3731* More import name deconflicting
3732
3733## 0.4.0
3734
3735* Self-hosting! `rollup.rollup` now rolls up rollup
3736* Fix bug with comments inside a statement later being appended to it
3737* Prevent shadowing of external modules
3738* Rewrite computed property identifiers where necessary
3739* Preserve original statement order where possible
3740* Internal refactoring
3741
3742## 0.3.1
3743
3744* Saner deconflicting
3745* Rename namespace imports from external modules correctly
3746
3747## 0.3.0
3748
3749* Basic functionality present, mostly spec-compliant
3750
3751## 0.2.1
3752
3753* Include dist files in npm package (duh)
3754
3755## 0.2.0
3756
3757* First release capable of doing anything useful
3758* Still lots of basic functionality missing
3759
3760## 0.1.0
3761
3762* Initial experiment