Changelog
0.20.2
foo$1
already existsChangelog
0.20.0
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
Changelog
0.19.1
module.basename()
when used with custom resolveId
functionrequire( 'rollup' ).VERSION
Changelog
0.19.0
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)