rollup breaking changes
Updated December 4, 2026
On this page
Latest version 4.70.0, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.0 to 4.68.2: 298 breaking changes in 29 versions.
- From 0.4.0 to 4.68.2: 688 breaking changes in 67 versions.
rollup 4.68.2 breaking changes
- Behavior changed
Generated file names that would write outside the target directory via Windows drive-relative paths now cause the build to fail. Check output file names that use such paths. github.com
rollup 4.68.1 breaking changes
- Behavior changed
Rollup now warns about deleting or reassigning namespace members, and those operations become catchable runtime errors. Check code that relied on the previous behavior. github.com
rollup 4.68.0 breaking changes
- Behavior changed
Dynamic chunks from index.js files get their directory name instead of "index" in the output filename. Code or tooling that depends on the old chunk filenames must be updated. github.com
rollup 4.67.5 breaking changes
- Behavior changed
Output chunk hashes, and therefore output filenames, now change when debug IDs are turned on or off, so any code or caches that reference hashed filenames may need updating. github.com - Behavior changed
output.sourcemapFile
Previously output.sourcemapFile was ignored when output.file was not used; it is now applied, so builds that set it may produce different sourcemap output. github.com
rollup 4.66.0 breaking changes
- Signature changed
ExistingDecodedSourceMap.sources
Was sources: string[]; now sources: (string | null)[]. npmjs.com - Signature changed
ExistingDecodedSourceMap.sourcesContent
Was sourcesContent?: string[] | undefined; now sourcesContent?: (string | null)[] | undefined. npmjs.com - Signature changed
ExistingRawSourceMap.sources
Was sources: string[]; now sources: (string | null)[]. npmjs.com - Signature changed
ExistingRawSourceMap.sourcesContent
Was sourcesContent?: string[] | undefined; now sourcesContent?: (string | null)[] | undefined. npmjs.com - Signature changed
SourceMapInput
Was type SourceMapInput = ExistingRawSourceMap | string | null | {mappings: ''}; now type SourceMapInput = ExistingRawSourceMap | IndexSourceMap | string | null | {mappings: ''}. npmjs.com
rollup 4.62.3 breaking changes
- Signature changed
BufferEncoding
Was type BufferEncoding = | 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; now type BufferEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'base64' | 'base64url' | 'latin1' | 'binary' |... npmjs.com - Signature changed
NormalizedJsxOptions
Was type NormalizedJsxOptions = | NormalizedJsxPreserveOptions | NormalizedJsxClassicOptions | NormalizedJsxAutomaticOptions; now type NormalizedJsxOptions = NormalizedJsxPreserveOptions | NormalizedJsxClassicOptions |... npmjs.com - Signature changed
OmittedEstreeKeys
Was type OmittedEstreeKeys = | 'loc' | 'range' | 'leadingComments' | 'trailingComments' | 'innerComments' | 'comments'; now type OmittedEstreeKeys = 'loc' | 'range' | 'leadingComments' | 'trailingComments' | 'innerComments' | 'comments'. npmjs.com - Signature changed
SourceMap.file
Was file: string; now file?: string | undefined. npmjs.com - Signature changed
SourceMap.sourcesContent
Was sourcesContent?: string[] | undefined; now sourcesContent?: (string | null)[] | undefined. npmjs.com - Signature changed
SourceMapSegment
Was type SourceMapSegment = | [number] | [number, number, number, number] | [number, number, number, number, number]; now type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]. npmjs.com
Older versions
62 older versions, each with its first changes. Sign up to see every change
Show 62 older versions
rollup 4.62.0 breaking changes
- Behavior changed
Static dependencies imported by manual chunks are extracted into separate chunks, which changes the generated output file layout. Check any code that depends on the exact chunk file names or structure. github.com
rollup 4.59.0 breaking changes
- Behavior changed
Builds whose generated bundle contains paths outside the output directory now fail with an error. Check that your output file names and paths stay inside the output directory. github.com
rollup 4.57.0 breaking changes
- Signature changed
FunctionPluginHooks.renderDynamicImport
Was renderDynamicImport: (this: PluginContext, options: {customResolution: string | null; format: InternalModuleFormat; moduleId: string; targetModuleId: string | null; chunk: PreRenderedChunkWithFileName; targetChunk... npmjs.com - Signature changed
LoadHook
Was type LoadHook = (this: PluginContext, id: string) => LoadResult; now type LoadHook = (this: PluginContext, id: string, options?: | {ssr?: boolean | undefined; attributes?: Record<string, string>;} | undefined) => LoadResult. npmjs.com
And 8 more in this version.
rollup 4.47.0 breaking changes
- Signature changed
AmdOptions
Was type AmdOptions = (| {autoId?: false; id: string;} | {autoId: true; basePath?: string; id?: undefined;} | {autoId?: false; id?: undefined;}) & {define?: string; forceJsExtensionForImports?: boolean;}; now type AmdOptions = (| {autoId?... npmjs.com - Signature changed
ChokidarOptions.alwaysStat
Was alwaysStat?: boolean; now alwaysStat?: boolean | undefined. npmjs.com
And 161 more in this version.
rollup 4.45.0 breaking changes
- Behavior changed
In environments that support both CJS and ESM, Rollup now loads its ESM build instead of the CJS build. Code that depends on the CJS build may behave differently. github.com
rollup 4.40.2 breaking changes
- Behavior changed
Watch mode now throws an error when an output file is watched. Configs that watch an output subpath as input must be changed. github.com
rollup 4.40.0 breaking changes
- Behavior changed
transform
When several transform hook filter options are given, all of them must be satisfied together. Check transform filters that combine several options. github.com
rollup 4.39.0 breaking changes
- Signature changed
HookFilterExtension
Was type HookFilterExtension<K extends keyof FunctionPluginHooks> = K extends 'transform' ? {filter?: HookFilter} : K extends 'load' ? {filter?: Pick<HookFilter, 'id'>} : K extends 'resolveId' ? {filter?: {id: StringFilter<RegExp>}} : {}... npmjs.com
rollup 4.38.0 breaking changes
- Signature changed
PluginHooks
Was type PluginHooks = {[K in keyof FunctionPluginHooks]: ObjectHook<K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K], K extends ParallelPluginHooks ? {sequential?: boolean} : {}>;}; now type... npmjs.com
rollup 4.36.0 breaking changes
- Signature changed
FunctionPluginHooks.renderDynamicImport
Was renderDynamicImport: (this: PluginContext, options: {customResolution: string | null; format: InternalModuleFormat; moduleId: string; targetModuleId: string | null;}) => {left: string; right: string} | NullValue; now... npmjs.com - Signature changed
PluginHooks.renderDynamicImport
Was renderDynamicImport: (this: PluginContext, options: {customResolution: string | null; format: InternalModuleFormat; moduleId: string; targetModuleId: string | null;}) => {left: string; right: string} | NullValue; now... npmjs.com
rollup 4.35.0 breaking changes
- Signature changed
FunctionPluginHooks.closeBundle
Was closeBundle: (this: PluginContext) => void; now closeBundle: (this: PluginContext, error?: Error) => void. npmjs.com - Signature changed
Plugin.closeBundle
Was closeBundle: (this: PluginContext) => void; now closeBundle: (this: PluginContext, error?: Error) => void. npmjs.com
And 1 more in this version.
rollup 4.34.9 breaking changes
- Signature changed
CustomPluginOptions
Was type CustomPluginOptions = Record<string, any>; now interface CustomPluginOptions. npmjs.com
rollup 4.27.0 breaking changes
- Behavior changed
Generated chunk and asset hashes are now capped at 21 characters, so output file names that include hashes will change. Update any code or config that depends on the old hash names. github.com
rollup 4.24.4 breaking changes
- Signature changed
OutputPlugin
Was interface OutputPlugin extends Partial<{[K in OutputPluginHooks]: PluginHooks[K]}>, Partial<{[K in AddonHooks]: ObjectHook<AddonHook>}>; now interface OutputPlugin extends Partial<{[K in OutputPluginHooks]: PluginHooks[K]}>... npmjs.com
rollup 4.24.0 breaking changes
- Signature changed
ParseAst
Was type ParseAst = (input: string, options?: {allowReturnOutsideFunction?: boolean}) => ProgramNode; now type ParseAst = (input: string, options?: {allowReturnOutsideFunction?: boolean; jsx?: boolean}) => ProgramNode. npmjs.com - Signature changed
ParseAstAsync
Was type ParseAstAsync = (input: string, options?: {allowReturnOutsideFunction?: boolean; signal?: AbortSignal}) => Promise<ProgramNode>; now type ParseAstAsync = (input: string, options?: {allowReturnOutsideFunction?: boolean; jsx?... npmjs.com
rollup 4.21.1 breaking changes
- Removed
CustomPluginOptions.__index
CustomPluginOptions.__index was removed in rollup 4.21.1 npmjs.com - Removed
OutputBundle.__index
OutputBundle.__index was removed in rollup 4.21.1 npmjs.com
And 17 more in this version.
rollup 4.19.0 breaking changes
- Signature changed
AstNode
Was type AstNode = RollupAstNode<EstreeNode>; now type AstNode = RollupAstNode<estree.Node>. npmjs.com - Signature changed
ProgramNode
Was type ProgramNode = RollupAstNode<Program>; now type ProgramNode = RollupAstNode<estree.Program>. npmjs.com
rollup 4.16.4 breaking changes
- Behavior changed
The parameter tracking logic introduced in 4.16.0 is reverted to fix remaining issues. Code relying on the 4.16.0 behavior may see tree-shaking output change. github.com
rollup 4.12.0 breaking changes
- Removed
AstNode.type
AstNode.type was removed in rollup 4.12.0 npmjs.com - Signature changed
AstNode
Was interface AstNode; now type AstNode = RollupAstNode<EstreeNode>. npmjs.com
And 1 more in this version.
rollup 4.11.0 breaking changes
- Behavior changed
const
Rollup now throws when code reassigns a const variable. Code that reassigns a const must be changed to use let or a new binding. github.com
rollup 4.9.3 breaking changes
- Signature changed
ModuleInfo.ast
Was ast: AstNode | null; now ast: ProgramNode | null. npmjs.com - Signature changed
ModuleJSON.ast
Was ast: AstNode; now ast: ProgramNode. npmjs.com
And 5 more in this version.
rollup 4.1.0 breaking changes
- Signature changed
ExistingDecodedSourceMap.sourcesContent
Was sourcesContent?: (string | null)[]; now sourcesContent?: string[]. npmjs.com - Signature changed
ExistingRawSourceMap.sourcesContent
Was sourcesContent?: (string | null)[]; now sourcesContent?: string[]. npmjs.com
And 1 more in this version.
rollup 4.0.0 breaking changes
- Removed
The minimal required Node version is now 18.0.0. github.com - Removed
acorn
The acorn option has been removed. Remove it from your configuration. github.com
And 54 more in this version.
rollup 3.0.0 breaking changes
- Removed
[ext]
The [ext], [extName] and [assetExtName] placeholders are no longer supported when preserving modules. github.com - Removed
EmitAsset
EmitAsset was removed in rollup 3.0.0 npmjs.com
And 106 more in this version.
rollup 2.0.0 breaking changes
- Removed
InputOptions.chunkGroupingSize
The option has been removed; remove it from configuration. npmjs.com - Removed
InputOptions.experimentalOptimizeChunks
The option has been removed and no longer has any effect; remove it from configuration. npmjs.com
And 43 more in this version.
rollup 1.0.0 breaking changes
- Removed
experimentalDynamicImport
Dynamic import is now always active, so the experimentalDynamicImport option is gone. github.com - Removed
InputOptions.entry
The entry option is now input. npmjs.com
And 61 more in this version.
rollup 0.68.0 breaking changes
- Removed
InputOptions.experimentalDynamicImport
InputOptions.experimentalDynamicImport was removed in rollup 0.68.0 npmjs.com - Removed
InputOptions.optimizeChunks
InputOptions.optimizeChunks was removed in rollup 0.68.0 npmjs.com
rollup 0.67.0 breaking changes
- Behavior changed
Rollup no longer passes external dynamic imports through plugin resolution. Plugins that relied on resolving them must handle them differently. github.com - Signature changed
ExistingRawSourceMap.file
Was file: string; now file?: string. npmjs.com
And 1 more in this version.
rollup 0.65.0 breaking changes
- Removed
Asset.dependencies
Asset.dependencies was removed in rollup 0.65.0 npmjs.com - Removed
Asset.transform
Asset.transform was removed in rollup 0.65.0 npmjs.com
And 16 more in this version.
rollup 0.64.0 breaking changes
- Behavior changed
Rollup now raises an error when external import ids collide, which can make builds that previously succeeded fail. Rename or disambiguate colliding external imports. github.com - Behavior changed
Manual chunks that end up empty are no longer dropped, so build output may contain extra chunk files. Check any setup that depends on empty chunks being removed. github.com
And 1 more in this version.
rollup 0.63.0 breaking changes
- Signature changed
InputOptions.inlineDynamicImports
Was inlineDynamicImports?: boolean; now inlineDynamicImports: boolean. npmjs.com - Signature changed
ModuleFormat
Was type ModuleFormat = 'amd' | 'cjs' | 'system' | 'es' | 'es6' | 'iife' | 'umd'; now type ModuleFormat = 'amd' | 'cjs' | 'system' | 'es' | 'esm' | 'es6' | 'iife' | 'umd'. npmjs.com
rollup 0.62.0 breaking changes
- Removed
MissingExportHook
MissingExportHook was removed in rollup 0.62.0 npmjs.com - Removed
Plugin.missingExport
Plugin.missingExport was removed in rollup 0.62.0 npmjs.com
And 18 more in this version.
rollup 0.61.0 breaking changes
- Signature changed
SerializedTimings
Was type SerializedTimings = {[label: string]: number}; now interface SerializedTimings. npmjs.com
rollup 0.60.0 breaking changes
- Removed
Bundle
Bundle was removed in rollup 0.60.0 npmjs.com - Removed
BundleSet
BundleSet was removed in rollup 0.60.0 npmjs.com
And 28 more in this version.
rollup 0.59.0 breaking changes
- Behavior changed
When code-splitting, empty chunks are no longer emitted, and when preserving modules, empty files are no longer emitted. Code that expects these output files to exist must be updated. github.com
rollup 0.58.0 breaking changes
- Removed
CachedChunk
CachedChunk was removed in rollup 0.58.0 npmjs.com - Removed
CachedChunkSet
CachedChunkSet was removed in rollup 0.58.0 npmjs.com
And 15 more in this version.
rollup 0.57.0 breaking changes
- Removed
InputOptions.cache.modules
InputOptions.cache.modules was removed in rollup 0.57.0 npmjs.com - Removed
RollupWatchOptions.cache.modules
RollupWatchOptions.cache.modules was removed in rollup 0.57.0 npmjs.com
And 6 more in this version.
rollup 0.56.0 breaking changes
- Signature changed
TransformHook
Was type TransformHook = (code: string, id: String) => Promise<SourceDescription | string | void>; now type TransformHook = (this: TransformContext, code: string, id: String) => Promise<SourceDescription | string | void>. npmjs.com
rollup 0.55.0 breaking changes
- Removed
InputAndOutputOptions
InputAndOutputOptions was removed in rollup 0.55.0 npmjs.com - Removed
RollupWatchOptions.amd
RollupWatchOptions.amd was removed in rollup 0.55.0 npmjs.com
And 31 more in this version.
rollup 0.54.0 breaking changes
- Behavior changed
Locally resolvable dynamic imports are now inlined into the bundle instead of being kept as separate chunks or import calls. Check bundles that relied on the old dynamic import output. github.com
rollup 0.49.0 breaking changes
- Behavior changed
The release replaces the tree-shaking algorithm, so the bundled output may differ from earlier versions. Check bundle contents and side-effect behavior after upgrading. github.com
rollup 0.48.0 breaking changes
- Configuration changed
The options object and CLI arguments changed in numerous ways; check the linked gist for a rundown and update your configuration and command-line usage accordingly. github.com
rollup 0.46.0 breaking changes
- Behavior changed
onwarn
The onwarn function receives the default handler as its second argument, which can be used for filtering; existing code is not broken by this addition. github.com - Behavior changed
options.format
Setting options.format to 'es6' now throws an error, so change it to 'es'. github.com
And 1 more in this version.
rollup 0.45.0 breaking changes
- Signature changed
bundle.generate
bundle.generate(...) now returns a Promise instead of a synchronous result, so callers must await it or use .then() to get the output. github.com
rollup 0.44.0 breaking changes
- Behavior changed
options.extend
Rollup no longer extends existing global variables by default. Set options.extend to true to keep the previous behavior. github.com
rollup 0.40.0 breaking changes
- Behavior changed
Rollup now formats and logs errors differently. Code that parses or matches the previous error output may need updating. github.com
rollup 0.39.0 breaking changes
- Behavior changed
Rollup warnings are passed as objects rather than strings, so code that treats a warning as a string must read its message property instead. github.com
rollup 0.38.0 breaking changes
- Behavior changed
export { foo as default }
Re-exporting a variable as the default export now creates a live binding, so later changes to the variable are visible to importers. Check code that relied on the previous snapshot behavior. github.com
rollup 0.37.0 breaking changes
- Behavior changed
Namespace objects created by reification no longer contain the default export. Code relying on the default export appearing in a namespace object must import it directly instead. github.com
rollup 0.36.0 breaking changes
- Behavior changed
Using export { foo as default } no longer creates a live binding, so importers no longer see later changes to foo. Code that relies on live updates must be changed. github.com
rollup 0.34.0 breaking changes
- Behavior changed
External modules imported by relative path are now matched by their resolved ID, which can change which imports count as external and how options.globals applies to them. Check your external and globals configuration. github.com
rollup 0.31.0 breaking changes
- Behavior changed
Top-level `this` in bundled code is replaced with `undefined`, so code that relied on `this` referring to something else at the top level will behave differently. github.com
rollup 0.24.0 breaking changes
- Behavior changed
options.external
Rollup now uses the options.external IDs exactly as written instead of trying to resolve them first. Check that each external entry matches the import ID your code uses. github.com
rollup 0.20.0 breaking changes
- Removed
options.external
The external option is no longer supported; handle externals with a plugin instead. github.com - Removed
options.load
The load option is no longer supported; handle loading with a plugin instead. github.com
And 4 more in this version.
rollup 0.19.0 breaking changes
- Behavior changed
options.transform
The transform option is no longer passed through to custom loaders. Loaders should only provide source code, since transformation now always takes place. github.com
rollup 0.13.0 breaking changes
- Behavior changed
Rollup now strips sourcemap comments that already exist in the input code. Check any tooling that relied on those comments being kept. github.com
rollup 0.10.0 breaking changes
- Behavior changed
Modules are now sorted as whole units rather than statement by statement, which can change the order of code in the bundle output. github.com - Behavior changed
IIFEs no longer count when deciding whether a dependency is strong or weak, which can change the order of modules in the bundle. github.com
rollup 0.9.0 breaking changes
- Renamed
resolvePath
The resolvePath option is now called resolveId. The returned id is passed to load, which can be overridden for all modules including the entry module. github.com
rollup 0.8.0 breaking changes
- Behavior changed
A top-level `this` in bundled code now evaluates to `undefined`. Code that relied on the previous value of `this` at the top level must change. github.com - Behavior changed
Top-level variable declarations with multiple declarators are now split up, which changes the generated bundle output. Check bundles that depend on the previous statement layout. github.com
rollup 0.7.0 breaking changes
- Behavior changed
The IIFE bundle's global is attached to this rather than window. Code that reads the global from window must be updated. github.com - Behavior changed
moduleName
Rollup now throws if moduleName is required for UMD exports but not provided. Pass a moduleName in your configuration when building UMD output. github.com
rollup 0.6.0 breaking changes
- Behavior changed
Non-relative imports are now resolved by looking for jsnext:main in package.json files. This can be overridden with a resolveExternal function. github.com - Behavior changed
options.external
External modules must now be listed in options.external before bundling. Code that relied on implicit externals must declare them. github.com
And 2 more in this version.
rollup 0.4.0 breaking changes
- Behavior changed
Statements in the bundled output keep their original order where possible, so the output ordering may differ from earlier versions. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.