CHANGELOG-2.md
2022-09-22
2022-08-31
amd.forceJsExtensionForImports to enforce using .js extensions for relative AMD imports (#4607)2022-08-19
2022-08-14
2022-08-11
2022-07-27
2022-07-26
2022-07-15
maxParallelFileOps to limit both read and write operations, default to 20 and replaces maxParallelFileRead (#4570)2022-07-08
sourcmapBaseUrl for absolute paths in sourcemaps (#4527)2022-06-20
2022-06-07
2022-06-01
2022-05-31
2022-05-29
2022-05-28
2022-05-27
.trim() on template literals a side effect (#4511)2022-05-19
2022-05-19
2022-05-13
2022-05-07
2022-05-05
2022-04-30
2022-04-30
Object.hasOwn as pure (#4482)git.io in the issue template (@SukkaW)2022-04-15
2022-03-14
2022-03-07
watchChange and closeWatcher hooks asynchronous and make Rollup wait for these hooks before continuing ( #4427)watchChange but display them properly (#4427)2022-03-06
Object.entries and Object.fromEntries as pure (#4429)2022-03-04
2022-03-02
output.generatedCode.symbols to control the usage of Symbols in Rollup-generated code (#4378)output.namespaceToStringTag in favor of output.generatedCode.symbols (#4378)./ and ../ as external dependencies (#4419)2022-02-22
shouldTransformCachedModule (#4414)2022-02-18
2022-02-10
2022-02-07
2022-02-02
moduleSideEffects at any time during the build (#4379)ModuleInfo.hasModuleSideEffects in favour of ModuleInfo.moduleSideEffects (#4379)2022-01-25
2022-01-22
this.load (#4358)2022-01-21
this.load (#4354)perf: true (#4357)2022-01-14
meta from the resolveId hook (#4347)2022-01-04
this.load (#4320)--watch is missing (#4335)2021-12-24
2021-12-11
2021-12-09
2021-11-30
2021-11-22
2021-11-11
this.load context function to load, transform and parse modules without adding them to the graph (#4234)2021-11-01
2021-10-25
2021-10-25
2021-10-25
2021-10-01
resolveId hook (#4230)2021-09-22
generatedCode option to allow Rollup to use es2015 features for smaller output and more efficient helpers ( #4215)preferConst will now show a warning with strictDeprecations: true (#4215)Object.assign in generated code to ensure ES5 compatibility without the need for polyfills (#4215)shimMissingExports for exports that are only used internally (#4215)2021-08-23
ModuleInfo.importedIds will return null if resolvedIds[source] is undefined (@FoxDaxian and @lukastaegert)2021-08-10
2021-08-08
2021-08-05
maxParallelFileReads option to also throttle plugin load hooks (#4200)2021-07-29
2021-07-28
["default"] as computed property when used as named export (#4182)2021-07-25
2021-07-21
2021-07-15
2021-07-11
treeshake is false (#4175)2021-07-09
maxParallelFileReads option to limit read operations with a default of 20 (#4170)2021-07-07
var before declaration and TDZ access scenarios correctly without the need for treeshake.correctVarValueBeforeDeclaration (#4148)2021-07-02
2021-07-01
2021-07-01
2021-06-30
2021-06-25
2021-06-21
2021-06-17
2021-06-16
--configPlugin CLI option to apply plugins to the config file for e.g. TypeScript configs (#3835)treeshake.correctVarValueBeforeDeclaration option to deoptimize var declarations (#4139)2021-06-11
2021-06-08
defineConfig (#4134)rollup.defineConfig at runtime (@mshrtsr)2021-06-06
2021-06-03
propertyReadSideEffects are false (#4119)2021-05-30
colorette instead of turbocolor (@ryuever)2021-05-29
__proto__ in an object literal (#4112)2021-05-28
2021-05-27
.filter and .map (#4103)2021-05-26
2021-05-25
2021-05-23
2021-05-15
entryFileNames when preserving modules (#4077)deoptimizePath when the first element is empty string (@si3nloong)2021-05-04
2021-04-29
UNUSED_EXTERNAL_IMPORT warning information about the origin of the problem (@cawa-93)2021-04-13
2021-04-10
2021-04-09
2021-03-29
makeAbsoluteExternalsRelative to opt out of renormalizing absolute external ids to relative ids ( #4021)resolveId plugin hook to allow forcing or preventing renormalization of absolute external ids (#4021)__proto__ properties correctly (#4019)__proto__ property is present (@marijnh)2021-03-28
2021-03-27
sourcemap reference in docs (@tjenkinson)2021-03-24
2021-03-22
#__PURE__ comments in front of optional chaining expressions (#4007)2021-03-22
2021-03-20
perf option (#4004)2021-03-19
this.resolve in their resolveId hook (#4000)2021-03-18
2021-03-16
2021-03-16
2021-03-16
2021-03-12
2021-03-11
2021-03-09
treeshake.propertyReadSideEffects to keep all property accesses (#3985)2021-02-26
: in generated file names to prevent invalid files on Windows (#3972): in file names (@lukastaegert)2021-02-23
2021-02-12
validate output option and --validate CLI option ( @kzc)2021-02-05
2021-02-02
2021-02-01
2021-01-31
2021-01-28
2021-01-22
2021-01-20
2021-01-19
2021-01-16
2021-01-06
2021-01-05
2020-12-14
2020-12-14
closeBundle hook that is triggered by bundle.close() in the JS API (#3883)2020-12-06
2020-12-03
2020-11-29
2020-11-18
.js extension when importing AMD files from a UMD bundle (#3872)2020-11-14
2020-11-02
syntheticNamedExports to this.getModuleInfo to align with documentation (#3847)2020-11-01
2020-10-21
loc is supplied (#3824)2020-10-16
preserveEntrySignatures with a value "exports-only" to allow extension only if an entry does not have exports (#3823)2020-10-15
output.moduleToStringTag option, also add the tag to entries with exports and simulated external namespaces (#3822)__esModule interop marker to IIFE global variables unless output.esModule is turned off (#3822)2020-10-13
moduleParsed hook that is called for each module once code and AST are available (#3813)this.getModuleInfo (#3813)2020-10-08
this.resolve (#3807)null when using this.getModuleInfo for an unknown id (#3807)code optional when transforming modules (#3807)2020-09-24
2020-09-21
2020-09-21
2020-09-17
2020-09-16
2020-09-08
2020-09-04
2020-09-01
2020-08-29
external option in all cases (#3753)2020-08-28
options parameter of this.parse as optional for TypeScript plugins (#3750)options of PluginContext#parse optional (@intrnl)2020-08-27
2020-08-22
2020-08-19
default export mode (#3738)2020-08-16
2020-08-16
2020-08-16
2020-08-15
importedBindings to the bundle information to list bindings per dependency (#3722)else branch from an if statement might catch the else branch from another one (#3725)2020-08-14
--failAfterWarnings CLI flag that will complete builds with warnings but return an error at the end (#3712)--failAfterWarnings flag (@tjenkinson)2020-08-13
require statements to the top in CommonJS output for easier back-transpilation to ES modules by other tools (#3710)super in static class fields (#3720)2020-08-07
2020-07-23
2020-07-21
2020-07-18
2020-07-18
2020-07-07
2020-07-06
referencedFiles property to the chunk info in generateBundle to list referenced assets (#3661)2020-07-05
2020-07-02
2020-06-26
rollup-plugin- prefix off the plugin name when looking for the plugin export in a CLI plugin without a default export (#3647)2020-06-22
inlineDynamicImports, manualChunks and preserveModules can now be used as output options (#3645)this.getFileName will now always return the correct file name for chunks when multiple outputs are created (#3645)2020-06-19
2020-06-17
2020-06-13
2020-06-12
manualChunks for code splitting ( @zlamma)2020-06-08
watch: false (#3620)sourcemapPathTransform (#3617)2020-06-07
this.meta.watchMode available for plugins to detect watch mode (#3616)2020-06-04
module is used as a top-level variable (#3614)2020-06-03
2020-06-02
2020-05-31
--waitForBundleInput to let the build wait until all entry point files are available before starting ( #3577)2020-05-28
Array.from (#3604)Array.from as side-effectful, use two-argument Array.from when mapping Sets (@lukastaegert)2020-05-28
2020-05-27
buildStart and renderStart (#3597)null for empty setters in SystemJS via option (#3592)/*#__PURE__*/ annotation inside a class field (#3599)--watch and --treeshake together with sub-options such as --watch.clearScreen on the command line ( #3597)2020-05-24
2020-05-23
output.paths (@jacksteamdev)2020-05-22
2020-05-22
2020-05-19
2020-05-19
2020-05-18
2020-05-15
2020-05-15
2020-05-13
2020-05-11
2020-05-10
this.getModuleInfo (#3542)getModuleInfo and getModuleIds to manualChunks functions (#3542)0 for snappy rebuilds (#3502)this.getModuleIds to the plugin context as future replacement for this.moduleIds (#3542)2020-05-07
2020-05-07
exports.default (#3529)2020-05-06
2020-04-30
2020-04-29
2020-04-29
2020-04-27
__proto__ when running Rollup (#3518)2020-04-22
2020-04-21
output.paths is used (#3508)2020-04-21
preserveEntrySignatures option to control how exports of entry points are handled (#3498)preserveSignature flag to this.emitFile to control exports of emitted chunks (#3498)output.minifyInternalExports option to control if internal exports are minified (#3498)2020-04-12
2020-04-10
This version is identical to 2.4.0
2020-04-09
this with undefined in class field definitions (#3488)2020-04-09
2020-04-07
2020-04-04
2020-03-31
2020-03-30
2020-03-29
.mjs extension in Node 13+ or .cjs extension in any Node version and load them appropriately (#3445)rollup/dist/loadConfigFile (#3445)2020-03-24
renderDynamicImport hook to rewrite dynamic import expressions (#3449)this.getModuleInfo (#3449).js extensions from AMD imports when the import is a user-supplied replacement for a non-resolvable dynamic import target (#3453)2020-03-18
importer parameter to this.emitFile ( @lukastaegert)2020-03-13
dir option (#3440)2020-03-12
2020-03-12
index imports for ES format using nested export star statements (@kamranayub)2020-03-10
augmentChunkHash are used ( @jakearchibald)2020-03-07
2020-03-07
2020-03-06
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:
rollup/dist/es/rollup.js instead of rollup/dist/rollup.es.jsrollup/dist/es/rollup.browser.js instead of rollup/dist/rollup.browser.es.jsIn 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:
generateBundle insteadwriteBundle insteadrenderChunk insteadrenderChunk insteadYou 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.emitFilethis.emitChunk: use this.emitFilethis.getAssetFileName: use this.getFileNamethis.getChunkFileName: use this.getFileNamethis.isExternal: use this.resolvethis.resolveId: use this.resolveDirectly 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)
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)@types dependencies (@lukastaegert)For previous changelogs, see