rollup

Next-generation ES module bundler

Options

NameDescription
-c, --config <filename>Use this config file (if argument is used but value is unspecified, defaults to rollup.config.js)
-d, --dir <dirname>
-e, --external <ids>
-f, --format <format>
-g, --globals <pairs>
-h, --helpShow help message
-i, --input <filename>
-m, --sourcemapGenerate sourcemap (`-m inline` for inline map)
-n, --name <name>
-o, --file <output>
-p, --plugin <plugin>
-v, --versionShow version number
-w, --watchWatch files in bundle and rebuild on changes
--amd.id <id>
--amd.autoIdGenerate the AMD ID based off the chunk name
--amd.basePath <prefix>
--amd.define <name>
--assetFileNames <pattern>
--banner <text>
--chunkFileNames <pattern>
--compactMinify wrapper code
--context <variable>
--entryFileNames <pattern>
--environment <values>
--no-esModuleDo not add __esmodule property
--exports <mode>
--extendExtend global variable defined by --name
--no-externalLiveBindingsDo not generate code to support live bindings
--failAfterWarningsExit with an error if the build produced warnings
--footer <text>
--no-freezeDo not freeze namespace objects
--no-hoistTransistiveImportsDo not hoist transistive imports into entry chunks
--no-indentDon't indent result
--no-interopDo not include interop block
--inlineDynamicImportsCreate a single bundle when using dynamic imports
--intro <text>
--minifyInternalImportsForce or disable minification of internal imports
--namespaceToStringTagCreate proper '.toString' methods for namespaces
--noConflictGenerate a noConflict method for UMD globals
--outro <text>
--preferConstUse 'const' instead of 'var' for exports
--no-preserveEntrySignaturesAvoid facade chunks for entry points
--preserveModulesPreserve module structure
--preserveModulesRootPut preserved modules under this path at root level
--preserveSymlinksDo not follow symlinks when resolving files
--no-sanitizeFileNameDo not replace invalid characters in file names
--shimMissingExportsCreate shim variables for missing exports
--silentDon't print warnings
--sourcemapExcludeSourcesDo not include source code in source maps
--sourcemapFile <file>Specify bundle position for source maps
--stdin=extSpecify file extension used for stdin input
--no-stdinDo not read "-" from stdin
--no-strictDon't emit '"use strict"; in the generated modules
--strictDeprecationsThrow errors for deprecated features
--systemNullSettersReplace empty SystemJS setters with 'null'
--no-treeshakeDisable tree-shaking optimizations
--no-treeshake.annotationsIgnore pure call annotations
--no-treeshake.moduleSideEffectsAssume modules have no side effects
--no-treeshake.propertyReadSideEffectsIgnore property access side-effects
--no-treeshake.tryCatchDeoptimizationDo not turn off try-catch-tree-shaking
--no-treeshake.unknownGlobalSideEffectsAssume unknown globals do not throw
--waitForBuildInputWait for bundle input files
--watch.buildDelay <number>Throttle watch rebuilds
--no-watch.clearScreenDo not clear the screen when rebuilding
--watch.skipWriteDo not write files to disk when watching
--watch.exclude <files>Exclude files from being watched
--watch.include <files>Limit watching to specified files
--validateValidate output