2018-10-10
- Properly deconflict function and class declaration ids of reassigned default exports (#2502)
2018-10-09
- Remove cache from memory once no longer needed (#2496)
- Provide better error message when reexporting external namespace reexports (#2499)
2018-10-04
- Fix links in warnings and errors (#2471)
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)
2018-09-21
- Add additional information to parse errors messages in JSON and other non-JS files (#2466)
2018-09-19
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)
2018-09-05
- Prevent watch mode memory leak (#2441)
2018-09-05
- Prevent globbing when using chokidar (#2432)
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 replacetransformChunk
andtransformBundle
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)
2018-08-07
- Do not render initializers of hoisted variables in dead branches (#2384)
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)
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)
2018-07-20
- Use turbocolor instead of chalk (#2339)
2018-07-20
- Handle expressions where "in" and "instanceof" are applied to primitive values (#2344)
2018-07-18
- Fix bind order in for-of loops (#2338)
2018-07-18
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)
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)
2018-06-23
- Improve watcher error handling, only rebuild invalidated outputs (#2296)
- Update dependencies, make watcher more stable (#2297)
2018-06-21
- Do not try to deconflict "undefined" (#2291)
- Properly track values for loop interator declarations and reassigned namespaces, add smoke test (#2292)
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)
2018-06-14
- Fix typing issue (#2269)
2018-06-14
2018-06-14
- Track deep reassignments of global and exported variables and improve performance (#2254)
2018-06-13
- Properly handle initially uninitialized exports and exports of globals in SystemJS output (#2258)
2018-06-13
- Fix types to allow watching an array of outputs (#2262)
2018-06-11
2018-06-07
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)
2018-05-28
- Fix performance regression when many return statements are used (#2218)
2018-05-24
- Fix reassignment tracking for constructor parameters (#2214)
2018-05-21
- Fix reassignment tracking in for-in loops (#2205)
2018-05-16
- Fix infinite recursion when determining literal values of circular structures (#2193)
- Fix invalid code when simplifying expressions without spaces (#2194)
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)
2018-04-23
- Fix rendering of certain statically resolvable if statements (#2146)
2018-04-18
- Fix comment detection (#2129)
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)
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 fasterfor
loops in some places (#2064)
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)
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)
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)
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)
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)
2018-02-16
- Fix regression when rendering switch statements (#1971)
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)
2018-02-10
- Remove OpenCollective dependency (#1915)
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)
2018-02-01
- Remove OpenCollective dependency (#1915)
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)
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)
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)
2018-01-17
- Fix TypeScript errors in emitted type definitions (#1871)
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)
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)
2018-01-02
- Use correct name when re-exporting from external modules (#1794)
- Disable warnings when
resolveId
returns false (#1825)
2017-12-30
- Properly handle output arrays in the JavaScript API (#1827)
2017-12-28
- Properly deprecate more config options (#1812)
- Pass output options to
transformBundle
plugin hook (#1813)
2017-12-22
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)
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)
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)
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)
2017-11-19
- Fix speed problems by simplifying treeshaking reassignment handling (#1740)
- Update dependencies (#1742)
2017-11-17
- Keep "this"-context when calling sequence expressions (#1724)
2017-11-16
- Use sourcemaps to determine error locations (#1728)
2017-11-11
- Fix regressions with uninitialised conditional expressions (#1720)
2017-11-11
- Fix regressions preventing builds (#1725)
2017-11-10
- Fix regression when treeshaking sequence expressions (#1717)
2017-11-09
- Fix treeshaking regression when labels are used inside functions (#1712)
2017-11-08
- Fix an issue with empty return statements (#1704)
2017-11-08
- Massive improvements to the treeshaking algorithm (#1667)
2017-11-08
- Fix treeshaking regression (#1695)
- Treeshaking improvements (#1650)
- Enable installation from Github (#1670)
- Update documentation (#1660)
2017-09-16
2017-09-08
- Respect
watch
options (#1596) - Fix treeshaking regressions (#1604)
- Allow
-o
to work withoutput.format
(#1606)
2017-08-29
- Fix treeshaking regressions (#1591)
2017-08-28
- Fix treeshaking regressions (#1586)
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)
- Paths is an output option (#1569)
- Print deprecation warnings in watch mode, and fix options when watcher restarts (#1568)
- Set
process.env.ROLLUP_WATCH
before loading config file
- Fix broken multi-bundle configs with
rollup.watch
(#1532)
- Delete cached config file before reloading in watch mode
- Deshadow aliased imports (#1550)
- Rebuild with dependency that npm randomly deleted
- Ignore external namespace imports when deshadowing (#1547)
- Watch config file, restart
rollup.watch
on change (#1535) - Correctly render
export { foo } from
declarations ines
output (#1543) - Reinstate missing
rollup.VERSION
- 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)
- Pass options to
bundle.write
correctly inrollup.watch
(#1533) - init for-in loop section head with correct scopes (#1480)
- support
--no-interop
flag (#1524)
options.format
is now required (#1491)- if
options.format
ises6
, it will now throw an error (should bees
) (#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)
- Fix interop when import is a string (#1486)
- Separate
resolvedIds
fromresolvedExternalIds
(#1490) - Add
--extend
flag to CLI (#1482)
- Remove
weak
fromoptionalDependencies
(#1483)
- [BREAKING]
bundle.generate(...)
returns a Promise, so thattransformBundle
plugin hooks can be asynchronous (#1474)
- [BREAKING] Don't extend existing globals, unless
options.extend
is true (#827) - Fix handling of catch clause parameters (#1462)
- Fix memory leak on incremental rebuilds (#883)
- Allow
this.warn
andthis.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)
- 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
- Deprecate
options.moduleId
in favour ofoptions.amd.id
(#1365) - Add
options.amd.define
option to specify name of AMDdefine
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)
- Preserve
originalSourceMap
on incremental rebuilds for loaders with sourcemaps (#1336)
- 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)
- Fix cases of multiple
export * from 'external'
declarations (#1252) - Fix 'TODO' error message (#1257)
- Don't treat
this.foo
as possible namespace (#1258)
- Optimize
namespace['foo']
references (#1240)
- Add
this.warn(...)
andthis.error(...)
methods to plugintransform
hook contexts (#1140) throw
always considered to be a side effect (#1227)
- Add
file
property to sourcemaps for bundles with plugins (#986) - Don't require globals for empty imports (#1217)
- Allow missing space between
export default
and declaration (#1218)
- [BREAKING] Better, more consistent error logging (#1212)
- Don't use colours and emojis for non-TTY stderr (#1201)
- Prevent mutation of cached ASTs (fixes stack overflow with rollup-watch) (#1205)
- Ignore
var
initialisers in dead branches (#1198)
- [BREAKING] Warnings are objects, rather than strings (#1194)
- 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)
- 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)
- 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)
- [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)
- 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)
- Follow symlinks (#447)
- Fix tree-shaking of recursive functions and other cases (#1120, #1142)
- Support module names that require quotes (#582, #584)
- Fix #957
- [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)
- Only depend on program-level call expressions (#977)
- Add
legacy
option for IE8 support (#989)
- 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)
- 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)
export { foo as default }
no longer creates a live binding (#860)
- Warn on missing unused imports in deshadowing phase (#928)
- Always add a newline to the end of bundles (#958)
- Include all parent statements of expression with effects, up to function boundary (#930)
- Include superclasses when including their subclasses (#932)
- Add
interop: false
option to disable unwrapping of external imports (#939)
- Deconflict reified namespaces with other declarations (#910)
- Only remove EmptyStatement nodes directly inside blocks (#913)
- Support Node 0.12 (#909)
- Correctly deshadow re-assigned module functions (#910)
- Refactor
flushTime.js
(#922)
- Fix browser build
- Allow empty for loop heads (#919)
- Render identifiers inside template literals
- Fix broken build caused by out of date locally installed dependencies
- Rewrite deconflicted class identifiers (#915)
- Include
dependencies
inbundle.modules
objects (#903) - Update to Acorn 4 (#914)
- 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)
- Pass
{ format }
through totransformBundle
(#867)
- Allow custom
options.context
to replace top-levelthis
(#851) - Fix
noConflict
when used viarollup --config
(#846) - Place
outro
block after export block (#852)
- Disable indentation by default, for faster bundle generation (#812)
- More helpful error on missing entry file (#802)
- Preserve comments before import declarations (#815)
- Wrap UMD factory function in parens to avoid lazy parsing (#774)
- Fix circular export (#813)
- Module render performance tweak (#823)
- Avoid infinite recursion in
Bundle.sort()
(#800)
- resolveId calls are cached now to improve incremental build
- Fixed error message recursion in plugins
- Support
paths
config (#754) - Allow
export *
from external module, internally
- 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)
- 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)
- Add
ongenerate
andonwrite
plugin hooks (#742)
- Generated correct sourcemaps with reified namespaces (#668)
- Exclude plugin helper modules from sourcemaps (#747)
- Allow
--globals
to work with--external
oroptions.external
in whatever configuration (#743)
- Preserve side-effects to default exports that coincide with used named exports (#733)
- Support
rollup -c node:pkgname
(#736)
- Logging for errors emitted by
rollup-watch
(#712)
- Bundle CLI (#700)
- Ensure absolute paths are normalised (#704)
- Allow
rollup --watch
to work with targets
rollup --watch
(#284)
- Experimental support for incremental rebuilds (#658)
- Ensure names exported from a module are not replaced with reserved words (#696)
- Revert (#692) – resolved IDs must be strings
- Use native promises instead of
es6-promise
(#689) - Support multiple targets in config files (#655)
- Allow
resolveId
plugin functions to return non-strings (#692)
- Distinguish between default and namespace imports of external module (#637)
- Add
__esModule
property to named exports in AMD, CJS and UMD modes (#650)
- Deconflict named imports from external modules in ES bundles (#659)
- Support
options.preferConst
to generateconst
declarations for exports rather thanvar
declarations (#653)
- 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)
- Ensure reference is not incorrectly marked as a reassignment (#648)
- 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)
- Add
treeshake: false
/--no-treeshake
option for debugging (#505) - Update build process to use Bublé (#620)
- 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
- Unixize entry path (#586)
- Make sure shorthand destructuring assignments don't break (#528)
- Allow 'exports' key (#542)
- Ensure
foo. bar
wherefoo
is a namespace import is rewritten correctly (#566) - Fix an edge case for exported globals (e.g.
export { document }
) (#562)
- 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)
- Handle non-objects and
null
in_interopDefault
(#474)
- Skip dead branches of a conditional expression (#465)
- Allow globals to be exported (#472)
- Ensure reassigned exports are exported (#484)
- 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)
- 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)
- 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)
- 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)
- Ensure
dest
orsourceMapFile
is resolved against CWD for purposes of sourcemap generation (#344) - Support
banner
,footer
,intro
andoutro
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)
- Reinstate missing fix from (#392)
- 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)
- Prevent lost
var
keywords (#390)
- 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
- Duplicate warnings are squelched (#362)
- Plugins can manipulate or override the
options
object (#371)
- 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)
- Missing relative imports are an error, not a warning (#321)
- Fixed incorrectly renamed default exports in ES6 bundles (#339)
- Fixed infinite recursion bug (#341)
- Remove
aggressive: true
(was too aggressive) (#309) - Handle top-level block statements (#326)
- Optimise namespaces with default exports (#314)
- 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)
- Ensure re-exports don't create a local binding (#270)
- 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)
- Fix bug where multiple
export *
declarations caused error (#244) - Missing namespace exports are a warning, not an error (#244)
- Plugins can provide
banner
andfooter
options (string, or function that returns a string) (#235) - Warn on encountering
eval
(#186)
- 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
- Support
--config
file to enable plugins with CLI (#226) - Prevent
default
being used as variable name (#215) - Update deps
- Support for plugins (#207)
- BREAKING –
options.transform
,options.load
,options.resolveId
,options.resolveExternal
andoptions.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
- 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)
- Fix
module.basename()
when used with customresolveId
function - Use rollup-babel to build self
- Exposed the version string through the API:
require( 'rollup' ).VERSION
- 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
andoptions.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
andoutro
options – similar tobanner
andfooter
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
- Allow namespaces to be assigned to variables (#168)
- Promote
chalk
andsource-map-support
todependencies
, as they're used by the CLI (#167)
- Make external modules configurable (i.e.
external.config.foo = 'bar'
) without erroring
- Crop indent exclusion ranges to exclude enclosing quotes (#166)
- Include definitions of namespace members that are exported as defaults
- Include
acorn.parse
in bundle, removesander
from dependencies, simplify build
- 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)
- Allow imports from hidden directories (replay of #133)
- Handle parenthesised default exports (#136)
- Allow use of scoped npm packages (#131)
- Allow namespaces to be passed to a function (#149)
- Roll back to 0.15.0 and reapply subsequent fixes pending resolution of (#132) and related issues
- Fix import paths with
.
(#133) - Prevent sourceMappingURL confusion leading to broken sourcemap
- Add code coverage reporting #130)
- Add
modules
property to user-facingbundle
– an array with{id}
objects (#128)
- Prevent adjacent blocks of multiple var declarations causing magic-string failure (#105)
- 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)
- Handle assignment patterns, and destructured/rest parameters, when analysing scopes
- Fix bug preventing project from self-building (make base
Identifier
class markable)
- Internal refactoring (#99)
- Optimisation for statically-analysable namespace imports (#99)
- Windows support (theoretically!) (#117 / #119)
- 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
asexports.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
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
- 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)
- Support
banner
andfooter
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)
- Don't attempt to mark statements belonging to external modules (#68)
- Correctly deshadow variables that conflict with imports (#68)
- 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)
- Side-effect preservation applies to internal default exports (#43)
- Class methods are not incorrectly renamed (#42)
- External modules are assigned names before canonical names are determined (#42)
- Correctly handle computed properties (e.g.
foo[bar]
) when discovering dependencies (#47)
- Support for
export * from '..'
(#46)
- 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)
- 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
- Much faster statement insertion (fixes major 0.9.0 performance regression)
- BREAKING -
resolvePath
is nowresolveId
. The returnedid
(which by default is a filepath) is passed to theload
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)
- Correctly rename functions that have arguments with the same name (#32)
- Ensure unused default exports are given a legal name (#33)
- Support
moduleId
andmoduleName
via CLI (#24)
- 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)
- 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 isundefined
(#28)
- Avoid using
path.parse
- unsupported in node 0.10
- Promise
source-map-support
fromdevDependencies
todependencies
(#23)
- 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 toexternal: ['foo', 'bar', 'baz']
) - Add CLI tests
- Prevent accidental conflicts with the global namespace (#20)
- More precise statement re-ordering to satisfy
export default
constraint (fixes bug introduced in 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
- Fix sourcemap paths on Windows (#6)
- Named functions can be used as default exports from a bundle
- Method calls are assumed to mutate the owner (i.e.
foo.bar()
mutatesfoo
) (#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)
- 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 thanwindow
- Allow names inside bundle to the the names of
Object.prototype
properties (#12) - Keep exports live (#11)
- Add sourceMappingURL comment to code, as appropriate
- Higher resolution sourcemaps
- Fix CJS bundling with default export
- Fix exports and external module imports with some output formats
- Fix endless cycle bug on Windows (#3) - thanks @Bobris
- Permit assignments to properties of imported bindings
- Support for basic transformers
- BREAKING -
rollup.rollup
andbundle.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 appropriatepackage.json
files. This behaviour can be overridden by passing an alternativeresolveExternal
function - Fix sourcemap options
- Include CLI files in npm package (duh)
- Command line interface
- Sourcemap generation
- Correct behaviour with
export { x as y } from 'z'
- More import name deconflicting
- 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
- Saner deconflicting
- Rename namespace imports from external modules correctly
- Basic functionality present, mostly spec-compliant
- Include dist files in npm package (duh)
- First release capable of doing anything useful
- Still lots of basic functionality missing
- Initial experiment