watch
options (#1596)-o
to work with output.format
(#1606)process.env.ROLLUP_WATCH
before loading config filerollup.watch
(#1532)rollup.watch
on change (#1535)export { foo } from
declarations in es
output (#1543)rollup.VERSION
es
output (#1511)bundle.write
correctly in rollup.watch
(#1533)--no-interop
flag (#1524)options.format
is now required (#1491)options.format
is es6
, it will now throw an error (should be es
) (#1491)rollup.watch
method, replacing rollup-watch (#1491)--watch
mode (#1491)onwarn
function's second argument is the default handler, allowing easier filtering without reimplementing any logic (#1491)exports
for namespaced but non-extended IIFE bundles (#1492)resolvedIds
from resolvedExternalIds
(#1490)--extend
flag to CLI (#1482)weak
from optionalDependencies
(#1483)bundle.generate(...)
returns a Promise, so that transformBundle
plugin hooks can be asynchronous (#1474)options.extend
is true (#827)this.warn
and this.error
to accept a {line, column}
object as an alternative to a character index (#1265)bundle.generate
options (#1463)process.env.ROLLUP_WATCH = 'true'
in watch mode (#1429)pureExternalModules
option (#1352)options.entry
(#1270)options.moduleId
in favour of options.amd.id
(#1365)options.amd.define
option to specify name of AMD define
function (#1365)treeshake: false
(#1375)watch
option (#1424)originalSourceMap
on incremental rebuilds for loaders with sourcemaps (#1336)export * from
declarations with defaults (#1278)treeshake: false
(#1268)source
when collapsing sourcemaps (#1254)export * from 'external'
declarations (#1252)this.foo
as possible namespace (#1258)namespace['foo']
references (#1240)this.warn(...)
and this.error(...)
methods to plugin transform
hook contexts (#1140)throw
always considered to be a side effect (#1227)file
property to sourcemaps for bundles with plugins (#986)export default
and declaration (#1218)var
initialisers in dead branches (#1198)var
declarations in dead branches (#997)export { foo as default }
creates live binding (#1078)new
expressions without side-effects (#179)var
declarations are included in output (#1113)legacy
fixes: do not create getters (#1069), do not include __esModule
(#1068), quote reserved property names (#1057)legacy
option for IE8 support (#989)this
(#1012)options.moduleContext
for per-module context overrides (#1023)auto
exports with ES output (#966)export { foo as default }
no longer creates a live binding (#860)interop: false
option to disable unwrapping of external imports (#939)flushTime.js
(#922)dependencies
in bundle.modules
objects (#903){ format }
through to transformBundle
(#867)options.context
to replace top-level this
(#851)noConflict
when used via rollup --config
(#846)outro
block after export block (#852)Bundle.sort()
(#800)paths
config (#754)export *
from external module, internallyoptions.globals
to work with them (#763)exports.foo;
statements (#755)ongenerate
and onwrite
plugin hooks (#742)--globals
to work with --external
or options.external
in whatever configuration (#743)rollup -c node:pkgname
(#736)rollup-watch
(#712)rollup --watch
to work with targetsrollup --watch
(#284)es6-promise
(#689)resolveId
plugin functions to return non-strings (#692)__esModule
property to named exports in AMD, CJS and UMD modes (#650)options.preferConst
to generate const
declarations for exports rather than var
declarations (#653)eval
security issue (#675)load
hook (#607)var
with no-treeshake option (#639)treeshake: false
/--no-treeshake
option for debugging (#505)noConflict
/--no-conflict
option for UMD builds (#580)foo. bar
where foo
is a namespace import is rewritten correctly (#566)export { document }
) (#562)export {}
, warn instead (#486)null
in _interopDefault
(#474)var exports.foo
(#426)resolveId
/load
hooks (#275)_interopDefault
function to DRY out code with many external dependencies, in CommonJS output (#458)--external
option correctly (#417)options.external
(#410)options.external
(#407)dest
or sourceMapFile
is resolved against CWD for purposes of sourcemap generation (#344)banner
, footer
, intro
and outro
options via CLI (#330)options.global
to be a function rather than an object, and warn on missing names (#293)bundleTransform
plugin hook and option (#387)--environment
option to CLI (#388)var
keywords (#390)moduleName
contains dots (#378)options
object (#371)delete
statements (#352)aggressive: true
(was too aggressive) (#309)aggressive: true
option to eliminate all side-effects outside entry modulerollup --config
(#288)Promise
where used, for Node 0.10 support (#254)export *
declarations caused error (#244)banner
and footer
options (string, or function that returns a string) (#235)eval
(#186)foo$1
already exists--config
file to enable plugins with CLI (#226)default
being used as variable name (#215)options.transform
, options.load
, options.resolveId
, options.resolveExternal
and options.external
are no longer supported, and should be handled by plugins. More infoimport data from 'data.json'
(with the appropriate transformer). For safety, always include the file extension – import ./foo.js
, not ./foo
ReferenceError: Promise is not defined
in node v0.10 (#189)module.basename()
when used with custom resolveId
functionrequire( 'rollup' ).VERSION
transform
option is no longer passed through to custom loaders. Loaders should only concern themselves with providing source code; transformation will always take placeoptions.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)intro
and outro
options – similar to banner
and footer
except inserted inside any format-specific wrapperexport let a = 1, b = 2
) are split up to facilitate tree-shaking (#171)chalk
and source-map-support
to dependencies
, as they're used by the CLI (#167)external.config.foo = 'bar'
) without erroringacorn.parse
in bundle, remove sander
from dependencies, simplify build.
(#133)modules
property to user-facing bundle
– an array with {id}
objects (#128)import mod from 'foo/sub/mod'
(#126)Identifier
class markable)import
statements, and do tree-shaking synchronously once loading is complete. This results in simpler and faster code, and enables future improvements (#97)foo
as exports.foo
when it makes sense to (#92)Scope
model – scopes always attach to blocks, never function expressions/declarationsexport { name } from './other'
does not create a local binding (#16)useStrict
option exposed to CLI as --strict
/--no-strict
(#81)export { x } from 'y'
declarations (#74)banner
and footer
options (#66)exports
to avoid conflicts (#66)--globals
option to CLI (#60)foo[bar]
) when discovering dependencies (#47)export * from '..'
(#46)dist/rollup.browser.js
) (#25)var
declarations for exported bindings are omittedresolvePath
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)sourcemap
option is used by CLI (was omitted previously)moduleId
and moduleName
via CLI (#24)this
at the top level is undefined
(#28)path.parse
- unsupported in node 0.10source-map-support
from devDependencies
to dependencies
(#23)export default
statements (#21)--external foo,bar,baz
option to CLI (equivalent to external: ['foo', 'bar', 'baz']
)export default
constraint (fixes bug introduced in 0.7.3)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)exports
correctly (UMD exports)moduleName
is required but missing (UMD exports)this
rather than window
Object.prototype
properties (#12)rollup.rollup
and bundle.write
both take a single options argumentoptions.external: [...]
jsnext:main
fields in the appropriate package.json
files. This behaviour can be overridden by passing an alternative resolveExternal
functionexport { x as y } from 'z'
rollup.rollup
now rolls up rollup