Time slots app prototype
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

245 KiB

rollup changelog

2.79.1

2022-09-22

Bug Fixes

  • Avoid massive performance degradation when creating thousands of chunks (#4643)

Pull Requests

2.79.0

2022-08-31

Features

  • Add amd.forceJsExtensionForImports to enforce using .js extensions for relative AMD imports (#4607)

Pull Requests

2.78.1

2022-08-19

Bug Fixes

  • Avoid inferring "arguments" as name for a default export placeholder variable (#4613)

Pull Requests

2.78.0

2022-08-14

Features

  • Support writing plugin hooks as objects with a "handler" property (#4600)
  • Allow changing execution order per plugin hook (#4600)
  • Add flag to execute plugins in async parallel hooks sequentially (#4600)

Pull Requests

2.77.3

2022-08-11

Bug Fixes

  • Correctly resolve preserveModulesRoot in Vite (#4591)

Pull Requests

2.77.2

2022-07-27

Bug Fixes

  • Avoid a rendering failure when mixing outputs with inlined and non-inlined dynamic imports (#4589)

Pull Requests

2.77.1

2022-07-26

Bug Fixes

  • Ensure IIFE output generates a global variable when generating ES5 (#4588)

Pull Requests

2.77.0

2022-07-15

Features

  • Introduce maxParallelFileOps to limit both read and write operations, default to 20 and replaces maxParallelFileRead (#4570)

Bug Fixes

  • Avoid including variables referenced from return statements that are never reached (#4573)

Pull Requests

2.76.0

2022-07-08

Features

  • Allow setting a sourcmapBaseUrl for absolute paths in sourcemaps (#4527)

Bug Fixes

  • Support absolute CLI plugin paths on Windows (#4533)

Pull Requests

2.75.7

2022-06-20

Bug Fixes

  • Mark Array.prototype.group/groupToMap as side effect free. (#4531)

Pull Requests

2.75.6

2022-06-07

Bug Fixes

  • Properly deoptimize "this" when using member expressions with getters/setters in for loops and update expressions (#4522)

Pull Requests

2.75.5

2022-06-01

Bug Fixes

  • Avoid crashes when using logical expressions for unused constructor arguments (#4519)
  • Fix missing parameter defaults for calls from try statements and functions returned by functions (#4520)

Pull Requests

2.75.4

2022-05-31

Bug Fixes

  • Ensure parameter defaults are retained when a function is used as an object property (#4516)

Pull Requests

  • #4516: Deoptimize parameter defaults when referenced from object/array/class literals (@lukastaegert)

2.75.3

2022-05-29

Bug Fixes

  • Retain parameter defaults for functions that are defaults themselves (#4515)
  • Track mutations for objects as default values (#4515)

Pull Requests

2.75.1

2022-05-28

Pull Requests

2.75.0

2022-05-27

Features

  • Re-implement default parameter tree-shaking for top-level functions (#4510)
  • Do not consider calling string methods like .trim() on template literals a side effect (#4511)

Pull Requests

2.74.1

2022-05-19

Bug Fixes

  • Revert #4498 until some issues are understood and resolved

2.74.0

2022-05-19

Features

  • Remove unneeded default values for function parameters (#4498)

Bug Fixes

  • Use a consistent mechanism to resolve the config file to avoid issues on Windows (#4501)
  • Avoid an inaccurate warning about an event emitter leak for complicated builds (#4502)
  • Ensure that reexporting values from other chunks via dynamic imports does not reference non-imported variables (#4499)

Pull Requests

2.73.0

2022-05-13

Features

  • Do not treat Object.defineProperty/ies as side effect when called on an unused object (#4493)
  • Do not assume that assigning a property can create a getter with side effects (#4493)
  • Do not treat string.prototype.replace(All) as side effect when used with two literals (#4493)

Bug Fixes

  • Detect side effects when manually declaring getters on functions (#4493)

Pull Requests

2.72.1

2022-05-07

Bug Fixes

  • Improve tree-shaking of classes with super classes in certain scenarios (#4489)

Pull Requests

2.72.0

2022-05-05

Features

  • Add CLI hooks to run external commands at certain points in watch mode (#4457)

Bug Fixes

  • Fix an issue that could accidentally treat relevant assignments as side effect free (#4486)

Pull Requests

2.71.1

2022-04-30

Bug Fixes

  • Allow importing loadConfigFile without extension (#4483)

Pull Requests

2.71.0

2022-04-30

Features

  • Mark Object.hasOwn as pure (#4482)

Bug Fixes

  • Prevent infinite recursion and display proper warning for recursive reexports (#4472)
  • Fix type issue in TypeScript nightly (#4471)

Pull Requests

2.70.2

2022-04-15

Bug Fixes

  • Do not enforce undefined return values in TypeScript types (#4463)

Pull Requests

2.70.1

2022-03-14

Bug Fixes

  • Handle unfinished hook action errors as regular errors and avoid console logging (#4434)
  • Allow access to "dist" folder in a Node 17 compatible way (#4436)

Pull Requests

2.70.0

2022-03-07

Features

  • Make the watchChange and closeWatcher hooks asynchronous and make Rollup wait for these hooks before continuing (#4427)

Bug Fixes

  • Do not abort watch mode for errors in watchChange but display them properly (#4427)

Pull Requests

2.69.2

2022-03-06

Bug Fixes

  • Mark Object.entries and Object.fromEntries as pure (#4429)
  • Make sure new properties on Array.prototype and Object.prototype are not evaluated as "undefined" (#4428)

Pull Requests

2.69.1

2022-03-04

Bug Fixes

  • Approximate source position instead of ignoring it when using a low-resolution source map in a transform hook (#4334)

Pull Requests

2.69.0

2022-03-02

Features

  • Introduce new output.generatedCode.symbols to control the usage of Symbols in Rollup-generated code (#4378)
  • soft-deprecate output.namespaceToStringTag in favor of output.generatedCode.symbols (#4378)

Bug Fixes

  • Properly handle ./ and ../ as external dependencies (#4419)
  • Make generated "Module" namespace toStringTag non-enumerable for correct Object.assign/spread behaviour (#4378)
  • Add file name to error when top-level-await is used in disallowed formats (#4421)

Pull Requests

2.68.0

2022-02-22

Features

  • provide information about cached import resolutions in shouldTransformCachedModule (#4414)
  • Add "types" field to Rollup's package exports (#4416)

Pull Requests

2.67.3

2022-02-18

Bug Fixes

  • Do not swallow other errors when unfinished hook actions are detected (#4409)
  • Add additional information to output when there are unfinished hook actions (#4409)

Pull Requests

2.67.2

2022-02-10

Bug Fixes

  • Ensure consistent order between manual chunks to fix hashing issues (#4397)

Pull Requests

2.67.1

2022-02-07

Bug Fixes

  • Make chunk file and variable names more deterministic when emitting chunks (#4386)
  • Improve default module resolver performance by using non-blocking IO (#4386)

Pull Requests

2.67.0

2022-02-02

Features

  • Improve side effect detection when using Array.prototype.groupBy/groupByToMap (#4360)
  • Allow changing moduleSideEffects at any time during the build (#4379)
  • Soft-deprecate ModuleInfo.hasModuleSideEffects in favour of ModuleInfo.moduleSideEffects (#4379)

Bug Fixes

  • Do not include queries and hashes in generated file names when preserving modules (#4374)

Pull Requests

2.66.1

2022-01-25

Bug Fixes

  • Only warn for conflicting names in namespace reexports if it actually causes problems (#4363)
  • Only allow explicit exports or reexports as synthetic namespaces and hide them from namespace reexports (#4364)

Pull Requests

2.66.0

2022-01-22

Features

  • Note if a module has a default export in ModuleInfo to allow writing better proxy modules (#4356)
  • Add option to wait until all imported ids have been resolved when awaiting this.load (#4358)

Pull Requests

2.65.0

2022-01-21

Features

  • Add complete import resolution objects to ModuleInfo for use in this.load (#4354)

Bug Fixes

  • Use correct context in plugin hooks with perf: true (#4357)

Pull Requests

2.64.0

2022-01-14

Features

  • Allow inspecting cached modules and forcing them to be transformed again via shouldTransformCachedModule (#4320)
  • Do not wait for the config file to be parsed in watch mode if it is updated before that (#4344)

Bug Fixes

  • Do not mutate objects returned as meta from the resolveId hook (#4347)

Pull Requests

2.63.0

2022-01-04

Features

  • Report a helpful error if rollup exits due to an empty event loop when using this.load (#4320)
  • Allow directly mutating ModuleInfo.meta for modules and never replace this object (#4328)
  • Detect additional side effect free array prototype methods (#4332)

Bug Fixes

  • Do not watch if CLI watch options are specified but --watch is missing (#4335)

Pull Requests

2.62.0

2021-12-24

Features

  • Mark additional string prototype methods as side-effect-free and correct typings of existing ones (#4299)
  • Mark additional array prototype methods as side-effect-free and correct typings of existing ones (#4309)
  • Expose if a module is included after tree-shaking in its ModuleInfo (#4305)

Bug Fixes

  • Fix how fsevents is included to improve watch mode on MacOS (#4312)

Pull Requests

2.61.1

2021-12-11

Bug Fixes

  • Only resolve this.load once the code of the module is available (#4296)

Pull Requests

2.61.0

2021-12-09

Features

  • Support ergonomic brand checks for private fields (#4293)

Bug Fixes

  • Improve handling of directory creation on systems with restrictive open files limit (#4288)

Pull Requests

2.60.2

2021-11-30

Bug Fixes

  • Produce correct output when dynamic import paths contain quotes (#4286)

Pull Requests

2.60.1

2021-11-22

Bug Fixes

  • Make sure virtual files have proper file extensions when preserving modules (#4270)

Pull Requests

  • #4270: Use entryFileNames when generating filenames for virtual modules (@BPScott)

2.60.0

2021-11-11

Features

  • Add this.load context function to load, transform and parse modules without adding them to the graph (#4234)
  • Sanitize non-url-safe characters in generated chunk names by default (#4262)
  • Support ESM plugins via command line (#4265)

Pull Requests

2.59.0

2021-11-01

Features

  • Support static class initialization blocks (#4249)

Bug Fixes

  • Fix an issue with the CommonJS plugin when module.exports has inherited properties (#4256)

Pull Requests

2.58.3

2021-10-25

Bug Fixes

  • Republish 2.58.1 with npm 6 as files were missing

2.58.2

2021-10-25

Bug Fixes

  • Republish 2.58.1 as files were missing

2.58.1

2021-10-25

Bug Fixes

  • Fix an issue with the CommonJS plugin when module.exports is falsy (#4247)

Pull Requests

2.58.0

2021-10-01

Features

  • Add a flag to more reliably identify entry points in the resolveId hook (#4230)

Pull Requests

2.57.0

2021-09-22

Features

  • Add generatedCode option to allow Rollup to use es2015 features for smaller output and more efficient helpers (#4215)
  • Improve AMD and SystemJS parsing performance by wrapping relevant functions in parentheses (#4215)
  • Using preferConst will now show a warning with strictDeprecations: true (#4215)

Bug Fixes

  • Improve ES3 syntax compatibility by more consequently quoting reserved words as props in generated code (#4215)
  • Do not use Object.assign in generated code to ensure ES5 compatibility without the need for polyfills (#4215)
  • Support live-bindings in dynamic namespace objects that contain reexported external or synthetic namespaces (#4215)
  • Use correct "this" binding in dynamic import expressions for CommonJS and AMD (#4215)
  • Properly handle shimMissingExports for exports that are only used internally (#4215)
  • Prevent unhandled rejection for failed module parsing (#4228)

Pull Requests

2.56.3

2021-08-23

Bug Fixes

  • Make sure moduleInfo contains complete information about imported ids in the moduleParsed hook (#4208)

Pull Requests

2.56.2

2021-08-10

Bug Fixes

  • Check if after simplification, an object pattern would become an expression statement or arrow function return value (#4204)

Pull Requests

  • #4204: Do not create invalid code when simplifying object pattern assignments (@lukastaegert)

2.56.1

2021-08-08

Bug Fixes

  • Fix rendering of SystemJS export declarations initialized with a simplifiable expression (#4202)

Pull Requests

2.56.0

2021-08-05

Features

  • Create more efficient code for SystemJS exports (#4199)
  • Extend maxParallelFileReads option to also throttle plugin load hooks (#4200)

Bug Fixes

  • Return correct value for postfix update expressions of exported variables (#4194)

Pull Requests

2.55.1

2021-07-29

Bug Fixes

  • Improve CLI warning message for unused external imports (#4194)

Pull Requests

  • #4194: Align batch warning for UNUSED_EXTERNAL_IMPORT to individual warning (@benmccann)

2.55.0

2021-07-28

Features

  • Support default export live-bindings when generating ESM output (#4182)

Bug Fixes

  • Always write ["default"] as computed property when used as named export (#4182)
  • Do not mask default export TDZ errors (#4182)

Pull Requests

2.54.0

2021-07-25

Features

  • Extend UMD import.meta.url polyfill to support web workers (#4186)

Bug Fixes

  • Resolve an issue where certain uses of classes could lead to an infinite recursion (#4189)

Pull Requests

2.53.3

2021-07-21

Bug Fixes

  • Solve an issue that could lead to severe memory issues and crashes when there are a lot of hoisted variables (#4183)

Pull Requests

2.53.2

2021-07-15

Bug Fixes

  • Identify additional TDZ situations in functions that are run more than once (#4177)
  • Fix a scoping issue when a variable inside a catch scope matches the scope parameter's name (#4178)

Pull Requests

  • #4177: Fix additional let/var init bugs (@kzc)
  • #4178: Correctly create outside variable when shadowed by catch parameter (@lukastaegert)

2.53.1

2021-07-11

Bug Fixes

  • Do not omit namespace reexports when treeshake is false (#4175)

Pull Requests

2.53.0

2021-07-09

Features

  • Add maxParallelFileReads option to limit read operations with a default of 20 (#4170)

Pull Requests

  • #4170: Limit parallel file reads to prevent "EMFILE: too many open files" error (@schummar)

2.52.8

2021-07-07

Bug Fixes

  • Automatically handle many use var before declaration and TDZ access scenarios correctly without the need for treeshake.correctVarValueBeforeDeclaration (#4148)

Pull Requests

2.52.7

2021-07-02

Bug Fixes

  • Fix an issue where reassignments where not tracked through async function returns (#4163)

Pull Requests

2.52.6

2021-07-01

Bug Fixes

  • Fix an issue where reassignments where not tracked through an await expression (#4162)

Pull Requests

2.52.5

2021-07-01

Bug Fixes

  • Properly display parser errors not tied to a code location (#4160)

Pull Requests

  • #4160: fix: max stack call error is caught on locate (@semoal)

2.52.4

2021-06-30

Bug Fixes

  • Fix an error when external namespaces are reexported across several files (#4159)

Pull Requests

2.52.3

2021-06-25

Bug Fixes

  • Fix an issue where code was wrongly removed when using vars in nested scopes (#4149)

Pull Requests

2.52.2

2021-06-21

Bug Fixes

  • Support falsy plugins in types (#4144)
  • Do not require return value in renderChunkHook type (#4144)

Pull Requests

2.52.1

2021-06-17

Bug Fixes

  • Fix a memory leak in watch mode (#4142)

Pull Requests

2.52.0

2021-06-16

Features

  • Add --configPlugin CLI option to apply plugins to the config file for e.g. TypeScript configs (#3835)
  • Add "safest" and "smallest" presets to tree-shaking options for easier configuration (#4131)
  • Add treeshake.correctVarValueBeforeDeclaration option to deoptimize var declarations (#4139)

Pull Requests

2.51.2

2021-06-11

Bug Fixes

  • Include modules imported from no-treeshake modules even if they would be empty (#4138)

Pull Requests

2.51.1

2021-06-08

Bug Fixes

  • Fix error when using defineConfig (#4134)

Pull Requests

2.51.0

2021-06-06

Features

  • Add a helper for IntelliSense support in config files (#4127)

Bug Fixes

  • Improve performance when generating source maps (#4122)

Pull Requests

  • #4122: User Map to optimize performance (@izevo)
  • #4127: Export defineConfig defines the auxiliary function of the configuration (@rxliuli)

2.50.6

2021-06-03

Bug Fixes

  • Do not consider the object spread operator as side effect when propertyReadSideEffects are false (#4119)
  • Detect side effects when returning thenables from async arrow functions (#4120)

Pull Requests

2.50.5

2021-05-30

Bug Fixes

  • Detect side effects when accessing thenables (#4115)

Pull Requests

2.50.4

2021-05-29

Bug Fixes

  • Fix a situation where tree-shaking would stop including nodes prematurely (#4111)
  • Track mutations and accessor side effects when using __proto__ in an object literal (#4112)
  • Check for getter effects when spreading an object (#4113)

Pull Requests

  • #4111: Always request a new tree-shaking pass when deoptimizations of a node are first included (@lukastaegert)
  • #4112: Actually set the prototype when using a proto property (@lukastaegert)
  • #4113: Track access side effects when using object spread operator (@lukastaegert)

2.50.3

2021-05-28

Bug Fixes

  • Wrap parentheses around leading elements in simplified sequence expressions if this would otherwise lead to invalid code (#4110)
  • Do not associate block soped variables in catch clauses with the clause parameter (#4108)
  • Do not associate hoisted variables in catch clauses with outside variables if they match the parameter (#4108)
  • Use correct "this" context for tagged template literal member expressions in simplified sequences (#4110)

Pull Requests

2.50.2

2021-05-27

Bug Fixes

  • Avoid unnecessary side effects when using methods like .filter and .map (#4103)
  • Avoid crash when a module with moduleSideEffects no-treeshake imports a tree-shaken module (#4104)

Pull Requests

2.50.1

2021-05-26

Bug Fixes

  • Do not associate pure annotations in simplified expressions with wrong elements (#4095)
  • Prevent invalid code when simplified conditionals start with an IIFE function expression (#4099)

Pull Requests

2.50.0

2021-05-25

Features

  • Only include last elements of comma expressions if they are used or have side effects (#4087)

Bug Fixes

  • Prevent a crash that could occur when calling object methods (#4091)

Pull Requests

2.49.0

2021-05-23

Features

  • Detect side-effect-free static class methods and properties (#4018)
  • Detect side-effect-free array elements (#4018)
  • Do not apply deoptimizations from dead code (#4018)

Bug Fixes

  • Handle side effect detection for getters and setters added in untracked code (#4018)
  • Track "this" mutations for methods, getters and setters (#4018)

Pull Requests

2.48.0

2021-05-15

Features

  • Add replacement to conditionally insert asset extensions in entryFileNames when preserving modules (#4077)

Bug Fixes

  • Fix crash when dynamically assigning to namespace members (#4070)
  • Do not associate pure annotations in front of a semi-colon or comma with succeeding code (#4068)

Pull Requests

2.47.0

2021-05-04

Features

  • Warn about ambiguous imports from combined external namespace reexports (#4064)
  • In case of combined namespace reexports, always prefer local exports over external namespaces (#4064)
  • Treat conflicting names in local namespace reexports as undefined (#4064)

Pull Requests

  • #4064: Prefer locally defined exports and reexports over external namespaces (@lukastaegert)

2.46.0

2021-04-29

Features

  • Add option to disable file name sanitation (#4058)
  • Add information about importers to unused external import warning (#4054)

Pull Requests

2.45.2

2021-04-13

Bug Fixes

  • Do not user a dynamic entry file name for naming a manual chunk (#4040)

Pull Requests

2.45.1

2021-04-10

Bug Fixes

  • Handle falsy return values from async plugin options hooks (#4039)

Pull Requests

  • #4039: Do not fail when returning null or undefined from an async options hook (@lukastaegert)

2.45.0

2021-04-09

Features

  • Support private class instance methods and accessors (#4034)

Pull Requests

2.44.0

2021-03-29

Features

  • Add a new option makeAbsoluteExternalsRelative to opt out of renormalizing absolute external ids to relative ids (#4021)
  • Extend the resolveId plugin hook to allow forcing or preventing renormalization of absolute external ids (#4021)
  • Make the rendered code of individual modules available in the generated bundle (#4028)

Bug Fixes

  • Handle objects with __proto__ properties correctly (#4019)

Pull Requests

2.43.1

2021-03-28

Bug Fixes

  • Prevent infinite recursions in certain scenarios when calling object properties (#4025)

Pull Requests

2.43.0

2021-03-27

Features

  • Track side effects of function properties in objects for better tree-shaking (#4011)

Pull Requests

  • #4011: Disable pessimistic object deoptimization for calls when the called function doesn't ref this (@marijnh)
  • #4012: fix sourcemap reference in docs (@tjenkinson)
  • #4015: Use SIGTERM instead of SIGINT to kill test child processes in tests (@marijnh)

2.42.4

2021-03-24

Bug Fixes

  • Do not discard plugin return values when using perf option (#4010)

Pull Requests

2.42.3

2021-03-22

Bug Fixes

  • Do not ignore #__PURE__ comments in front of optional chaining expressions (#4007)

Pull Requests

2.42.2

2021-03-22

Bug Fixes

  • Use correct import.meta.url in relative imports from transpiled config files (#4005)

Pull Requests

2.42.1

2021-03-20

Bug Fixes

  • Do not produce unhandled Promise rejections when plugins throw while using the perf option (#4004)

Pull Requests

2.42.0

2021-03-19

Features

  • Prevent infinite loops when several plugins are using this.resolve in their resolveId hook (#4000)

Pull Requests

2.41.5

2021-03-18

Bug Fixes

  • Make sure unused property accesses of external namespaces can be tree-shaken (#4001)

Pull Requests

  • #4001: Do not count accessing members of an external namespace as side-effects (@lukastaegert)

2.41.4

2021-03-16

Bug Fixes

  • Do not replace external namespace imports with individual named imports to avoid changing behaviour with regard to missing exports (#3999)

Pull Requests

2.41.3

2021-03-16

Bug Fixes

  • Always retain arguments passed to empty object pattern parameters (#3998)

Pull Requests

  • #3998: Do not create invalid code if a function argument is an empty object pattern (@lukastaegert)

2.41.3

2021-03-16

Bug Fixes

  • Always retain arguments passed to empty object pattern parameters (#3998)

Pull Requests

  • #3998: Do not create invalid code if a function argument is an empty object pattern (@lukastaegert)

2.41.2

2021-03-12

Bug Fixes

  • Also remove sourcemaps comments if plugins return a pre-made ast (#3987)

Pull Requests

2.41.1

2021-03-11

Pull Requests

2.41.0

2021-03-09

Features

  • Add option to treeshake.propertyReadSideEffects to keep all property accesses (#3985)

Bug Fixes

  • Also respect pure comment annotations when a plugin provides an AST in the transform hook provided they use this.parse (#3981)

Pull Requests

  • #3981: Move pure comment annotation to Graph.contextParse (@yannayl)
  • #3985: implement --treeshake.propertyReadSideEffects=always to handle getters with side effects (@kzc)

2.40.0

2021-02-26

Features

  • Make sure that entry point variable names take precedence over variable names in dependencies when deconflicting (#3977)

Bug Fixes

  • Replace : in generated file names to prevent invalid files on Windows (#3972)

Pull Requests

2.39.1

2021-02-23

Bug Fixes

  • Make sure local variables named Symbol, Object or Promise do not conflict with code generated by Rollup (#3971)

Pull Requests

2.39.0

2021-02-12

Features

  • Add "validate" option to verify generated chunks are valid JavaScript (#3952)

Bug Fixes

  • Always add exports properties for uninitialized named exports (#3957)
  • Allow using an external namespace reexport together with named exports (#3959)
  • Avoid invalid generated code in certain scenarios with SystemJS exports (#3960)

Pull Requests

2.38.5

2021-02-05

Bug Fixes

  • Prevent invalid code when simplifying assignments and delcarations (#3951)
  • Prevent behaviour-changing line-breaks when simplifying assignments in return statements (#3951)
  • Slightly improve white-space rendering when simplifying certain expressions (#3951)

Pull Requests

2.38.4

2021-02-02

Bug Fixes

  • Do not change logic when tree-shaking declarations in if statements or loops (#3947)

Pull Requests

2.38.3

2021-02-01

Bug Fixes

  • Prevent an unexpected live-binding when default exporting a synthetic named export (#3946)

Pull Requests

2.38.2

2021-01-31

Bug Fixes

  • Do not generate invalid code for partially tree-shaken declarations in for loops (#3943)
  • Always include function bodies of functions in side-effect-free modules (#3944)

Pull Requests

  • #3943: Do not partially tree-shake unused declarations in for loops (@lukastaegert)
  • #3944: Correctly include functions with side effects from side-effect-free modules (@lukastaegert)

2.38.1

2021-01-28

Bug Fixes

  • Fix internal error when resolving a missing entry point in the browser build (#3935)

Pull Requests

2.38.0

2021-01-22

Features

  • Entirely remove declared variables that only have an initializer side effect (#3933)

Pull Requests

  • #3933: Tree-shake unused declarations while keeping initializer side-effects (@lukastaegert)

2.37.1

2021-01-20

Pull Requests

2.37.0

2021-01-19

Features

  • Always check modules for side effects that only indirectly reexport a used variable (#3840)
  • Warn if a circular dependency would cause wrong execution order when preserving modules (#3840)

Bug Fixes

  • Allow consuming synthetic exports via modules that reexport a namespace (#3894)
  • Do not crash for circular default reexports (#3840)
  • Do not crash for circular synthetic namespaces (#3840)
  • Improve circular dependency execution order in certain scenarios (#3840)

Pull Requests

2.36.2

2021-01-16

Bug Fixes

  • Fix an issue where invalid code was generated for unused assignments with side effects (#3926)

Pull Requests

2.36.1

2021-01-06

Bug Fixes

  • Solve issues that result in invalid code when partially removing assignments (#3921)

Pull Requests

  • #3921: Prevent invalid code when removing assignment target of side-effectful object expression (@lukastaegert)

2.36.0

2021-01-05

Features

  • Support partial tree-shaking of chained assignments and unused assignment targets (#3919)

Pull Requests

2.35.1

2020-12-14

Bug Fixes

  • Allow closing the bundle when watching in case of generate errors by adding the bundle to the error event (#3909)
  • Automatically close all bundles on generate errors when watching and using the CLI (#3909)
  • Try to create remaining bundles when watching and one of them throws (#3909)

Pull Requests

2.35.0

2020-12-14

Features

  • Add closeBundle hook that is triggered by bundle.close() in the JS API (#3883)

Pull Requests

2.34.2

2020-12-06

Bug Fixes

  • Revert pattern export change (#3898)

Pull Requests

2.34.1

2020-12-03

Bug Fixes

  • Avoid Node deprecation warning by using a pattern export for nested Rollup files (#3896)

Pull Requests

2.34.0

2020-11-29

Features

  • Support RequireJS comaptible AMD ids in code-splitting builds via amd.autoId (#3867)
  • Allow adding an AMD id base path (#3867)

Bug Fixes

  • Warn when using an constant AMD id in a code-splitting build (#3867)

Pull Requests

2.33.3

2020-11-18

Bug Fixes

  • Do not use .js extension when importing AMD files from a UMD bundle (#3872)

Pull Requests

2.33.2

2020-11-14

Bug Fixes

  • Fix an issue where statements were ignored after a conditional return in a labeled statement (#3871)

Pull Requests

  • #3871: Correctly track label usage in try statements (@Amareis)

2.33.1

2020-11-02

Bug Fixes

  • Add syntheticNamedExports to this.getModuleInfo to align with documentation (#3847)

Pull Requests

2.33.0

2020-11-01

Features

  • Add parameter to "watchChange" hook to denote if a change was an addition, update or deletion (#3841)
  • Add "closeWatcher" hook to allow plugins to clean up resources when the watcher is closed (#3841)
  • Add "this.getWatchFiles" function to plugin context to get the current set of watched files (#3841)

Pull Requests

2.32.1

2020-10-21

Bug Fixes

  • Print warning location for plugin warnings if only loc is supplied (#3824)

Pull Requests

2.32.0

2020-10-16

Features

  • Extend preserveEntrySignatures with a value "exports-only" to allow extension only if an entry does not have exports (#3823)

Pull Requests

2.31.0

2020-10-15

Features

  • When using the output.moduleToStringTag option, also add the tag to entries with exports and simulated external namespaces (#3822)
  • Add the __esModule interop marker to IIFE global variables unless output.esModule is turned off (#3822)

Pull Requests

2.30.0

2020-10-13

Features

  • Add moduleParsed hook that is called for each module once code and AST are available (#3813)
  • Include code and AST in this.getModuleInfo (#3813)

Bug Fixes

  • Provide the original Acorn AST instead of the internal one when resolving dynamic imports that contain non-trivial expressions (#3813)

Pull Requests

2.29.0

2020-10-08

Features

  • Allow passing custom options to other plugins via this.resolve (#3807)
  • Allow attaching custom meta information to modules when resolving, loading or transforming (#3807)
  • Do not throw but return null when using this.getModuleInfo for an unknown id (#3807)

Bug Fixes

  • Trigger build in watch mode when files are added to a watched directory (#3812)
  • Make code optional when transforming modules (#3807)

Pull Requests

2.28.2

2020-09-24

Bug Fixes

  • Fix a source of possible variable name conflicts when using preserveModules with SystemJS (#3796)

Pull Requests

2.28.1

2020-09-21

Bug Fixes

  • Fix a path slash issue when using the preserveModulesRoot option on Windows (#3791)

Pull Requests

2.28.0

2020-09-21

Features

  • Add an option to treat modules at a given path as located at root when preserving modules (#3786)

Pull Requests

2.27.1

2020-09-17

Bug Fixes

  • Do not fail when using ES module imports in symlinked config files (#3783)

Pull Requests

2.27.0

2020-09-16

Features

  • Support specifying a file extension when reading from stdin (#3775)

Bug Fixes

  • Do not break logic if a branch with hoisted variables is tree-shaken in an else-if statement (#3782)

Pull Requests

  • #3770: Docs: Exception for babel plugin and commonjs plugin (@jsk7)
  • #3775: add ability to specify stdin file extension via --stdin=ext (@kzc)
  • #3782: Handle hoisted variables in dead branches of nested if statements (@lukastaegert)

2.26.11

2020-09-08

Bug Fixes

  • Do not fail for unknown nodes as if statement branches (#3769)

Pull Requests

2.26.10

2020-09-04

Bug Fixes

  • Do not create invalid code when simplifying expressions in return statements that contain line comments (#3762)

Pull Requests

2.26.9

2020-09-01

Bug Fixes

  • Add regular expression support to watch include/exclude types (#3754)

Pull Requests

  • #3754: Add RegExp to the include and exclude fields of the WatcherOptions type (@dagda1)
  • #3756: Update FAQ: I think it was meant "external" instead of "other-entry.js" (@madacol)

2.26.8

2020-08-29

Bug Fixes

  • Make sure that both unresolved and resolved ids are passed to the external option in all cases (#3753)

Pull Requests

2.26.7

2020-08-28

Bug Fixes

  • Avoid invalid code when rendering hoisted variable declarations from dead branches (#3752)
  • Mark the options parameter of this.parse as optional for TypeScript plugins (#3750)

Pull Requests

2.26.6

2020-08-27

Bug Fixes

  • Avoid conflicts between the namespace of synthetic named exports and local variables (#3747)

Pull Requests

2.26.5

2020-08-22

Bug Fixes

  • Use correctly deconflicted variable names for reexported namespaces in ES formats (#3742)

Pull Requests

  • #3742: Avoid variable name conflict when reexporting several namespaces from a chunk (@lukastaegert)

2.26.4

2020-08-19

Bug Fixes

  • Fix a situation where invalid code was rendered when dynamically importing a module with synthetic named exports when preserving modules (#3738)
  • Create a proper namespace object when in a non-es format, a namespace is imported from a chunk with default export mode (#3738)
  • Use the same variable when in a chunk, a namespace is both imported and reexported as a binding (#3738)
  • Do not include the synthetic namespace in static entry points unless it is actually used (#3738)
  • Make sure the chunking of one output does not interfere with the namespace objects of another output (#3738)

Pull Requests

2.26.3

2020-08-16

Bug Fixes

  • Fix a situation where line-breaks in a nested simplified conditional expression could result in broken code (#3734)

Pull Requests

2.26.2

2020-08-16

Bug Fixes

  • Fix a situation where line-breaks in a simplified conditional expression could result in broken code (#3732)

Pull Requests

2.26.1

2020-08-16

Bug Fixes

  • Correctly render external namespace imports when only generating SystemJS output (#3731)

Pull Requests

2.26.0

2020-08-15

Features

  • Add a new entry importedBindings to the bundle information to list bindings per dependency (#3722)

Bug Fixes

  • Do not render an invalid UMD wrapper when no bindings are imported from a dependency (#3724)
  • Avoid situations where removing the else branch from an if statement might catch the else branch from another one (#3725)

Pull Requests

2.25.0

2020-08-14

Features

  • Add --failAfterWarnings CLI flag that will complete builds with warnings but return an error at the end (#3712)

Pull Requests

2.24.0

2020-08-13

Features

  • Allow defining interop per dependency via a function (#3710)
  • Support interop "auto" as a more compatible version of "true" (#3710)
  • Support interop "default" and "esModule" to avoid unnecessary interop helpers (#3710)
  • Support interop "defaultOnly" for simplified helpers and Node ESM interop compatible output (#3710)
  • Respect interop option for external dynamic imports (#3710)
  • Support live-bindings for external default imports in non-ES formats unless "externalLiveBindings" is "false" (#3710)
  • Use shared default interop helpers for AMD, UMD and IIFE formats (#3710)
  • Avoid unnecessarily deconflicted module variables in non-ES formats (#3710)
  • Freeze generated interop namespace objects (#3710)
  • Always mark interop helpers as pure (#3710)
  • Avoid default export interop if there is already an interop namespace object (#3710)
  • Sort all require statements to the top in CommonJS output for easier back-transpilation to ES modules by other tools (#3710)

Bug Fixes

  • Handle accessing super in static class fields (#3720)
  • Deconflict the names of helper variables introduced for interop (#3710)
  • Generate proper namespace objects for static namespace imports in non-ES formats (#3710)
  • Do not add unused interop helpers when using the renderDynamicImport hook (#3710)

Pull Requests

2.23.1

2020-08-07

Bug Fixes

  • Fix an issue where dynamically importing an entry point could return a malformed namespace for CJS and AMD formats (#3709)

Pull Requests

  • #3709: Properly construct namespace when dynamically importing chunks with facades in default export mode (@lukastaegert)

2.23.0

2020-07-23

Features

  • Handle environments with only globalThis in UMD output (#3691)

Pull Requests

2.22.2

2020-07-21

Bug Fixes

  • Always generate correct exports when an implicit entry is reexporting from another module (#3688)

Pull Requests

  • #3688: Include all relevant modules to generate reexports for implicit dependencies (@lukastaegert)

2.22.1

2020-07-18

Bug Fixes

  • Remove unused arguments when calling a conditional expression (#3680)

Pull Requests

  • #3680: Allow tree-shaking of arguments of functions that are returned by conditional expressions (@lukastaegert)

2.22.0

2020-07-18

Features

  • Allow resolving synthetic named exports via an arbitrary export name (#3657)
  • Display a warning when the user does not explicitly select an export mode and would generate a chunk with default export mode when targeting CommonJS (#3657)

Pull Requests

2.21.0

2020-07-07

Features

  • Allow plugins to disable tree-shaking for individual modules to ensure even empty modules are associated with chunks (#3663)

Pull Requests

2.20.0

2020-07-06

Features

  • Support using a function to generate different chunk and asset naming patterns per chunk or asset (#3658)
  • Add referencedFiles property to the chunk info in generateBundle to list referenced assets (#3661)

Pull Requests

  • #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)
  • #3661: Add referenced files to bundle (@lukastaegert)

2.19.0

2020-07-05

Features

  • Allow plugins to return a Promise in the options hook (#3660)

Pull Requests

2.18.2

2020-07-02

Bug Fixes

  • Do not remove spread element args when the corresponding positional parameter is unused (#3652)

Pull Requests

2.18.1

2020-06-26

Bug Fixes

  • Make sure synthetic exports are present when a module is imported dynamically (#3648)
  • Strip the rollup-plugin- prefix off the plugin name when looking for the plugin export in a CLI plugin without a default export (#3647)
  • Convert plugin names with dashes to camel case when looking for the plugin export in a CLI plugin without a default export (#3647)

Pull Requests

  • #3647: Strip rollup-plugin prefix to find named plugin exports, throw when export cannot be found (@lukastaegert)
  • #3648: Always create a dynamic namespace object when a module with synthetic named exports is imported dynamically (@lukastaegert)

2.18.0

2020-06-22

Features

  • inlineDynamicImports, manualChunks and preserveModules can now be used as output options (#3645)
  • Use sourcemaps for certain warnings that reference source code locations (#3645)

Bug Fixes

  • this.getFileName will now always return the correct file name for chunks when multiple outputs are created (#3645)

Pull Requests

2.17.1

2020-06-19

Bug Fixes

  • Properly resolve accessing properties of namespace members again (#3643)

Pull Requests

2.17.0

2020-06-17

Features

  • When importing Rollup via package.exports, always fall back to the browser ESM build for non-Node environments (#3634)
  • Create more efficient code when handling namespace mutations (#3637)

Bug Fixes

  • Fix a severe performance regression when the same module is imported by a lot of modules (#3641)
  • Properly escape special characters in imports (#3638)

Pull Requests

2.16.1

2020-06-13

Bug Fixes

  • Do not produce invalid code when an external or chunk id contain quotes or line-breaks (#3632)
  • Do not fail but emit a warning when mutating a namespace object (#3633)

Pull Requests

2.16.0

2020-06-12

Features

  • Add support for numeric separators (#3626)
  • Switch to finalized ESTree optional chaining AST (#3628)

Pull Requests

2.15.0

2020-06-08

Features

  • Allow to skip watching some configs via watch: false (#3620)
  • Provide the resolved sourcemap path to sourcemapPathTransform (#3617)

Pull Requests

  • #3617: Update sourcemapPathTransform to also take the path to the sourcemap file as a second argument (@dgoldstein0)
  • #3620: Rollup watch only one config in exported array (@luwol03)

2.14.0

2020-06-07

Features

  • Make this.meta.watchMode available for plugins to detect watch mode (#3616)

Bug Fixes

  • Handle exporting the same binding with different names in SystemJS (#3575)

Pull Requests

2.13.1

2020-06-04

Bug Fixes

  • Prevent conflicts in SystemJS when module is used as a top-level variable (#3614)

Pull Requests

2.13.0

2020-06-03

Features

  • Allow to specify that an emitted chunk is only loaded after a given module has loaded to improve chunking (#3606)

Pull Requests

2.12.1

2020-06-02

Bug Fixes

  • Render valid imports when chunk names correspond to directory names in virtual setups (#3609)

Pull Requests

  • #3609: Handle imports from chunks with names that correspond to parent directory names of other chunks (@guybedford)

2.12.0

2020-05-31

Features

  • Add an option --waitForBundleInput to let the build wait until all entry point files are available before starting (#3577)

Pull Requests

2.11.2

2020-05-28

Bug Fixes

  • Include side-effects in the second argument of Array.from (#3604)

Pull Requests

  • #3604: Mark Array.from as side-effectful, use two-argument Array.from when mapping Sets (@lukastaegert)

2.11.1

2020-05-28

Bug Fixes

  • Also include side-effects in files that are marked as side-effect-free if they contain an included default export that is reexported (#3602)

Pull Requests

  • #3602: Handle side-effects next to side-effect-free default exports in case the default export is reexported (@lukastaegert)

2.11.0

2020-05-27

Features

  • Add basic support for optional chaining (#3582)
  • Provide a normalized set of options with proper default values to buildStart and renderStart (#3597)
  • Do not count adding properties to the prototype of an unused class as a side-effect (#3598)
  • Support providing null for empty setters in SystemJS via option (#3592)

Bug Fixes

  • Do not fail when using a /*#__PURE__*/ annotation inside a class field (#3599)
  • Allow using --watch and --treeshake together with sub-options such as --watch.clearScreen on the command line (#3597)

Pull Requests

2.10.9

2020-05-24

Bug Fixes

  • Prevent invalid exports when facades are created (#3590)

Pull Requests

  • #3590: Prevent unneeded exports when entry facades are created and ensure all exported variables in facades are imported (@lukastaegert)

2.10.8

2020-05-23

Bug Fixes

  • Fix issues when synthetic named exports are reexported as default exports (#3586)

Pull Requests

2.10.7

2020-05-22

Bug Fixes

  • Handle modules re-exporting namespaces without further own code (#3576)

Pull Requests

2.10.6

2020-05-22

Bug Fixes

  • Fix some issues around class fields (#3580)
  • Prevent a maximum call stack error when a called entity references itself in its declaration (#3581)

Pull Requests

2.10.5

2020-05-19

Bug Fixes

  • Do not remove side-effects that may influence an included default export declaration when side-effects are disabled (#3572)

Pull Requests

  • #3572: Observe side-effects in files containing a default export declaration that reexports a variable (@lukastaegert)

2.10.4

2020-05-19

Bug Fixes

  • Tree-shake unused classes with fields unless there are side-effects in the field declaration (#3569)

Pull Requests

2.10.3

2020-05-18

Bug Fixes

  • Validate return value of sourcemapPathTransform option (#3561)

Pull Requests

  • #3561: Throw error if sourcemapPathTransform-option does not return a string (@Simonwep)

2.10.2

2020-05-15

Bug Fixes

  • Properly include calls to mutating array methods in certain scenarios (#3559)

Pull Requests

  • #3559: Make sure UnknownFooExpressions are included when referenced as return values in a MultiExpression (@lukastaegert)

2.10.1

2020-05-15

Bug Fixes

  • Do not throw when "undefined" is used as a default export (#3558)

Pull Requests

2.10.0

2020-05-13

Features

  • Avoid unnecessary empty imports from a facade chunk to the original chunk (#3552)
  • 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)

Bug Fixes

  • Do not omit reexports from secondary chunks when creating facades for entry points without hoisting transitive dependencies (#3552)

Pull Requests

2.9.1

2020-05-11

Bug Fixes

  • Do not create unintended live-bindings or invalid reexports when reexporting global variables (#3550)

Pull Requests

2.9.0

2020-05-10

Features

  • Add ids of static and dynamic imports to this.getModuleInfo (#3542)
  • Provide getModuleInfo and getModuleIds to manualChunks functions (#3542)
  • Add nullish coalescing support (#3548)
  • Make the rebuild delay in watch mode configurable and set the default to 0 for snappy rebuilds (#3502)
  • Add this.getModuleIds to the plugin context as future replacement for this.moduleIds (#3542)

Pull Requests

2.8.2

2020-05-07

Bug Fixes

  • Avoid invalid code when simplifying the body of a shorthand arrow function expression (#3540)

Pull Requests

  • #3540: Wrap object expressions in parentheses if they become children of an arrow function expression (@lukastaegert)

2.8.1

2020-05-07

Bug Fixes

  • Allow using plugins on CLI that are exported as exports.default (#3529)
  • Do not fail side-effect detection in nested callbacks of builtins (#3539)

Pull Requests

  • #3529: Use default named export with plugins (@NotWoods)
  • #3539: Track call side-effects both by entity and CallExpression to avoid untracked side-effects in nested calls (@lukastaegert)

2.8.0

2020-05-06

Features

  • When a dynamically imported chunk contains more exports than the imported module namespace, do not create a facade chunk but an inline namespace (#3535)

Bug Fixes

  • Do not execute dynamically imported code before synchronous code in the importing module when generating CommonJS (#3535)

Pull Requests

2.7.6

2020-04-30

Bug Fixes

  • Fix a type issue when a default export references a global variable (#3526)

Pull Requests

2.7.5

2020-04-29

Bug Fixes

  • Prevent infinite loop when default values of function parameters in a default export contain a slash (#3522)

Pull Requests

  • #3522: Avoid infinite loop when finding position for id insertion in default export (@lukastaegert)

2.7.4

2020-04-29

Bug Fixes

  • Fix an issue where wrong variable names were used when preserving modules (#3521)

Pull Requests

2.7.3

2020-04-27

Bug Fixes

  • Do not access __proto__ when running Rollup (#3518)

Pull Requests

  • #3518: use acorn-class-fields and acorn-static-class-features from npm (@nitsky)

2.7.2

2020-04-22

Bug Fixes

  • Prevent an infinite loop when creating separate manual chunks with circular dependencies (#3510)
  • Do not fail if "super" is used in the definition of a class field (#3511)
  • Throw if a plugin tries to emit a file with an absolute Windows path (#3509)

Pull Requests

2.7.1

2020-04-21

Bug Fixes

  • Use correct path for dynamic imports if output.paths is used (#3508)

Pull Requests

2.7.0

2020-04-21

Features

  • Add preserveEntrySignatures option to control how exports of entry points are handled (#3498)
  • Add preserveSignature flag to this.emitFile to control exports of emitted chunks (#3498)
  • Add output.minifyInternalExports option to control if internal exports are minified (#3498)

Pull Requests

2.6.1

2020-04-12

Bug Fixes

  • Close watch mode when stdin closes in a non-TTY environment (#3493)

Pull Requests

2.6.0

2020-04-10

Features

  • Allow regular expressions to declare external modules (#3482)

Pull Requests

2.5.0

This version is identical to 2.4.0

2.4.0

2020-04-09

Features

  • Add support for most private and public class field features (#3488)

Bug Fixes

  • Do not replace this with undefined in class field definitions (#3488)

Pull Requests

2.3.5

2020-04-09

Bug Fixes

  • Never remove labels when tree-shaking is disabled (#3492)

Pull Requests

  • #3492: Always use a new inclusion context when including declarations of variables, always inlcude labels when not treeshaking (@lukastaegert)

2.3.4

2020-04-07

Bug Fixes

  • Handle re-exporting synthetic exports from entry-points (#3319)
  • Fix cross-chunk imports of synthetic exports (#3319)
  • Handle namespace objects that contain re-exported synthetic namespaces (#3319)

Pull Requests

2.3.3

2020-04-04

Bug Fixes

  • Add external namespaces to dynamic namespace objects (#3474)

Pull Requests

2.3.2

2020-03-31

Bug Fixes

  • Only warn but do not fail build when a namespace is called as a function (#3475)
  • Make sure pre-existing sourcemap comments are also removed when rebuilding using the cache (#3476)

Pull Requests

2.3.1

2020-03-30

Bug Fixes

  • Do not fail if the config file returns an function returning a Promise (#3472)

Pull Requests

2.3.0

2020-03-29

Features

  • Do not transpile config files with .mjs extension in Node 13+ or .cjs extension in any Node version and load them appropriately (#3445)
  • Extract helper to load a config file the way rollup does it via rollup/dist/loadConfigFile (#3445)

Bug Fixes

  • Keep watching the config file if an error occurs during initial load in watch node (#3445)
  • Add a helpful error message when using a transpiled config in a repository with "type": "module" (#3445)

Pull Requests

  • #3445: Support native ESM configs in Node 13, support untranspiled configs (@lukastaegert)
  • #3468: Don't use esm output format alias in the documentation (@vsn4ik)

2.2.0

2020-03-24

Features

  • Add renderDynamicImport hook to rewrite dynamic import expressions (#3449)
  • Add information about dynamically imported modules to this.getModuleInfo (#3449)

Bug Fixes

  • Make file emission work with Uin8Array sources when using Rollup in the browser (#3452)
  • Fix types to allow watch to accept an array of configs (#3453)
  • Do not strip .js extensions from AMD imports when the import is a user-supplied replacement for a non-resolvable dynamic import target (#3453)

Pull Requests

2.1.0

2020-03-18

Features

  • Allow specifying an importer when emitting files to resolve relative ids (#3442)

Pull Requests

2.0.6

2020-03-13

Bug Fixes

  • Do not use file names from different outputs when generating sourcemaps using the dir option (#3440)

Pull Requests

  • #3440: Use correct file names when writing sourcemaps for multiple outputs (@lukastaegert)

2.0.5

2020-03-12

Bug Fixes

  • Fix an issue where conditional statements would assume they have the wrong test value (#3438)

Pull Requests

  • #3438: Make sure logical expressions always check the left argument for side-effects (@lukastaegert)

2.0.4

2020-03-12

Bug Fixes

  • Avoid conflicts between namespace imports when preserving modules (#3435)

Pull Requests

  • #3435: Deconflict multiple index imports for ES format using nested export star statements (@kamranayub)

2.0.3

2020-03-10

Bug Fixes

  • Add type for this.getCombinedSourcemap to transform context (#3431)

Pull Requests

2.0.2

2020-03-07

Bug Fixes

  • Make sure the ESM import still works (#3430)

Pull Requests

2.0.1

2020-03-07

Bug Fixes

  • Reenable importing rollup in Node 13.0 - 13.7 (#3428)

Pull Requests

2.0.0

2020-03-06

Breaking Changes

  • Rollup now requires at least Node 10 to run, or a sufficiently modern browser (#3346)

  • The file structure of Rollup's ESM builds has changed:

    • The main ESM entry point is now at rollup/dist/es/rollup.js instead of rollup/dist/rollup.es.js
    • The ESM browser build is at rollup/dist/es/rollup.browser.js instead of rollup/dist/rollup.browser.es.js

    In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the rollup/dist/es subfolder instead of rollup/dist (#3391)

  • 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)

  • Modules that are completely tree-shaken will no longer be listed as part of any chunks in generateBundle

  • The experimentalOptimizeChunks and chunkGroupingSize options have been removed

  • acorn 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)

  • Emitted chunks now have the TypeScript type Uint8Array instead of Buffer. A Buffer can still be used, though (#3395)

  • The TypeScript types no longer use ESTree types for AST nodes but a very generic type that does not contain information specific to certain node types (#3395)

  • 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)

  • The following plugin hooks have been removed:

    • ongenerate: use generateBundle instead
    • onwrite: use writeBundle instead
    • transformBundle: use renderChunk instead
    • transformChunk: use renderChunk instead
  • You can no longer access this.watcher on the plugin context.

  • The transform hook can no longer return dependencies.

  • The treeshake.pureExternalModules option will now show a deprecation warning when used: use treeshake.moduleSideEffects: 'no-external' instead

  • Using import.meta.ROLLUP_ASSET_URL_<..> and import.meta.ROLLUP_CHUNK_URL_<..> in code will now show warnings: use import.meta.ROLLUP_FILE_URL_<..> instead

  • The resolveAssetUrl hook will now show a deprecation warning when used: use resolveFileUrl instead

  • The following plugin context functions will show warnings when used:

    • this.emitAsset: use this.emitFile
    • this.emitChunk: use this.emitFile
    • this.getAssetFileName: use this.getFileName
    • this.getChunkFileName: use this.getFileName
    • this.isExternal: use this.resolve
    • this.resolveId: use this.resolve
  • Directly adding properties to the bundle object in the generateBundle is deprecated will show a warning (removing properties is allowed, though): Use this.emitFile

  • Accessing chunk.isAsset on the bundle is deprecated: Use chunk.type === 'asset' instead

  • The error code for a missing name property when targeting UMD has been changed to MISSING_NAME_OPTION_FOR_IIFE_EXPORT to emphasize this is needed for the IIFE part of UMD (#3393)

Features

  • Rollup now bundles Chokidar for a better watch experience (#3331)
  • Rollup now bundles acorn again, removing its only external dependency (#3391)
  • Do not consider empty imports from side-effect-free modules for chunking and hoist side-effect imports if necessary (#3369)
  • Rollup can now be imported as an ES module in Node via import {rollup} from 'rollup'. Note that this relies on Node's experimental conditional package exports feature and is therefore itself experimental (#3391)
  • systemjs can be used as format alias for system (#3381)

Bug Fixes

  • Unknown output options now trigger a warning when using the JavaScript API (#3352)
  • Rollup will no longer introduce Node types into TypeScript projects that do not use them (#3395)
  • Generate correct sourcemaps when tree-shaking occurs in a multi-file bundle (#3423)

Pull Requests

1.32.1

2020-03-06

Bug Fixes

  • Handle default export detection for AMD and IIFE externals that do not have a prototype (#3420)
  • Handle missing whitespace when the else branch of an if-statement is simplified (#3421)
  • Mention the importing module when reporting errors for missing named exports (#3401)
  • Add code to warning for missing output.name of IIFE bundles (#3372)

Pull Requests

  • #3372: Add warning code for missing output.name of IIFE bundle that has export (@rail44)
  • #3401: Missing exports errors now print the importing module (@timiyay)
  • #3418: Structure lifecycle hooks, add links to build time hooks (@lukastaegert)
  • #3420: Update generated code of getInteropBlock() to work with null prototype objects (@jdalton)
  • #3421: Avoid invalid code when "else" branch is simplified (@lukastaegert)

1.32.0

2020-02-28

Features

  • Allow adding plugins on the command line via --plugin <plugin> (#3379)

Pull Requests

1.31.1

2020-02-14

Bug Fixes

  • Make sure errored files are always re-evaluated in watch mode to avoid an issue in the typescript plugin (#3388)

Pull Requests

1.31.0

2020-01-31

Features

  • Always disable tree-shaking for asm.js functions to maintain semantics (#3362)

Pull Requests

1.30.1

2020-01-27

Bug Fixes

  • Do not mistreat static entgry points as dynamic ones when chunking (#3357)
  • Resolve a crash when chunking circular dynamic imports (#3357)

Pull Requests

1.30.0

2020-01-27

Features

  • Do not split chunks when dynamically imported modules import modules that are already loaded by all dynamic importers (#3354)
  • Add hoistTransitiveImports option to disable hoisting imports of static dependencies into entry chunks (#3353)

Bug Fixes

  • Make sure polyfills are always loaded first when each static entry point contains them as first import (#3354)

Pull Requests

1.29.1

2020-01-21

Bug Fixes

  • Avoid crashes for circular reexports when named exports cannot be found (#3350)

Pull Requests

1.29.0

2020-01-08

Features

  • Enable top-level await by default (#3089)
  • Add typings for watch events (#3302)

Bug Fixes

  • Deconflict files that would conflict only on a case-insensitive OS (#3317)
  • Do not fail in certain scenarios where a logical expression inside a sequence expression was being directly included (#3327)

Pull Requests

1.28.0

2020-01-04

Features

  • Allow piping in stdin via the command line interface (#3312, #3290)
  • Allow plugins to mark modules as having syntheticNamedExports for e.g. better CJS interoperability (#3295)
  • Ignore variable reassignments in dead code when tree-shaking to remove more unneeded code (#3212)

Bug Fixes

  • Properly respect tree-shaken code when generating sourcemaps (#3318)

Pull Requests

1.27.14

2019-12-22

Bug Fixes

  • Update references to official rollup plugins in error messages (#3297, #3298)

Pull Requests

1.27.13

2019-12-14

Bug Fixes

  • Do not truncate environment variable values at the first colon when using the --environment option (#3283)

Pull Requests

1.27.12

2019-12-13

Bug Fixes

  • Prevent invalid AMD or SystemJS code when accessing import.meta (#3282)

Pull Requests

  • #3282: Always make "module" available for SystemJS and AMD formats if import.meta is accessed directly (@lukastaegert)

1.27.11

2019-12-12

Bug Fixes

  • Resolve a crash due to an infinite loop (#3280)

Pull Requests

1.27.10

2019-12-11

Bug Fixes

  • Keep track of function return values in more situations (#3278)

Pull Requests

1.27.9

2019-12-07

Bug Fixes

  • Fix an issue where reexports could be missing when preserving modules (#3273)
  • Allow turning of color output via NO_COLOR or FORCE_COLOR=0 environment variables (#3272)

Pull Requests

  • #3272: Support either NO_COLOR or FORCE_COLOR=0 to turn off color (@kikonen)
  • #3273: Make sure that indirectly reexported modules also become chunk dependencies when preserving modules(@lukastaegert)

1.27.8

2019-12-02

Bug Fixes

  • Deoptimize objects when a method is called on them to make sure modifications via "this" are observed (#3266)

Pull Requests

  • #3266: Workaround for various object literal mutation bugs (@kzc)

1.27.7

2019-12-01

Bug Fixes

  • Fix a scenario where a reassignments to computed properties were not tracked (#3267)

Pull Requests

1.27.6

2019-11-30

Bug Fixes

  • Use "auto" export mode by default for all modules when preserving modules (#3265)
  • Observe "output.exports" when preserving modules and warn for mixed exports if necessary (#3265)

Pull Requests

1.27.5

2019-11-25

Bug Fixes

  • Make sure namespaces for inlined dynamic imports are treated as variable accesses when deconflicting (#3256)

Pull Requests

1.27.4

2019-11-22

Bug Fixes

  • Aggregate circular dependency warnings in the CLI (#3249)
  • Do not defer non-aggregated handlers in the CLI (#3249)

Pull Requests

1.27.3

2019-11-20

Bug Fixes

  • Provide better warning when empty chunks are created in a code-splitting scenario (#3244)

Pull Requests

1.27.2

2019-11-18

Bug Fixes

  • Fix an issue where live bindings were not working correctly when using += in SystemJS (#3242)

Pull Requests

  • #3242: Export updated assignments when using shorthand update assignment expressions in SystemJS (@lukastaegert)

1.27.1

2019-11-18

Bug Fixes

  • Fix an issue where code after a switch-statement with removed cases was erroneously not included (#3241)

Pull Requests

1.27.0

2019-11-12

Features

  • Add support for output-specific plugins (#3218)
  • Reenable parallel output processing when using the CLI (#3218)
  • Warn if files are emitted that would overwrite previously emitted files (#3218)

Bug Fixes

  • Do not overwrite files emitted in other builds if outputs are generated in parallel (#3218)

Pull Requests

1.26.5

2019-11-11

Bug Fixes

  • Fix a regression where it was no longer to pass a certain option format to generate (#3223)

Pull Requests

1.26.4

2019-11-09

Bug Fixes

  • Keep watching known files after a plugin error during the initial build (#3219)

Pull Requests

1.26.3

2019-11-02

Bug Fixes

  • Work around an incompatibility with rollup-plugin-dts (#3211)

Pull Requests

  • #3211: Do no fail if the source attribute is undefined in an unused named export (@lukastaegert)

1.26.2

2019-10-31

Bug Fixes

  • Do not create invalid code when using treeshake: false and star re-exports (#3209)

Pull Requests

1.26.1

2019-10-31

Bug Fixes

  • Prevent an issue where outputs would overwrite files emitted by other outputs (#3201)
  • Do not throw an error if the config file does not have a .js extension (#3204)

Pull Requests

  • #3201: Make the CLI run generate/output in serial (@marijnh)
  • #3204: support all config file extensions (.js,.mjs,...) (@arlac77)

1.26.0

2019-10-27

Features

  • Only warn when no output is provided for an IIFE bundle but still produce valid code (#3181)
  • Support reexporting namespaces as a binding (#3193)
  • Switch from hash.js to crypto for hashing in the Node build for better performance and support for very large assets (#3194)

Bug Fixes

  • Correctly handle chunks reexporting the same namespace as two different bindings (#3193)

Pull Requests

1.25.2

2019-10-23

Bug Fixes

  • Improve performance of bundled UMD code by adding additional parentheses to enforce eager parsing (#3183)
  • Improve types to tolerate passing a Rollup config with multiple outputs to rollup.rollup (#3184)

Pull Requests

1.25.1

2019-10-20

Bug Fixes

  • Handle a situation where code was not included after a switch statement (#3178)
  • Handle a situation where code was not included after a do-while loop (#3180)
  • Do not fail if different outputs emit the same file (#3175)
  • Give access to the original acorn error for parse errors (#3176)

Pull Requests

1.25.0

2019-10-18

Features

  • Remove try-catch if there is no side-effect in the try-block (#3166)
  • Omit side-effect-free trailing cases in switch-statements (#3166)
  • Remove unused labels (#3170)

Bug Fixes

  • Do not remove code after labeled statements that contain a throw or return if the label is used (#3170)
  • Prevent invalid code when expressions are simplified that do not follow a white-space character (#3173)
  • Do not remove continue statements inside switch statements (#3166)
  • Prevent trailing empty lines when tree-shaking inside switch statements (#3166)

Pull Requests

1.24.0

2019-10-15

Features

  • Respect break, continue, return and throw when tree-shaking to detect dead code (#3153)
  • Do treat treat hoisted function declarations as "unknown" when checking for call side-effects (#3153)

Bug Fixes

  • Make sure that unknown import.meta properties produce valid code in SystemJS (#3152)
  • Make sure treeshake.annotations: false is respected for class instantiation (#3153)
  • Check property access side-effects for class instantiation (#3153)
  • Do not suppress break statements inside labeled statements (#3153)

Pull Requests

  • #3152: Allow import.meta.* for systemjs format (@dmail)
  • #3153: Get rid of immutable.js and implement tree-shaking for broken control flow (@lukastaegert)

1.23.1

2019-10-05

Bug Fixes

  • Fix a regression where the node types had a specific minimal version (#3143)

Pull Requests

1.23.0

2019-10-03

Features

  • Add placeholders for extensions when preserving modules (#3116)

Pull Requests

1.22.0

2019-09-29

Features

  • Add a new "hidden" sourcemap type that generates the map files but omits the sourcemap comment (#3120)
  • Generate more efficient code when using namespaceToStringTag: true (#3135)
  • Make sure namespace objects do not have a prototype (#3136)

Bug Fixes

  • Do not ignore side-effectful iterators by always preserving for..of loops for now (#3132)
  • Make sure --context is observed as a CLI option (#3134)
  • Do not require specific versions for @types dependencies (#3131)

Pull Requests

1.21.4

2019-09-16

Bug Fixes

  • Recognize common browser globals (#3117)
  • Do not treat "typeof " as a side-effect (#3117)

Pull Requests

  • #3117: Add browser globals to known globals and prevent "typeof" side-effects (@lukastaegert)

1.21.3

2019-09-14

Bug Fixes

  • Fix a regression where modifying a watched file did not trigger a rebuild (#3112)

Pull Requests

  • #3112: Fix .addWatchFile() dependencies failing to invalidate in watch mode (@tivac)

1.21.2

2019-09-09

Bug Fixes

  • Fix wrong deprecation message to direct to this.emitFile instead of this.emitAsset

1.21.1

2019-09-09

Bug Fixes

  • Allow legacy plugins to still add assets directly to the bundle object (#3105)

Pull Requests

  • #3105: Allow legacy plugins to still add assets directly to the bundle object (@lukastaegert)

1.21.0

2019-09-08

Features

  • Respect output.entryFileNames when preserving modules (#3088)
  • Make accessing unknown globals a side-effect unless this is deactivated via treeshake.unknownGlobalSideEffects (#3068)
  • Respect global objects when checking for pure global functions (#3068)
  • Introduce a type to more easily distinguish chunks and assets in the output bundle (#3080)

Bug Fixes

  • Recover in watch mode when the initial build fails (#3081)
  • Make sure output.strict is respected for SystemJS output (#3101)

Pull Requests

  • #3068: Make accessing unknown globals a side-effect (@lukastaegert)
  • #3080: OutputBundle Tagged union with 'type = chunk|asset' (@askbeka)
  • #3081: Watch files onbuild, even if build fails (@mhkeller)
  • #3088: Add support for entryFileNames pattern used in combination with preserveModules option (@Andarist)
  • #3101: Remove 'use strict'; from systemjs when strict=false (@askbeka)

1.20.3

2019-08-28

Bug Fixes

  • Make sure file hashes change when a change of the naming pattern leads to a file name change of a dependency (#3083)
  • Fix several issues where reexporting an external "default" export could lead to invalid or incorrect code (#3084)

Pull Requests

1.20.2

2019-08-25

Bug Fixes

  • Avoid an issue where circular namespace reexports would crash Rollup (#3074)

Pull Requests

1.20.1

2019-08-22

Bug Fixes

  • Fix an issue where variable names inside dynamic import expressions were not rendered correctly (#3073)
  • Fix type definition to allow a single watcher config as well as an array (#3074)

Pull Requests

1.20.0

2019-08-21

Features

  • Add augmentChunkHash plugin hook to be able to reflect changes in renderChunk in the chunk hash (#2921)

Bug Fixes

  • Do not mutate the acorn options object (#3051)
  • Make sure the order of emitted chunks always reflects the order in which they were emitted (#3055)
  • Do not hang when there are strings containing comment-like syntax in some scenarios (#3069)

Pull Requests

1.19.4

2019-08-07

Bug Fixes

  • Prevent invalid code when exporting an external namespace (#3034)
  • Prevent invalid or non-equivalent code when simplifying expressions in return and throw statements (#3035)

Pull Requests

1.19.3

2019-08-06

Bug Fixes

  • Fix wrong URLs in error messages (#3033)

Pull Requests

1.19.2

2019-08-05

Bug Fixes

  • Add bin file to package

1.19.1

2019-08-05

Bug Fixes

  • Remove wrong extension in package.json file (#3031)

Pull Requests

1.19.0

2019-08-05

Features

  • Implement a new unified file emission API for assets and chunks with support for explicit file names (#2999)
  • Use the id of the last module in a chunk as base for the chunk name if no better name is available (#3025)
  • 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)

Bug Fixes

  • Do not produce invalid variable names if an empty name is chosen for a virtual module (#3026)
  • Fix an issue where a module variable name would conflict with a local variable name in some formats (#3020)

Pull Requests

1.18.0

2019-08-01

Features

  • Add externalLiveBindings: false option to optimize code when live bindings are not needed (#3010)

Pull Requests

1.17.0

2019-07-15

Features

  • Allow plugins to access current combined sourcemap in transform hook for coverage instrumentation (#2993)

Pull Requests

1.16.7

2019-07-09

Bug Fixes

  • Fix an issue where exported import.meta properties would lead to invalid code (#2986)

Pull Requests

1.16.6

2019-07-04

Bug Fixes

  • Do not pass undefined to resolveDynamicImport for unresolvable template literals (#2984)

Pull Requests

1.16.5

2019-07-04

Bug Fixes

  • onwarn should still be called when --silent is used (#2982)
  • Properly clean up watchers for files that are deleted between builds (#2982)

Pull Requests

1.16.4

2019-07-02

Bug Fixes

  • Do not show a TypeScript error when providing a location as number to this.warn and this.error (#2974)
  • Use the correct TypeScript type for Sourcemap.version (#2976)

Pull Requests

1.16.3

2019-06-29

Bug Fixes

  • Prevent name conflicts with unused function parameters (#2972)

Pull Requests

1.16.2

2019-06-22

Bug Fixes

  • Properly wrap dynamic imports in Promises that can be caught when generating CJS output (#2958)

Pull Requests

1.16.1

2019-06-21

Pull Requests

1.16.0

2019-06-21

Features

  • Add strictDeprecations option to throw when currently or upcoming deprecated features are used (#2945)
  • Keep annotations and comments when simplifying logical and conditional expressions (#2955)

Bug Fixes

  • Generate proper namespace objects when dynamically importing external dependencies for AMD or CJS formats (#2954)
  • Fix dynamically imported variables not being resolved correctly when importing from an entry chunk with only a default export (#2954)
  • Do not reexport default when reexporting a namespace (#2954)

Pull Requests

1.15.6

2019-06-16

Bug Fixes

  • No longer use an alternate screen in watch mode to allow scrolling (#2942)
  • Prioritize non-external imports over external ones when resolving conflicting namespace re-exports (#2893)

Pull Requests

1.15.5

2019-06-14

Bug Fixes

  • Do not include any comments for completely tree-shaken files so that renderedLength === 0 is a reliable check (#2940)
  • Do not cause type errors when returning null from resolveId (#2941)

Pull Requests

1.15.4

2019-06-14

Bug Fixes

  • Improve how asset and chunk URLs are resolved for UMD, IIFE and CJS output (#2937)

Pull Requests

  • #2937: Fix URL resolution to work when the current script contains query parameters (@lukastaegert)

1.15.3

2019-06-13

Bug Fixes

  • Always reemit assets and chunks from cached transform hooks (#2936)

Pull Requests

1.15.2

2019-06-13

Bug Fixes

  • Make sure chunks emitted from transform hooks are also emitted for incremental builds in watch mode (#2933)

Pull Requests

1.15.1

2019-06-11

Bug Fixes

  • Do not fail when reexporting variables in dynamic entry points from other chunks (#2928)

Pull Requests

1.15.0

2019-06-11

Features

  • Tone down try-catch deoptimization while maintaining polyfill support (#2918)

Bug Fixes

  • Handle feature detection with "typeof" for regular expressios (#2916)
  • Deoptimize '' + variable' type coercion as expression statement for feature detection (#2917)
  • Always observe argument side-effects when tree-shaking (#2924)

Pull Requests

1.14.6

2019-06-10

Bug Fixes

  • Fix an issue where call arguments were not included in try statements (#2914)

Pull Requests

  • #2914: Properly include try statements for each pass when deoptimization is deactivated (@lukastaegert)

1.14.5

2019-06-09

Bug Fixes

  • Keep external ids unmodified when using the object form of resolveId (#2907)
  • Cache dynamic import resolutions when using Rollup cache (#2908)
  • Keep all necessary parentheses when tree-shaking call arguments (#2911)

Pull Requests

1.14.4

2019-06-07

Bug Fixes

  • Do not omit external re-exports for moduleSideEffects: false (#2905)

Pull Requests

  • #2905: Make sure external re-exports are included for moduleSideEffects: false (@lukastaegert)

1.14.3

2019-06-06

Bug Fixes

  • Generate correct external imports when importing from a directory that would be above the root of the current working directory (#2902)

Pull Requests

1.14.2

2019-06-05

Bug Fixes

  • Prevent unnecessary inclusion of external namespace import in certain situations (#2900)

Pull Requests

1.14.1

2019-06-05

Bug Fixes

  • Fix an issue where try-statements were not included properly when a variable declared inside the statement was accessed outside it (#2898)
  • Fix an issue where await expressions were not included properly (#2899)

Pull Requests

  • #2898: Properly include try-catch-statements even if they have already been included in some way (@lukastaegert)
  • #2899: Fix unintended early return in await inclusion handling (@lukastaegert)

1.14.0

2019-06-05

Features

  • Deoptimize code inside and called from try-statements for feature detection (#2892)
  • Tree-shake unused call arguments (#2892)

Pull Requests

  • #2892: Implement try-statement-deoptimization for feature detection, tree-shake unused arguments (@lukastaegert)

1.13.1

2019-06-01

Bug Fixes

  • Avoid conflicts between top-level module, require etc. and CommonJS runtimes (#2889)

Pull Requests

1.13.0

2019-05-31

Features

  • Omit exports and module from SystemJS wrapper if possible (#2880)
  • Try to use the first letters of names when mangling exports (#2885)

Bug Fixes

  • Avoid conflicts with local variables when using format specific globals to render dynamic imports and file URLs (#2880)
  • Do not produce undefined reexports when reexporting from entry points (#2885)

Pull Requests

  • #2880: Deconflict global variables used inside format-specific code (@lukastaegert)
  • #2885: Do not produce undefined reexports when reexporting from entry points and refactor chunk linking (@lukastaegert)

1.12.5

2019-05-30

Pull Requests

1.12.4

2019-05-27

Bug Fixes

  • Show correct error stack trace for errors throw in "load" hooks (#2871)

Pull Requests

1.12.3

2019-05-19

Bug Fixes

  • Prevent duplicate imports when exports are reexported as default exports (#2866)

Pull Requests

1.12.2

2019-05-17

Bug Fixes

  • Do not fail when using clearScreen:false in watchMode (#2858)
  • Properly resolve star reexports when preserving modules (#2860)

Pull Requests

1.12.1

2019-05-16

Bug Fixes

  • Extend file name sanitation to also replace "?" and "*" e.g. when preserving modules with the updated commonjs plugin (#2860)
  • Do not ignore module transformer that return an empty string (#2861)

Pull Requests

1.12.0

2019-05-15

Features

  • Add treeshake.moduleSideEffects option to allow removing empty imports without a side-effect check (#2844)
  • Extend plugin API to allow marking modules as side-effect-free (#2844)
  • Extend this.resolve plugin context function with an option to skip the resolveId hook of the calling plugin (#2844)
  • Add isEntry flag to this.getModuleInfo plugin context function (#2844)
  • Distribute Rollup as optimized ES2015 code (#2851)

Pull Requests

1.11.3

2019-05-05

Bug Fixes

  • Quote es3 keywords in namespace objects (#2825)

Pull Requests

  • #2825: Add es3 support for namespace object import (@sormy)

1.11.2

2019-05-04

Bug Fixes

  • Prevent a crash when handling circular namespace exports (#2836)

Pull Requests

  • #2836: Make sure circular export * from X does not stack overflow (@Swatinem)

1.11.1

2019-05-04

Bug Fixes

  • Fix an issue where rendered exports were reported as "removed" in the bundle information (#2835)

Pull Requests

  • #2835: Fix removedExports to correctly track the exported item (@Swatinem)

1.11.0

2019-05-03

Features

  • Add emitChunk plugin context function to emit additional entry chunks that can be referenced from the code (#2809)
  • Allow manualChunks to be a function (#2831)
  • Omit .js extensions in AMD imports to make sure an AMD baseUrl would work (#2809)
  • Automatically use the name of the imported module as a base for dynamically imported chunks (#2809)
  • Add resolveFileUrl plugin hook to replace resolveAssetUrl and handle emitted chunks as well (#2809)
  • Add resolve plugin hook to replace resolveId and isExternal that returns an object (#2829)
  • Allow resolveDynamicImport to return an {id, external} object to also resolve unresolvable dynamic imports to a module (#2829)

Bug Fixes

  • Do not create invalid code if a dynamic import contains nothing but reexports (#2809)
  • Do not fail if modules that define a manual chunk depend on each other (#2809)
  • Do not fail if a module that defines a manual chunk is the dependency of a module defining a different manual chunk (#2809)
  • No longer fail for unnamed duplicate entry points but combine them (#2809)
  • Always return string | null from this.resolveId even if some resolveId hooks return objects (#2829)
  • Show proper warnings when resolveDynamicImport resolves to a non-external module that does not exist (#2829)

Pull Requests

1.10.1

2019-04-19

Bug Fixes

  • Invalid options.format values will now trigger a helpful error (#2813)

Pull Requests

1.10.0

2019-04-11

Features

  • Improve generated code to polyfill import.meta.url (#2785)
  • Add plugin hook to configure handling of import.meta (#2785)
  • Improve generated code when accessing URLs of emitted assets (#2796)
  • Add plugin hook to configure the generated code when accessing URLs of emitted assets (#2796)

Bug Fixes

  • No longer resolve assets to their parent URL in some cases (#2796)

Pull Requests

1.9.3

2019-04-10

Bug Fixes

  • Simplify return expressions that are evaluated before the surrounding function is bound (#2803)

Pull Requests

  • #2803: Handle out-of-order binding of identifiers to improve tree-shaking (@lukastaegert)

1.9.2

2019-04-10

Bug Fixes

  • Allowing replacing output.file with output.dir in the outputOptions hook (#2802)

Pull Requests

1.9.1

2019-04-10

Bug Fixes

  • Make sure inline comments in dynamic imports are preserved (#2797)

Pull Requests

1.9.0

2019-04-05

Features

  • Add built-in support for bigint (#2789)

Pull Requests

1.8.0

2019-04-02

Features

  • Support module as alias for esm and commonjs for cjs to match Node (#2783)

Pull Requests

1.7.4

2019-03-28

Bug Fixes

  • Improve TypeScript type of the treeshaking options (#2779)

Pull Requests

1.7.3

2019-03-24

Bug Fixes

  • Use getters when re-exporting live-bindings (#2765)

Pull Requests

  • #2765: Support exporting live-bindings from other chunks or external dependencies (@lukastaegert)

1.7.2

2019-03-24

Bug Fixes

  • Make sure relative external ids are resolved correctly (#2774)

Pull Requests

1.7.1

2019-03-24

Bug Fixes

  • Prevent invalid code when exporting several hundred identifiers from a chunk (#2768)
  • Do not wrongly deconflict labels (#2776)

Pull Requests

1.7.0

2019-03-20

Features

  • Sort chunk exports by name for greater consistency (#2757)

Bug Fixes

  • Fix a situation where tree-shakeable code would not be removed in an indeterminate manner (#2757)

Pull Requests

1.6.1

2019-03-20

Bug Fixes

  • Avoid name clashes of unused default exports when tree-shaking is false (#2758)
  • Do not crash when generating SystemJS bundles containing array patterns with member expressions (#2760)

Pull Requests

1.6.0

2019-03-08

Features

  • Add plugin hook to modify output options (#2736)

Pull Requests

1.5.0

2019-03-07

Features

  • Allow resolving to a different id while marking it as external at the same time (#2734)

Pull Requests

1.4.2

2019-03-07

Bug Fixes

  • Respect variable identity of exports when hashing (#2741)
  • Resolve a situations where a variable was imported twice with the same name (#2737)

Pull Requests

1.4.1

2019-03-04

Bug Fixes

  • Do not treat the import target "" as external by default (#2733)

Pull Requests

1.4.0

2019-03-01

Features

  • Add option to change the name of the dynamic import function to allow polyfilling it (#2723)

Pull Requests

1.3.3

2019-03-01

Bug Fixes

  • Fix performance regression when handling long chains of calls to property methods (#2732)

Pull Requests

1.3.2

2019-02-27

Bug Fixes

  • Allow ids of default exported classes to be exported separately (#2728)

Pull Requests

1.3.1

2019-02-27

Bug Fixes

  • Correctly reexport the default export from entry chunks (#2727)

Pull Requests

1.3.0

2019-02-26

Features

  • Treeshake call expressions prefixed with UglifyJS style @__PURE__ annotations (#2429)

Pull Requests

1.2.5

2019-02-26

Bug Fixes

  • Store external ids reported by plugins in watch mode (#2718)

Pull Requests

1.2.4

2019-02-26

Bug Fixes

  • Fix an issue where a variable was imported twice under the same name (#2715)

Pull Requests

  • #2715: Deduplicate imports referencing default exports and their original variables (@lukastaegert)

1.2.3

2019-02-23

Bug Fixes

  • Use correct path when rendering dynamic imports where the entry module is empty (#2714)

Pull Requests

1.2.2

2019-02-19

Bug Fixes

  • Fix wrong external imports when using the paths options only for some outputs (#2706)

Pull Requests

1.2.1

2019-02-17

Bug Fixes

  • Fix ESM version of Rollup (#2705)

Pull Requests

1.2.0

2019-02-17

Features

  • Fewer renamed variables due to a completely reimplemented deconflicting logic (#2689)

Bug Fixes

  • Respect rendered and tree-shaken exports when determining chunk hashes (#2695)
  • Fix an error when dynamic imports end up in the same chunk as one of their importees (#2677)
  • Do not generate invalid code when expressions containing IIFEs are simplified (#2696)
  • Do not throw an error when more than ten bundles are watched (#2700)
  • Treat re-exported globals in a spec-compliant way (#2691)
  • Fix issues related to wrongly renamed variables (#2689)
  • Do not throw an error if config files contain non-default exports (#2673)
  • Improve type of RollupOutput.output to guarantee at least one chunk (#2679)

Pull Requests

1.1.2

2019-01-21

Bug Fixes

  • Tree-shaken dynamic imports no longer leave behind undefined entries in the bundle information (#2663)
  • Dynamic imports in dynamically imported files could lead to crashes and would not always create new chunks (#2664)

Pull Requests

1.1.1

2019-01-19

Bug Fixes

  • Make sure object prototype methods are not considered to be falsy when tree-shaking (#2652)

Pull Requests

1.1.0

2019-01-09

Features

  • Make this.meta available from the options plugin hook (#2642)
  • Add a new writeBundle plugin hook that is called after all files have been written (#2643)

Bug Fixes

  • Make sure the acorn import of the bundled non-ESM acorn plugins is correctly translated to ESM (#2636)
  • Make sure input options are actually passed to the buildStart hook (#2642)

Pull Requests

1.0.2

2019-01-05

Bug Fixes

  • Make sure the transform hook is always reevaluated when a file watched by the hook changes (#2633)
  • Fix a crash when generating hashes for tree-shaken dynamic imports (#2638)
  • Fix a crash and some inconsistencies when using the acorn-bigint plugin (#2640)

Pull Requests

1.0.1

2019-01-03

Bug Fixes

  • Properly handle reexporting an external default export for non-ESM targets when using named exports mode (#2620)
  • Do not (wrongly) re-declare input options in the merged RollupOptions type (#2622)

Pull Requests

1.0.0

2018-12-28

Breaking Changes

  • Several (mostly deprecated) options have been removed or renamed (#2293, #2409):
    • banner -> output.banner
    • dest -> output.file
    • entry -> input
    • experimentalCodeSplitting -> now always active
    • experimentalDynamicImport -> now always active
    • experimentalPreserveModules -> preserveModules
    • exports -> output.exports
    • extend -> output.extend
    • footer -> output.footer
    • format -> output.format
    • freeze -> output.freeze
    • globals -> output.globals
    • indent -> output.indent
    • interop -> output.interop
    • intro -> output.intro
    • load -> use plugin API
    • moduleName -> output.name
    • name -> output.name
    • noConflict -> output.noConflict
    • output.moduleId -> output.amd.id
    • outro -> output.outro
    • paths -> output.paths
    • preferConst -> output.preferConst
    • pureExternalModules -> treeshake.pureExternalModules
    • resolveExternal -> use plugin API
    • resolveId -> use plugin API
    • sourcemap -> output.sourcemap
    • sourceMap -> output.sourcemap
    • sourceMapFile -> output.sourcemapFile
    • strict -> output.strict
    • targets -> use output as an array
    • transform -> use plugin API
    • useStrict -> output.strict
  • In general, output options can no longer be used as input options (#2409)
  • bundle.generate and bundle.write now return a new format (#2293)
  • Several plugin hooks have become deprecated and will display warnings when used (#2409):
    • transformBundle
    • transformChunk
    • ongenerate
    • onwrite
  • Plugin transform dependencies are deprecated in favour of using the this.addWatchFile plugin context function (#2409)
  • Accessing this.watcher in plugin hooks is deprecated in favour of the watchChange plugin hook and the this.addWatchFile plugin context function (#2409)
  • Using dynamic import statements will by default create a new chunk unless inlineDynamicImports is used (#2293)
  • 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)

Features

  • The --dir ClI option can now be aliased as -d (#2293)
  • The --input option now supports named entry points via = (#2293)

Bug Fixes

  • Both the --input option as well as the default CLI option now support named inputs (#2293)

Pull Requests

0.68.2

2018-12-23

Bug Fixes

  • Do not assume hoisted variables to have been initialized (#2607)

Pull Requests

  • #2607: Fix an issues where hoisted variables were assumed to have been initialized (@lye)

0.68.1

2018-12-19

Bug Fixes

  • Fix an issue with UMD wrappers where a variable is used without being defined (#2600)

Pull Requests

  • #2600: Fix UMD and IIFE wrapper issues and add comprehensive functional wrapper tests (@lukastaegert)

0.68.0

2018-12-16

Breaking Changes

  • optimizeChunks is renamed to experimentalOptimizeChunks to reflect this feature is not production-ready yet (#2575)

Features

  • Plugins can iterate all module ids via this.moduleIds (#2565)
  • Plugins can get graph information about a module via this.getModuleInfo(id) (#2565)
  • Plugins and JS API users get more information about the generated chunks: dynamicImports, facadeModuleId, isDynamicEntry, name (#2575)
  • Tree-shaken dynamic imports will no longer create chunks or influence chunking in any way (#2575)
  • Dynamic imports will no longer follow the entryFileNames but the chunkFileNames property reflecting those are solely internally used (#2575)
  • If there are chunk naming conflicts, entry chunks will always take precedence (#2575)
  • If an entry facade is created, only the facade chunk is marked as isEntry (#2575)
  • 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)
  • Chunks no longer contain imports for variables that are tree-shaken in the chunk but used in other chunks (#2584)
  • Chunks will always import re-exported variables directly from the chunk where they are originally exported from (#2584)
  • 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)
  • Simplify the UMD wrapper code as much as possible, especially if there are no exports (#2594)
  • The UMD wrapper will now work in strict mode by checking for self before this when determining the global variable (#2594)

Bug Fixes

  • If a facade is created for a dynamic entry point, this facade will be imported instead of the facaded chunk (#2575)
  • Manual chunks that include multiple entry points will have proper facades created for all entry points if necessary (#2575)
  • 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)
  • Missing export shims work properly in SystemJS (#2584)
  • preserveModules now handles dynamic namespace imports (#2584)
  • Fix chunk execution order in certain scenarios (#2584)
  • Exports and assignments using destructuring syntax will properly update the exported variables when generating SystemJS output (#2587)
  • Hashes in chunk names will now also take dynamic imports into account (#2596)

Pull Requests

  • #2565: Provide module graph information on the plugin context (@samccone)
  • #2575: Extend bundle information, tree-shake dynamic imports, fix dynamic import facade creation, support manual chunks with multiple entry points, make optimizeChunks experimental (@lukastaegert)
  • #2577: Update dependencies (@lukastaegert)
  • #2584: Prune tree-shaken chunk imports, fix missing export shimming, support dynamic namespaces when preserving modules, improve chunk execution order (@lukastaegert)
  • #2587: Support exports using destructuring declarations and assignments in SystemJS (@lukastaegert)
  • #2590: Make sure chunk ids do not contain invalid characters to allow for chunks to correspond to virtual modules (@lukastaegert)
  • #2594: Simplify UMD wrapper code and make sure it works in strict mode (@lukastaegert)
  • #2596: Take both static and dynamic dependencies into account when calculating hashes (@lukastaegert)

0.67.4

2018-12-03

Bug Fixes

  • Prevent corrupt source maps for files with very long lines (#2571)

Pull Requests

  • #2571: Fix an issue with long lines in sourcemaps (@mislav)

0.67.3

2018-11-17

Bug Fixes

  • Make sure the ESM browser build is actually published to npm (#2560)
  • Throw proper error when using inlineDynamicImports with experimentalPreserveModules (#2560)

Pull Requests

  • #2552: Properly include ESM browser build in package (@lukastaegert)
  • #2560: Show proper error when using inlineDynamicImports with experimentalPreserveModules (@clarkdo)

0.67.2

2018-11-17

Bug Fixes

  • Prevent crash when not returning sourcemaps from renderChunk plugin hook (#2558)

Pull Requests

  • #2558: Prevent crash when not returning sourcemaps from renderChunk (@kyle1320)

0.67.1

2018-11-11

Bug Fixes

  • Deconflict CLI entry points with same name but on different paths if no explicit naming is used (#2548)

Pull Requests

  • #2548: Deconflict CLI entry points with same name but on different paths if no explicit naming is used (@lukastaegert)

0.67.0

2018-11-04

Breaking Changes

none

Features

  • Do not resolve external dynamic imports via plugins to match the logic for static external imports again (#2505)
  • Support virtual modules created by plugins when preserving modules (#2511)
  • Add new output.sourcemapExcludeSources option to exclude the actual sources from sourcemaps (#2531)

Bug Fixes

  • Fix TypeScript type for sourcemaps (#2507)
  • Fix order of external and inter-chunk imports to match the proper execution order (#2508)
  • Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
  • Prevent memory leak when using the bundle as cache (#2522)
  • Fix mis-placed semicolons for certain SystemJS exports (#2529)

Pull Requests

  • #2505: Do not resolve external dynamic imports via plugins (@lukastaegert)
  • #2507: Fix public sourcemap type (@aMarCruz)
  • #2508: Improve execution order of chunks and externals (@lukastaegert)
  • #2510: Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (@devsnek)
  • #2511: Create chunks for virtual modules when preserving modules (@lukastaegert)
  • #2522: Prevent memory leak when using the bundle as cache (@kyle1320)
  • #2529: Fix mis-placed semicolons for certain SystemJS exports (@kyle1320)
  • #2531: add sourcemapExcludeSources option to exclude the source content from sourcemaps (@kitsonk)

0.66.6

2018-10-10

  • Properly deconflict function and class declaration ids of reassigned default exports (#2502)

0.66.5

2018-10-09

  • Remove cache from memory once no longer needed (#2496)
  • Provide better error message when reexporting external namespace reexports (#2499)

0.66.4

2018-10-04

  • Fix links in warnings and errors (#2471)

0.66.3

2018-10-03

  • Detect side-effects in string.replace function arguments (#2476)
  • Make sure chunk ids are assigned before creating output bundle (#2483)
  • Use proper plugin name in error (#2470)
  • Update TypeScript version and fix type errors (#2488)

0.66.2

2018-09-21

  • Add additional information to parse errors messages in JSON and other non-JS files (#2466)

0.66.1

2018-09-19

  • Ignore falsy plugins (#2464)
  • Switch back to official TypeScript plugin (#2465)

0.66.0

2018-09-16

  • Support ES2019 optional catch bindings (#2455)
  • Add option to transform paths within sourcemaps (#2430)
  • Add renderStart and renderEnd plugin hooks (#2438)
  • Expose ESM browser build and minify browser builds (#2437
  • Associate hoisted variables in function bodys with function parameters (#2456)
  • Fix issue when deconflicting variables used as pattern defaults (#2446)
  • Properly deconflict default exported class and function expressions with ids (#2458)
  • Faster internal test builds (#2457)
  • Switch to rollup-plugin-typescript2 (#2460)
  • Fix internal "perf" script (#2433)
  • Test that errors are passed to the buildEnd hook (#2450)

0.65.2

2018-09-05

  • Prevent watch mode memory leak (#2441)

0.65.1

2018-09-05

  • Prevent globbing when using chokidar (#2432)

0.65.0

2018-08-25

  • Refactor and unify plugin system (#2382)
  • Implement plugin cache API (#2389)
  • Add watchChange plugin hook to watch changed files, deprecate asset dependencies (#2405)
  • Refine asset handling (#2369)
  • Implement renderChunk hook to replace transformChunk and transformBundle hooks (#2406)
  • Add rollup version to plugin context (#2394)
  • Do not resume stdin in watch mode to fix it for Lerna users (#2410)
  • Allow [format] placeholder for id generation (#2387)
  • Always log error stacks even when a code frame is given (#2417)
  • Do not test module ids starting with \0 as external (#2400)
  • Fix tracing of namespace variables (#2408)
  • Fix re-tracing of namespace variables (#2420)
  • Properly wrap comment annotations in SystemJS exports (#2408)
  • Fix renaming of destructured parameters (#2419)
  • Do not display version in watch mode when using --silent (#2392)
  • Make cacheExpiry an experimental option for now (#2401)
  • Lint test configs on commit (#2402)
  • Add code of conduct (#2388)
  • Move to CircleCI (#2390)
  • Update pull request template (#2404)

0.64.1

2018-08-07

  • Do not render initializers of hoisted variables in dead branches (#2384)

0.64.0

2018-08-07

  • Print memory consumption together with performance timings (#2370)
  • Enable plugins to mark imports as external by returning false for resolveId (#2351)
  • Always retain empty manual chunks (#2362)
  • Ensure CLI warnings are shown on errors and add error for external id collisions (#2334)
  • Remove unnecessary dependency, update dependencies, fix linting of test config (#2376)
  • Add targeted Github issue templates (#2356)

0.63.5

2018-08-01

  • Ensure onwrite plugin hooks execute in sequence (#2364)
  • Always warn when no name is provided for a global module (#2359)
  • Add utility type for user created plugins (#2355)
  • Remove deprecated es6 format from types (#2349)
  • Mark inlineDynamicImports as optional in types (#2348)

0.63.4

2018-07-20

  • Use turbocolor instead of chalk (#2339)

0.63.3

2018-07-20

  • Handle expressions where "in" and "instanceof" are applied to primitive values (#2344)

0.63.2

2018-07-18

  • Fix bind order in for-of loops (#2338)

0.63.1

2018-07-18

0.63.0

2018-07-17

  • Fix many tree-shaking related issues (#2315)
  • Add experimental support for top-level await (#2235)
  • Prevent duplicate version printout in watch mode (#2325)
  • Respect error frames provided by plugins (#2309)
  • Add esm format alias to types (#2327)
  • Further unify internal test setup (#2329)

0.62.0

2018-06-27

  • Add option to automatically shim missing exports (#2118)
  • Inline dynamic imports that are also imported statically and only used in a single chunk (#2295)
  • Handle caching and invalidation of assets (#2267)
  • Fix plugin related types (#2299)

0.61.2

2018-06-23

  • Improve watcher error handling, only rebuild invalidated outputs (#2296)
  • Update dependencies, make watcher more stable (#2297)

0.61.1

2018-06-21

  • Do not try to deconflict "undefined" (#2291)
  • Properly track values for loop interator declarations and reassigned namespaces, add smoke test (#2292)

0.61.0

2018-06-20

  • Declare file dependencies via transform plugin hooks (#2259)
  • Handle undefined values when evaluating conditionals (#2264)
  • Handle known undefined properties when evaluating conditionals (#2265)
  • Access watch events via the plugin context (#2261)
  • Add option to suppress __esModule flag in output (#2287)
  • Fix issue when re-declaring variables, track reassignments in more cases (#2279)
  • Add VSCode debug settings (#2276)

0.60.7

2018-06-14

  • Fix typing issue (#2269)

0.60.6

2018-06-14

  • Track mutations of included virtual arrays (#2263)
  • Update readme (#2266)

0.60.5

2018-06-14

  • Track deep reassignments of global and exported variables and improve performance (#2254)

0.60.4

2018-06-13

  • Properly handle initially uninitialized exports and exports of globals in SystemJS output (#2258)

0.60.3

2018-06-13

  • Fix types to allow watching an array of outputs (#2262)

0.60.2

2018-06-11

  • Permit setting an asset's source in generateBundle (#2256)
  • Add automatic linting (#2242)

0.60.1

2018-06-07

  • Fix plugin regressions (#2246)
  • Avoid conflicts for large numbers of variables (#2244)

0.60.0

2018-06-06

  • New plugin hooks: transformChunk, buildStart, buildEnd; extended plugin context with warn, error, resolveId, isExternal, emitAsset, setAssetSource and getAssetFileName available to any hook (#2208)
  • [BREAKING] Deprecate the legacy option and thus IE8 support (#2141)
  • Detect more known extensions and load .mjs without extension (#2211)
  • Add compact output mode (#2151)
  • Significantly improve sourcemap generation performance (#2228)
  • Enable naming SystemJS modules (#2028)
  • Do not use alternate screen if clearScreen is set in watch mode (#2125)
  • Allow object input form for code-splitting in watch mode (#2217)
  • Track reassignments of methods of exports from outside (#2240)
  • Preserve id of default exported functions and classes (#2234)
  • Add semicolons after default exports (#2209)
  • Fix build problems on Windows (#2232)
  • Display install size in readme (#2196)
  • Improve preserve modules test (#2236)

0.59.4

2018-05-28

  • Fix performance regression when many return statements are used (#2218)

0.59.3

2018-05-24

  • Fix reassignment tracking for constructor parameters (#2214)

0.59.2

2018-05-21

  • Fix reassignment tracking in for-in loops (#2205)

0.59.1

2018-05-16

  • Fix infinite recursion when determining literal values of circular structures (#2193)
  • Fix invalid code when simplifying expressions without spaces (#2194)

0.59.0

2018-05-15

  • Tree-shake statically analysable dynamic conditionals (#2167)
  • Do not emit empty chunks when code-splitting or empty files when preserving modules (#2128)
  • Support import.meta.url (#2164)
  • Add esm format alias (#2102)
  • Use alphanumeric base64 characters when deconflicting variables (#2188)
  • Improve handling of external modules imported as both default and named imports (#2136)
  • Properly deconflict named imports from other chunks (#2177)
  • Fix an issue with namespaces containing reexports (#2157)
  • Fix an issue with with incorrectly mapped default exports when code-splitting CJS or AMD modules (#2178)
  • Fix an issue with wrong paths of relative external imports (#2160)
  • Fix an issue when using default exports and interop: false (#2149)
  • Fix in issue with invalid syntax in SystemJS output (#2187)
  • Fix an issue when tree-shaking call expressions and reassigned variables (#2186)
  • Fix file paths in source maps (#2161)
  • Fix wrong file name in error message (#2137)
  • Always use npm 5 on CI (#2185)

0.58.2

2018-04-23

  • Fix rendering of certain statically resolvable if statements (#2146)

0.58.1

2018-04-18

  • Fix comment detection (#2129)

0.58.0

2018-04-16

  • Support individual chunk names with optional content hashes (#2068)
  • Support manually created chunks (#2084)
  • Automatically import deep dependencies when code splitting for better performance (#2073)
  • Automatically minify internal export/import names for esm and system output (#2087)
  • Add option to automatically merge small chunks (#2090)
  • Significantly improve tree-shaking performance (#2119)
  • Enable tree-shaking for logical expressions (#2098)
  • Rework external types and reduce type related dependencies (#2108)
  • Support parallel dependency resolution (#2116)
  • Improve deprecation handling (#2076)
  • Enable --perf timings in watch mode (#2065)
  • Improve performance timers (#2111)
  • Improve error handling for plugins (#2100)
  • Improve error when using --dir in a single file build (#2123)
  • Do not warn for external imports that are unused due to tree-shaking (#2124)
  • Update mixed export warning message (#2107)
  • Remove duplicate badges from readme (#2083)
  • Update readme examples (#2086)

0.57.1

2018-03-17

  • Improve sourcemap generation performance (#2062)
  • Add reserved config option namespace and improve CLI interface (#2063)
  • Fix issue with default exported function and class expressions (#2059)
  • Replace forEach with faster for loops in some places (#2064)

0.57.0

2018-03-15

  • Add option to preserve the module structure instead of bundling (#1922)
  • Enable watch mode when code-splitting (#2035)
  • Optionally pass CLI commands to config file (#1926)
  • Option to add correct .toString tags to namespaces (#2041)
  • Option and scripts to display performance timings (#2045)
  • Fixes for exported or early accessed namespaces + improved namespace indentation (#2041)
  • Include missing TypeScript dependencies (#1965)
  • Add #_PURE annotation to frozen namespaces (#2044)
  • Improve sourcemap and tree-shaking performance (#2052)
  • Inline sourcemap lookups and make rollup smaller (#2055)
  • Use updated magic-string types (#2057)
  • [BREAKING] Revert class id preservation from #2025 (#2048)
  • [BREAKING] Refactor missing export plugin hook (#1987)

0.56.5

2018-03-07

  • Preserve ids when deconflicting classes (#2025)
  • Fix an issue with re-exported namespace imports (#2034)
  • Prevent an infinite loop when binding member expressions (#1963)
  • Convert code style via prettier (#2031)
  • Fix links in documentation (#2026)

0.56.4

2018-03-05

  • Make rollup builds reproducible (#2024)
  • Improve error handling for source maps (#2012)
  • Properly handle SystemJS default exports without semicolons (#2019)
  • Properly handle importing the same variable several times when code-splitting (#2020)
  • Improve re-export tracing (#2021)
  • Apply "prettier" on commit (#2017)
  • Automatically clean up outdated tests (#2009)
  • Add SystemJS output to form tests (#2022)
  • Improve internal build configuration (#2016)

0.56.3

2018-02-25

  • Fix issues around default exports and module facades (#2001)
  • Improve and fix internal chunk interface (#1994)
  • Fix superfluous semicolons added after declarations (#1999)
  • Improve code-splitting tests (#1990)

0.56.2

2018-02-19

  • Fix handling of reassigned default exports (#1975)
  • Fix handling of renamed exports in entry points (#1977)
  • Update internal TypeScript version (#1980)
  • Omit compiled source files from published types (#1981)
  • Fix example in readme file (#1984)
  • Fix non-replaced dynamic imports in non-ESM output (#1985)

0.56.1

2018-02-16

  • Fix regression when rendering switch statements (#1971)

0.56.0

2018-02-15

  • Update to ECMAScript 2018 (#1953)
  • Rework tree-shaking rendering algorithm (#1949)
  • Tree-shake pure prototype calls on literals (#1916)
  • Expose AST parser to plugins (#1945)
  • Fix namespace re-export deconflicting (#1960)
  • Allow globals to be re-exported (#1959)
  • Fix internal performance timers (#1966)

0.55.5

2018-02-10

  • Remove OpenCollective dependency (#1915)

0.55.4

2018-02-09

  • Improve name deconflicting of external variables (#1930)
  • Improve re-export handling (#1947)
  • Mark preserveSymlinks option as optional (#1939)
  • Enable code-splitting tests to check directory structures (#1924)
  • Improve TypeScript definition test (#1954)

0.55.3

2018-02-01

  • Remove OpenCollective dependency (#1915)

0.55.2

2018-02-01

  • Add option to not follow symlinks (#1819)
  • Fix crash in windows shell (#1928)
  • Fix and test for external TypeScript errors (#1903)
  • Activate OpenCollective (#1915)
  • Optimize CI scripts (#1921)

0.55.1

2018-01-26

  • Improve dynamic import workflow (#1907)
  • Properly handle multiple dynamic imports of the same module (#1911)
  • Fix import specifier deshadowing (#1912)
  • Allow plugin load hook to return an empty string (#1908)
  • Let onwarn handler accept strings (#1905)

0.55.0

2018-01-23

  • Support code splitting (#1841)
  • Support SystemJS as output format (#1897)
  • Allow injecting acorn plugins (#1857)
  • Add missingExport plugin hook (#1845)
  • No longer parse config files via bublé (#1899)
  • Use externally maintained dynamic import acorn plugin (#1891)
  • Fix an error message (#1886)
  • Refactor internal rendering options (#1900)
  • Extract internal path resolution (#1879)
  • Extract internal bundle option handling (#1880)
  • Add import description type (#1884)
  • Clean up watch options types (#1860)
  • Clean up some tests (#1888)

0.54.1

2018-01-17

  • Fix TypeScript errors in emitted type definitions (#1871)

0.54.0

2018-01-12

  • Automatically inline locally resolvable dynamic imports (#1816)
  • Preserve directives in function bodies (#1856)
  • Refactor an error notification (#1846)
  • Refactor a wrong import (#1863)
  • Improve emitted TypeScript definitions (#1864)
  • Refactor unused import (#1866)

0.53.4

2018-01-10

  • More type cleanup (#1858)
  • Use chalks internal helper to detect if colors should be used (#1853)
  • Refactor entity handling to use interfaces (#1840)
  • Use immutable.js internal types (#1844)
  • Ship TypeScript declaration files (#1837)

0.53.3

2018-01-02

  • Use correct name when re-exporting from external modules (#1794)
  • Disable warnings when resolveId returns false (#1825)

0.53.2

2017-12-30

  • Properly handle output arrays in the JavaScript API (#1827)

0.53.1

2017-12-28

  • Properly deprecate more config options (#1812)
  • Pass output options to transformBundle plugin hook (#1813)

0.53.0

2017-12-22

  • Experimental dynamic import support (#1790)
  • Unify config validation (#1805)

0.52.3

2017-12-19

  • Properly hoist default exported functions in more situations (#1799)
  • Allow plugin transformations to not overwrite source maps by returning null (#1797)
  • Provide more parameters to "external" handler (#1792)

0.52.2

2017-12-15

  • No longer ignore side-effects in JSON.parse and JSON.stringify (#1785)
  • Updated links in warnings (#1776)
  • No longer prevent self-imports (#1777)
  • Properly hoist default exported functions (#1787)
  • Prevent corruption when re-exporting default exports (#1765)

0.52.1

2017-12-05

  • Improve deprecation warnings (#1765)
  • Properly use stdin (#1774)
  • Let --environment be used multiple times (#1768)
  • Always transpile config files (#1759)
  • Respect globals option in headers of UMD and IIFE files (#1747)

0.52.0

2017-11-25

  • Accept config as promise (#1731)
  • Accept promises for intro/outro/banner/footer (#1253)
  • Option to prevent freezing of namespace imports (#1696)
  • Option to retain all output in watch mode (#1688)
  • Options to fine-tune treeshaking (#1760)

0.51.8

2017-11-19

  • Fix speed problems by simplifying treeshaking reassignment handling (#1740)
  • Update dependencies (#1742)

0.51.7

2017-11-17

  • Keep "this"-context when calling sequence expressions (#1724)

0.51.6

2017-11-16

  • Use sourcemaps to determine error locations (#1728)

0.51.5

2017-11-11

  • Fix regressions with uninitialised conditional expressions (#1720)

0.51.4

2017-11-11

  • Fix regressions preventing builds (#1725)

0.51.3

2017-11-10

  • Fix regression when treeshaking sequence expressions (#1717)

0.51.2

2017-11-09

  • Fix treeshaking regression when labels are used inside functions (#1712)

0.51.1

2017-11-08

  • Fix an issue with empty return statements (#1704)

0.51.0

2017-11-08

  • Massive improvements to the treeshaking algorithm (#1667)

0.50.1

2017-11-08

  • Fix treeshaking regression (#1695)
  • Treeshaking improvements (#1650)
  • Enable installation from Github (#1670)
  • Update documentation (#1660)

0.50.0

2017-09-16

  • Many treeshaking improvements (#1624)
  • Show finish time in watch mode (#1620)

0.49.3

2017-09-08

  • Respect watch options (#1596)
  • Fix treeshaking regressions (#1604)
  • Allow -o to work with output.format (#1606)

0.49.2

2017-08-29

  • Fix treeshaking regressions (#1591)

0.49.1

2017-08-28

  • Fix treeshaking regressions (#1586)

0.49.0

2017-08-27

  • Completely update the treeshaking algorithm (#1582)
  • Only flip screen buffer if appropriate (#1574)
  • Guard against two instances creating the same dir (#1576)

0.48.2

  • Paths is an output option (#1569)

0.48.1

  • Print deprecation warnings in watch mode, and fix options when watcher restarts (#1568)

0.48.0

  • Numerous changes to the options object and CLI arguments (#1479). See this gist for a rundown.

0.47.6

  • Set process.env.ROLLUP_WATCH before loading config file

0.47.5

  • Fix broken multi-bundle configs with rollup.watch (#1532)

0.47.4

  • Delete cached config file before reloading in watch mode

0.47.3

  • Deshadow aliased imports (#1550)

0.47.2

  • Rebuild with dependency that npm randomly deleted

0.47.1

  • Ignore external namespace imports when deshadowing (#1547)

0.47.0

  • Watch config file, restart rollup.watch on change (#1535)
  • Correctly render export { foo } from declarations in es output (#1543)
  • Reinstate missing rollup.VERSION

0.46.3

  • init for/for-of loop section head with correct scopes (#1538, #1539)
  • Fix namespace imports and re-exports in es output (#1511)
  • Deshadow indirectly imported namespaces (#1488, #1505)

0.46.2

  • Pass options to bundle.write correctly in rollup.watch (#1533)
  • init for-in loop section head with correct scopes (#1480)
  • support --no-interop flag (#1524)

0.46.1

  • Remove rollup.watch from browser build (#1530)
  • Remove source-map-support dependency (#1528)

0.46.0

  • options.format is now required (#1491)
  • if options.format is es6, it will now throw an error (should be es) (#1491)
  • Add experimental rollup.watch method, replacing rollup-watch (#1491)
  • Batch warnings together in CLI output (#1491)
  • Clear screen between rebuilds in --watch mode (#1491)
  • onwarn function's second argument is the default handler, allowing easier filtering without reimplementing any logic (#1491)
  • Prevent semi-colon removal after variable declaration that is for loop body (#1275)
  • Return exports for namespaced but non-extended IIFE bundles (#1492)
  • Fix scoping in switch statements (#1498)
  • Handle side-effects in tagged template expressions (#1508)
  • More descriptive error for missing options.format (#1510)
  • Refactor scope handling (#1517)
  • Handle failure of a config in multi-config build (#1513)

0.45.2

  • Fix interop when import is a string (#1486)
  • Separate resolvedIds from resolvedExternalIds (#1490)
  • Add --extend flag to CLI (#1482)

0.45.1

  • Remove weak from optionalDependencies (#1483)

0.45.0

  • [BREAKING] bundle.generate(...) returns a Promise, so that transformBundle plugin hooks can be asynchronous (#1474)

0.44.0

  • [BREAKING] Don't extend existing globals, unless options.extend is true (#827)
  • Fix handling of catch clause parameters (#1462)

0.43.1

  • Fix memory leak on incremental rebuilds (#883)
  • Allow this.warn and this.error to accept a {line, column} object as an alternative to a character index (#1265)
  • Print more useful error if entry module is 'external' (#1264)
  • Catch errors in bundle.generate options (#1463)
  • Fix magic-string deprecation warning (#1445)

0.43.0

  • Allow config files to import JSON (#1426)
  • Allow undefined imports in interop block (#1341)
  • Add process.env.ROLLUP_WATCH = 'true' in watch mode (#1429)
  • Add pureExternalModules option (#1352)
  • Allow plugins to specify options.entry (#1270)
  • Update dependencies

0.42.0

  • Deprecate options.moduleId in favour of options.amd.id (#1365)
  • Add options.amd.define option to specify name of AMD define function (#1365)
  • Fix incorrect class removal with treeshake: false (#1375)
  • Deconflict module exports imported as namespaces (#1384)
  • Handle bare self-imports (#1274)
  • Allow config file to export an array of multiple configs (#1389)
  • Handle exponentiation operator, and fail gracefully on unknown operators (#1416)
  • Add watch option (#1424)

0.41.6

  • Preserve originalSourceMap on incremental rebuilds for loaders with sourcemaps (#1336)

0.41.5

  • Wrap ternary consequent/alternate sequences in parens (#1273)
  • Fix erroneous warning on multiple export * from declarations with defaults (#1278)
  • Prevent variable conflicts with treeshake: false (#1268)
  • Allow missing source when collapsing sourcemaps (#1254)
  • Allow plugins to log with strings (#1316)

0.41.4

  • Fix cases of multiple export * from 'external' declarations (#1252)
  • Fix 'TODO' error message (#1257)

0.41.3

  • Don't treat this.foo as possible namespace (#1258)

0.41.2

  • Optimize namespace['foo'] references (#1240)

0.41.1

  • Include new expressions where callee is a class with side-effects (#980 #1233)

0.41.0

  • Add this.warn(...) and this.error(...) methods to plugin transform hook contexts (#1140)
  • throw always considered to be a side effect (#1227)

0.40.2

  • Add file property to sourcemaps for bundles with plugins (#986)
  • Don't require globals for empty imports (#1217)

0.40.1

  • Allow missing space between export default and declaration (#1218)

0.40.0

  • [BREAKING] Better, more consistent error logging (#1212)
  • Don't use colours and emojis for non-TTY stderr (#1201)

0.39.2

  • Prevent mutation of cached ASTs (fixes stack overflow with rollup-watch) (#1205)

0.39.1

  • Ignore var initialisers in dead branches (#1198)

0.39.0

  • [BREAKING] Warnings are objects, rather than strings (#1194)

0.38.3

  • More informative warning for implicit external dependencies (#1051)
  • Warn when creating browser bundle with external dependencies on Node built-ins (#1051)
  • Statically analyse LogicalExpression nodes, for better dead code removal (#1061)

0.38.2

  • Preserve var declarations in dead branches (#997)
  • Warn if exporting a call expression that looks like a function declaration (#1011)
  • Wrap function expressions in parentheses if necessary (#1011)

0.38.1

  • Fix sourcemap comment removal (#1104)
  • Warn if empty bundle is generated (#444)
  • Support ES2017 syntax (#492)
  • Remove unused imports from external modules (#595)
  • Remove unused function and class declarations inside function bodies (#1108, #1178)
  • Deconflict function expression IDs (#1176)

0.38.0

  • [BREAKING] export { foo as default } creates live binding (#1078)
  • Prevent sourceMappingURL removal edge case (#988)
  • Bind function expression IDs to the correct scope (#1083)
  • Correctly deshadow destructured parameters with assignments (#1008)

0.37.2

  • Remove unused new expressions without side-effects (#179)
  • Only remove valid sourceMappingURL comments (#1132)
  • Ensure blocks containing activated var declarations are included in output (#1113)
  • Support plugin outros (#1116)

0.37.1

  • Follow symlinks (#447)
  • Fix tree-shaking of recursive functions and other cases (#1120, #1142)
  • Support module names that require quotes (#582, #584)
  • Fix #957

0.37.0

  • [BREAKING] Default exports are not included in reified namespaces (#1028)
  • Parentheses do not defeat tree-shaking (#1101, #1128)
  • More legacy fixes: do not create getters (#1069), do not include __esModule (#1068), quote reserved property names (#1057)
  • Fix missing namespace member warnings (#1045)
  • Fix TypeError in arrow function without braces returning a function (#1062)

0.36.4

  • Only depend on program-level call expressions (#977)

0.36.3

  • Add legacy option for IE8 support (#989)

0.36.2

  • Insert semicolons where necessary to fix broken code (#1004)
  • Include module ID and location when warning about top-level this (#1012)
  • More informative error for missing exports (#1033)
  • options.moduleContext for per-module context overrides (#1023)

0.36.1

  • Include naked block statements (#981)
  • Correctly include falsy alternate statements in optimised if blocks (#973)
  • Prevent omission of default exports that are only used by the exporting module (#967)
  • Prevent warning on auto exports with ES output (#966)

0.36.0

  • export { foo as default } no longer creates a live binding (#860)

0.35.15

  • Warn on missing unused imports in deshadowing phase (#928)
  • Always add a newline to the end of bundles (#958)

0.35.14

  • Include all parent statements of expression with effects, up to function boundary (#930)

0.35.13

  • Include superclasses when including their subclasses (#932)

0.35.12

  • Add interop: false option to disable unwrapping of external imports (#939)

0.35.11

  • Deconflict reified namespaces with other declarations (#910)

0.35.10

  • Only remove EmptyStatement nodes directly inside blocks (#913)

0.35.9

  • Support Node 0.12 (#909)

0.35.8

  • Correctly deshadow re-assigned module functions (#910)

0.35.7

  • Refactor flushTime.js (#922)

0.35.6

  • Fix browser build

0.35.5

  • Allow empty for loop heads (#919)

0.35.4

  • Preserve effects in for-of and for-in loops (#870)
  • Remove empty statements (#918)

0.35.3

  • Render identifiers inside template literals

0.35.2

  • Fix broken build caused by out of date locally installed dependencies

0.35.1

  • Rewrite deconflicted class identifiers (#915)
  • Include dependencies in bundle.modules objects (#903)
  • Update to Acorn 4 (#914)

0.35.0

  • Rewrite analysis/tree-shaking code (#902)
  • Include conditional mutations of global objects (#901)
  • Only reify namespaces if necessary (#898)
  • Track mutations of aliased globals (#893)
  • Include duplicated var declarations (#716)

0.34.13

  • Pass { format } through to transformBundle (#867)

0.34.12

  • Fix rollup --watch (#887)
  • Case-sensitive paths (#862)

0.34.11

  • Prevent leaky state when bundle is reused (#875)
  • Ensure intro appears before interop block (#880)

0.34.10

  • Allow custom options.context to replace top-level this (#851)
  • Fix noConflict when used via rollup --config (#846)
  • Place outro block after export block (#852)

0.34.9

  • Disable indentation by default, for faster bundle generation (#812)
  • More helpful error on missing entry file (#802)
  • Preserve comments before import declarations (#815)

0.34.8

  • Wrap UMD factory function in parens to avoid lazy parsing (#774)

0.34.7

  • Leave it up to resolveId to normalize the entry path (#835)
  • Cache decoded mappings (#834)

0.34.5

  • Fix circular export (#813)

0.34.4

  • Module render performance tweak (#823)

0.34.3

  • Avoid infinite recursion in Bundle.sort() (#800)

0.34.2

  • resolveId calls are cached now to improve incremental build
  • Fixed error message recursion in plugins

0.34.1

  • Support paths config (#754)
  • Allow export * from external module, internally

0.34.0

  • Use resolved IDs for relative imports that are also external modules, to allow options.globals to work with them (#763)
  • Ensure reassigned exports are declared in an ES bundle, and remove empty exports.foo; statements (#755)
  • Add newline after sourcemap comment (#756)

0.33.2

  • Add bundle as second argument to ongenerate and onwrite hooks (#773)
  • Warn on top-level this (#770)

0.33.1

  • Fix --no-strict option (#751)
  • Fix Windows edge case with case-sensitive paths (#760)

0.33.0

  • Downgrade missing transformer sourcemap to a warning, not an error, and print the name of the offending plugin if possible (#746)
  • Warn if same name is re-exported from two modules (#722)

0.32.4

  • Add ongenerate and onwrite plugin hooks (#742)

0.32.3

  • Generated correct sourcemaps with reified namespaces (#668)
  • Exclude plugin helper modules from sourcemaps (#747)

0.32.2

  • Allow --globals to work with --external or options.external in whatever configuration (#743)

0.32.1

  • Preserve side-effects to default exports that coincide with used named exports (#733)
  • Support rollup -c node:pkgname (#736)

0.32.0

  • Deprecate es6 format in favour of es (#468)
  • Add correct jsnext:main build (#726)

0.31.2

  • Allow load plugins to provide sourcemap (#715)
  • Allow sourceMapFile in config options (#717)

0.31.1

  • Logging for errors emitted by rollup-watch (#712)

0.31.0

  • Rewrite top-level this as undefined (#707)
  • Pass options.acorn to Acorn (#564)

0.30.0

  • Bundle CLI (#700)
  • Ensure absolute paths are normalised (#704)
  • Allow rollup --watch to work with targets

0.29.1

  • Merge target options with main options (#701)
  • Update magic-string (#690)

0.29.0

  • rollup --watch (#284)

0.28.0

  • Experimental support for incremental rebuilds (#658)

0.27.1

  • Ensure names exported from a module are not replaced with reserved words (#696)
  • Revert (#692) – resolved IDs must be strings

0.27.0

  • Use native promises instead of es6-promise (#689)
  • Support multiple targets in config files (#655)
  • Allow resolveId plugin functions to return non-strings (#692)

0.26.7

  • Distinguish between default and namespace imports of external module (#637)
  • Add __esModule property to named exports in AMD, CJS and UMD modes (#650)

0.26.6

  • Deconflict named imports from external modules in ES bundles (#659)
  • Support options.preferConst to generate const declarations for exports rather than var declarations (#653)

0.26.5

  • Preserve debugger statements (#664)
  • Allow options.external to be a function (#522)

0.26.4

  • Prevent plugin-provided external IDs being normalised (#630, #633)
  • Throw if module exports/re-exports the same name twice, or has multiple default exports (#679)
  • Warn about eval security issue (#675)

0.26.3

  • Ensure reference is not incorrectly marked as a reassignment (#648)

0.26.2

  • Sanity check output of load hook (#607)
  • Correct scoping for ID class expressions (#626)
  • Warn if named and default exports are used together in auto mode (#587)
  • Allow variable initialisers to be rewritten if necessary (#632)
  • Prevent double var with no-treeshake option (#639)

0.26.1

  • Add treeshake: false/--no-treeshake option for debugging (#505)
  • Update build process to use Bublé (#620)

0.26.0

  • Add noConflict/--no-conflict option for UMD builds (#580)
  • Normalise relative external paths (#591)
  • Report files causing transform errors (#609)
  • Handle sourcemap segments with a single member (#619)
  • Update dependencies

0.25.8

  • Unixize entry path (#586)

0.25.7

  • Expand deshadowed shorthand properties (#575)
  • Allow external files to be non-existent (#532)

0.25.6

  • Fix a regression introduced by #566 (#569)
  • Prune dead conditional expressions more carefully (#567)

0.25.5

  • Make sure shorthand destructuring assignments don't break (#528)
  • Allow 'exports' key (#542)
  • Ensure foo. bar where foo is a namespace import is rewritten correctly (#566)
  • Fix an edge case for exported globals (e.g. export { document }) (#562)

0.25.4

  • Fix misnamed exports of default imports in ES bundles (#513)
  • CLI: warn on missing config (#515)
  • Detect side-effects in non-top-level member expression assignment (#476)
  • Don't remove computed property class keys (#504)
  • Augment existing global object rather than replacing (#493)
  • Don't fail on export {}, warn instead (#486)

0.25.3

  • Handle non-objects and null in _interopDefault (#474)

0.25.2

  • Skip dead branches of a conditional expression (#465)
  • Allow globals to be exported (#472)
  • Ensure reassigned exports are exported (#484)

0.25.1

  • Throw error if namespace is called (#446)
  • Prevent shadowing bug in ES6 output (#441)
  • Prevent var exports.foo (#426)
  • Prevent double export of aliased symbols (#438)
  • Provide more informative error if Rollup is used in-browser without appropriate resolveId/load hooks (#275)
  • Use _interopDefault function to DRY out code with many external dependencies, in CommonJS output (#458)

0.25.0

  • 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)
  • Prevent overly aggressive tree-shaking with complex call expressions (#440)

0.24.1

  • Handle calls to default exports other that are not function expressions or references to function declarations (#421)
  • Ensure namespace blocks are created for chained imports (#430)
  • Include references in computed property keys (#434)
  • Use CLI --external option correctly (#417)
  • Allow relative imports to be treated as external, if absolute paths are provided in options.external (#410)
  • Make IIFE output adhere to Crockford style (#415)

0.24.0

  • No longer attempts to resolve IDs in options.external (#407)
  • Fix broken sourcemap resolution in cases where some modules are transformed and others aren't (#404)

0.23.2

  • Ensure dest or sourceMapFile is resolved against CWD for purposes of sourcemap generation (#344)
  • Support banner, footer, intro and outro options via CLI (#330)
  • Allow options.global to be a function rather than an object, and warn on missing names (#293)
  • Ensure side-effects are captured in cyclical call expressions (#397)
  • Fix parse error with body-less arrow function expressions (#403)

0.23.1

  • Reinstate missing fix from (#392)

0.23.0

  • Add bundleTransform plugin hook and option (#387)
  • Correctly store names in sourcemaps, regardless of transformers
  • Add --environment option to CLI (#388)
  • Handle destructuring in exports (#374)
  • Fix UMD global exports bug introduced in 0.22.1 (#392)

0.22.2

  • Prevent lost var keywords (#390)

0.22.1

  • Update expected option keys (#379)
  • Handle transformers that return stringified sourcemaps (#377)
  • Automatically create missing namespaces if moduleName contains dots (#378)
  • Ignore external dependency warnings coming from config file (#333)
  • Update to latest magic-string for performance boost

0.22.0

  • Duplicate warnings are squelched (#362)
  • Plugins can manipulate or override the options object (#371)

0.21.3

  • Validate option keys (#348)
  • Allow namespaces imports to sit alongside named imports (#355)
  • Count references inside destructured objects (#364)
  • Preserve top-level delete statements (#352)

0.21.2

  • Missing relative imports are an error, not a warning (#321)
  • Fixed incorrectly renamed default exports in ES6 bundles (#339)
  • Fixed infinite recursion bug (#341)

0.21.1

  • Remove aggressive: true (was too aggressive) (#309)
  • Handle top-level block statements (#326)
  • Optimise namespaces with default exports (#314)

0.21.0

  • Only include statements whose side-effects are relevant (i.e. contribute to exports or affect global state) (#253) (#253)
  • Exclude dead branches from analysis and inclusion (#249)
  • Add aggressive: true option to eliminate all side-effects outside entry module
  • More informative error when re-exporting non-existent binding (#274)
  • Fix infinite recursion bug (#291)
  • Log errors when using rollup --config (#288)
  • Return rejected promises on startup instead of throwing error, if options are invalid (#303)

0.20.5

  • Ensure re-exports don't create a local binding (#270)

0.20.4

  • Check file exists at resolve time, to allow filenames with non-extension dots in them (#250)
  • Import Promise where used, for Node 0.10 support (#254)
  • Allow asynchronous transformer plugins (#260)
  • Don't assume re-exported bindings are globals when deconflicting (#267)

0.20.3

  • Fix bug where multiple export * declarations caused error (#244)
  • Missing namespace exports are a warning, not an error (#244)
  • Plugins can provide banner and footer options (string, or function that returns a string) (#235)
  • Warn on encountering eval (#186)

0.20.2

  • Handle errors in build config file
  • More robust deconflicting, in cases where e.g. foo$1 already exists
  • Use Rollup CLI for own build process

0.20.1

  • Support --config file to enable plugins with CLI (#226)
  • Prevent default being used as variable name (#215)
  • Update deps

0.20.0

  • Support for plugins (#207)
  • BREAKING – options.transform, options.load, options.resolveId, options.resolveExternal and options.external are no longer supported, and should be handled by plugins. More info
  • 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

0.19.2

  • Fix exporting namespaces to include all of their exports (#204)
  • Namespace exotic objects are frozen to ensure that its properties cannot be modified, reconfigured, redefined or deleted (#203)
  • Fix ReferenceError: Promise is not defined in node v0.10 (#189)

0.19.1

  • Fix module.basename() when used with custom resolveId function
  • Use rollup-babel to build self
  • Exposed the version string through the API: require( 'rollup' ).VERSION

0.19.0

  • 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
  • options.transform functions can return a string, or a {code, map, ast} object. Where possible, sourcemap chains will be flattened (#175)
  • 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)
  • New intro and outro options – similar to banner and footer except inserted inside any format-specific wrapper
  • Multiple var declarations in an export block (e.g. export let a = 1, b = 2) are split up to facilitate tree-shaking (#171)
  • More informative error when using a missing namespace property (#169)
  • Update various dependencies

0.18.5

  • Allow namespaces to be assigned to variables (#168)
  • Promote chalk and source-map-support to dependencies, as they're used by the CLI (#167)

0.18.4

  • Make external modules configurable (i.e. external.config.foo = 'bar') without erroring

0.18.3

  • Crop indent exclusion ranges to exclude enclosing quotes (#166)

0.18.2

  • Include definitions of namespace members that are exported as defaults

0.18.1

  • Include acorn.parse in bundle, remove sander from dependencies, simplify build

0.18.0

  • Internal rewrite
  • Reinstate statically-analysable namespace imports
  • Avoid using getters in namespace blocks where possible (#144)
  • Track variable aliases (#96)
  • Prevent multiline strings being indented (#164)

0.17.4

  • Allow imports from hidden directories (replay of #133)

0.17.3

  • Handle parenthesised default exports (#136)

0.17.2

  • Allow use of scoped npm packages (#131)

0.17.1

  • Allow namespaces to be passed to a function (#149)

0.17.0

  • Roll back to 0.15.0 and reapply subsequent fixes pending resolution of (#132) and related issues

0.16.4

  • Fix import paths with . (#133)
  • Prevent sourceMappingURL confusion leading to broken sourcemap
  • Add code coverage reporting #130)
  • Add modules property to user-facing bundle – an array with {id} objects (#128)

0.16.3

  • Prevent adjacent blocks of multiple var declarations causing magic-string failure (#105)

0.16.2

  • Top-level function calls and assignments to globals are treated as side-effects, and always included
  • Import files from subdirectories of external packages, e.g. import mod from 'foo/sub/mod' (#126)

0.16.1

  • Handle assignment patterns, and destructured/rest parameters, when analysing scopes
  • Fix bug preventing project from self-building (make base Identifier class markable)

0.16.0

  • Internal refactoring (#99)
  • Optimisation for statically-analysable namespace imports (#99)
  • Windows support (theoretically!) (#117 / #119)

0.15.0

  • 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)
  • Only rewrite foo as exports.foo when it makes sense to (#92)
  • Fix bug with shadowed variables that are eventually exported (#91)
  • Exclude unused function declarations that happen to modify a used name (#90)
  • Simplify internal Scope model – scopes always attach to blocks, never function expressions/declarations

0.14.1

  • export { name } from './other' does not create a local binding (#16)
  • A single binding can be exported under multiple names (#18)
  • useStrict option exposed to CLI as --strict/--no-strict (#81)
  • Neater exports from ES6 bundles

0.14.0

  • Internal refactoring
  • Correctly deconflict generated default export names (#72)
  • Handle export { x } from 'y' declarations (#74)
  • Dedupe named imports from external modules in ES6 bundles (#77)

0.13.0

  • Support banner and footer options (#66)
  • Remove pre-existing sourcemap comments (#66)
  • Deconflict external imports (#66)
  • Use existing AST, if provided (#66)
  • Rename internal namespace exports as appropriate (#66)
  • Remove uninitialised var declarations that get exported (#66)
  • Rename variables named exports to avoid conflicts (#66)

0.12.1

  • Don't attempt to mark statements belonging to external modules (#68)
  • Correctly deshadow variables that conflict with imports (#68)

0.12.0

  • Internal re-architecting, resulting in more efficient bundling with reduced memory usage
  • Shorthand properties are expanded if necessary (#61)
  • Fixed various bugs with bundle external dependencies, particularly when generating ES6 bundles (#59)
  • Add --globals option to CLI (#60)
  • Allow imports of external modules for side-effects (#55)
  • Prevent Rollup hanging on non-existent external module (#54)

0.11.4

  • Side-effect preservation applies to internal default exports (#43)

0.11.3

  • Class methods are not incorrectly renamed (#42)
  • External modules are assigned names before canonical names are determined (#42)

0.11.2

  • Correctly handle computed properties (e.g. foo[bar]) when discovering dependencies (#47)

0.11.1

  • Support for export * from '..' (#46)

0.11.0

  • Experimental browser-friendly build (dist/rollup.browser.js) (#25)
  • Internal re-architecting to make discovery process simpler and more performant
  • Preservation of side-effects that happen in a separate module to the affected definition (#39)

0.10.0

  • Better sorting algorithm – sorting happens at the module level, rather than the statement level. This avoids certain edge cases
  • IIFEs are ignored for the purposes of distinguishing between 'strong' and 'weak' dependencies
  • Empty var declarations for exported bindings are omitted

0.9.1

  • Much faster statement insertion (fixes major 0.9.0 performance regression)

0.9.0

  • 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)
  • A statement cannot appear after later statements from the same bundle (#34)
  • Tricky cyclical dependencies are handled (#36)
  • sourcemap option is used by CLI (was omitted previously)

0.8.3

  • Correctly rename functions that have arguments with the same name (#32)
  • Ensure unused default exports are given a legal name (#33)

0.8.2

  • Support moduleId and moduleName via CLI (#24)

0.8.1

  • Anonymous functions that are exported as default are converted to named function declarations for correct hoisting, rather than being bound to functions (#29)
  • Automatically-generated default export names are deconflicted with local definitions (#29)

0.8.0

  • Top-level variable declarations with multiple declarators are split up, to avoid unnecessary code importing and incorrectly-ordered statements (#26)
  • this at the top level is undefined (#28)

0.7.8

  • Avoid using path.parse - unsupported in node 0.10

0.7.7

  • Promise source-map-support from devDependencies to dependencies (#23)

0.7.6

  • Better placement of export default statements (#21)
  • Prevent function calls and property assignments from being treated as rebinding for sake of unbound default exports
  • Add --external foo,bar,baz option to CLI (equivalent to external: ['foo', 'bar', 'baz'])
  • Add CLI tests

0.7.5

  • Prevent accidental conflicts with the global namespace (#20)

0.7.4

  • More precise statement re-ordering to satisfy export default constraint (fixes bug introduced in 0.7.3)

0.7.3

  • Default exports are not bound. To enable this, statements within a module are sorted to retain their original order (#15)
  • Better positioning of comments (#14)
  • Various fixes to get Travis-CI rigged up

0.7.2

  • Fix sourcemap paths on Windows (#6)

0.7.1

  • Named functions can be used as default exports from a bundle
  • Method calls are assumed to mutate the owner (i.e. foo.bar() mutates foo) (#13)
  • 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)

0.7.0

  • Ensure statements are always separated by a newline (#9)
  • Use CommonJS exports correctly (UMD exports)
  • Throw error if moduleName is required but missing (UMD exports)
  • Attach IIFE global to this rather than window
  • Allow names inside bundle to the the names of Object.prototype properties (#12)
  • Keep exports live (#11)

0.6.5

  • Add sourceMappingURL comment to code, as appropriate
  • Higher resolution sourcemaps

0.6.4

  • Fix CJS bundling with default export

0.6.3

  • Fix exports and external module imports with some output formats
  • Fix endless cycle bug on Windows (#3) - thanks @Bobris

0.6.2

  • Permit assignments to properties of imported bindings

0.6.1

  • Support for basic transformers

0.6.0

  • BREAKING - rollup.rollup and bundle.write both take a single options argument
  • BREAKING - external modules must be declared upfront with options.external: [...]
  • 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
  • Fix sourcemap options
  • Include CLI files in npm package (duh)

0.5.0

  • Command line interface
  • Sourcemap generation
  • Correct behaviour with export { x as y } from 'z'

0.4.1

  • More import name deconflicting

0.4.0

  • Self-hosting! rollup.rollup now rolls up rollup
  • Fix bug with comments inside a statement later being appended to it
  • Prevent shadowing of external modules
  • Rewrite computed property identifiers where necessary
  • Preserve original statement order where possible
  • Internal refactoring

0.3.1

  • Saner deconflicting
  • Rename namespace imports from external modules correctly

0.3.0

  • Basic functionality present, mostly spec-compliant

0.2.1

  • Include dist files in npm package (duh)

0.2.0

  • First release capable of doing anything useful
  • Still lots of basic functionality missing

0.1.0

  • Initial experiment