chore(deps): update dependency rollup to v2 #376
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.32.1
->2.0.3
Release Notes
rollup/rollup
v2.0.3
Compare Source
2020-03-10
Bug Fixes
Pull Requests
augmentChunkHash
are used (@jakearchibald)v2.0.2
Compare Source
2020-03-07
Bug Fixes
Pull Requests
v2.0.1
Compare Source
2020-03-07
Bug Fixes
Pull Requests
v2.0.0
Compare Source
2020-03-06
Breaking Changes
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 ofrollup/dist/rollup.es.js
rollup/dist/es/rollup.browser.js
instead ofrollup/dist/rollup.browser.es.js
In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the
rollup/dist/es
subfolder instead ofrollup/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
andchunkGroupingSize
options have been removedacorn plugins can only be used if they accept a passed-in acorn instance instead of importing it themselves. See acornjs/acorn#870 (comment) 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 ofBuffer
. ABuffer
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 matchgenerateBundle
: 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 returndependencies
.The
treeshake.pureExternalModules
option will now show a deprecation warning when used: usetreeshake.moduleSideEffects: 'no-external'
insteadUsing
import.meta.ROLLUP_ASSET_URL_<..>
andimport.meta.ROLLUP_CHUNK_URL_<..>
in code will now show warnings: useimport.meta.ROLLUP_FILE_URL_<..>
insteadThe
resolveAssetUrl
hook will now show a deprecation warning when used: useresolveFileUrl
insteadThe following plugin context functions will show warnings when used:
this.emitAsset
: usethis.emitFile
this.emitChunk
: usethis.emitFile
this.getAssetFileName
: usethis.getFileName
this.getChunkFileName
: usethis.getFileName
this.isExternal
: usethis.resolve
this.resolveId
: usethis.resolve
Directly adding properties to the bundle object in the
generateBundle
is deprecated will show a warning (removing properties is allowed, though): Usethis.emitFile
Accessing
chunk.isAsset
on the bundle is deprecated: Usechunk.type === 'asset'
insteadThe error code for a missing
name
property when targeting UMD has been changed toMISSING_NAME_OPTION_FOR_IIFE_EXPORT
to emphasize this is needed for the IIFE part of UMD (#3393)Features
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 forsystem
(#3381)Bug Fixes
Pull Requests
@types
dependencies (@lukastaegert)Renovate configuration
📅 Schedule: "on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.