.TH "ROLLUP" "1" "December 2023" "3.29.4" .SH "NAME" \fBrollup\fR \- module bundler for JavaScript .SH SYNOPSIS .P rollup [options] .SH OPTIONS .P \-c, \-\-config Use this config file (if argument is used but value .br is unspecified, defaults to rollup\.config\.js) .br \-d, \-\-dir Directory for chunks (if absent, prints to stdout) .br \-e, \-\-external Comma\-separate list of module IDs to exclude .br \-f, \-\-format Type of output (amd, cjs, es, iife, umd, system) .br \-g, \-\-globals Comma\-separate list of \fBmoduleID:Global\fP pairs .br \-h, \-\-help Show this help message .br \-i, \-\-input Input (alternative to ) .br \-m, \-\-sourcemap Generate sourcemap (\fB\-m inline\fP for inline map) .br \-n, \-\-name Name for UMD export .br \-o, \-\-file Single output file (if absent, prints to stdout) .br \-p, \-\-plugin Use the plugin specified (may be repeated) .br \-v, \-\-version Show version number .br \-w, \-\-watch Watch files in bundle and rebuild on changes .br \-\-amd\.autoId Generate the AMD ID based off the chunk name .br \-\-amd\.basePath Path to prepend to auto generated AMD ID .br \-\-amd\.define Function to use in place of \fBdefine\fP .br \-\-amd\.forceJsExtensionForImports Use \fB\|\.js\fP extension in AMD imports .br \-\-amd\.id ID for AMD module (default is anonymous) .br \-\-assetFileNames Name pattern for emitted assets .br \-\-banner Code to insert at top of bundle (outside wrapper) .br \-\-chunkFileNames Name pattern for emitted secondary chunks .br \-\-compact Minify wrapper code .br \-\-context Specify top\-level \fBthis\fP value .br \-\-no\-dynamicImportInCjs Write external dynamic CommonJS imports as require .br \-\-entryFileNames Name pattern for emitted entry chunks .br \-\-environment Settings passed to config file (see example) .br \-\-no\-esModule Do not add __esModule property .br \-\-exports Specify export mode (auto, default, named, none) .br \-\-extend Extend global variable defined by \-\-name .br \-\-no\-externalImportAssertions Omit import assertions in "es" output .br \-\-no\-externalLiveBindings Do not generate code to support live bindings .br \-\-failAfterWarnings Exit with an error if the build produced warnings .br \-\-filterLogs Filter log messages .br \-\-footer Code to insert at end of bundle (outside wrapper) .br \-\-no\-freeze Do not freeze namespace objects .br \-\-generatedCode Which code features to use (es5/es2015) .br \-\-generatedCode\.arrowFunctions Use arrow functions in generated code .br \-\-generatedCode\.constBindings Use "const" in generated code .br \-\-generatedCode\.objectShorthand Use shorthand properties in generated code .br \-\-no\-generatedCode\.reservedNamesAsProps Always quote reserved names as props .br \-\-generatedCode\.symbols Use symbols in generated code .br \-\-no\-hoistTransitiveImports Do not hoist transitive imports into entry chunks .br \-\-no\-indent Don't indent result .br \-\-inlineDynamicImports Create single bundle when using dynamic imports .br \-\-no\-interop Do not include interop block .br \-\-intro Code to insert at top of bundle (inside wrapper) .br \-\-logLevel Which kind of logs to display .br \-\-no\-makeAbsoluteExternalsRelative Prevent normalization of external imports .br \-\-maxParallelFileOps How many files to read in parallel .br \-\-minifyInternalExports Force or disable minification of internal exports .br \-\-noConflict Generate a noConflict method for UMD globals .br \-\-outro Code to insert at end of bundle (inside wrapper) .br \-\-perf Display performance timings .br \-\-no\-preserveEntrySignatures Avoid facade chunks for entry points .br \-\-preserveModules Preserve module structure .br \-\-preserveModulesRoot Put preserved modules under this path at root level .br \-\-preserveSymlinks Do not follow symlinks when resolving files .br \-\-no\-sanitizeFileName Do not replace invalid characters in file names .br \-\-shimMissingExports Create shim variables for missing exports .br \-\-silent Don't print warnings .br \-\-sourcemapBaseUrl Emit absolute sourcemap URLs with given base .br \-\-sourcemapExcludeSources Do not include source code in source maps .br \-\-sourcemapFile Specify bundle position for source maps .br \-\-sourcemapFileNames Name pattern for emitted sourcemaps .br \-\-stdin=ext Specify file extension used for stdin input .br \-\-no\-stdin Do not read "\-" from stdin .br \-\-no\-strict Don't emit \fB"use strict";\fP in the generated modules .br \-\-strictDeprecations Throw errors for deprecated features .br \-\-no\-systemNullSetters Do not replace empty SystemJS setters with \fBnull\fP .br \-\-no\-treeshake Disable tree\-shaking optimisations .br \-\-no\-treeshake\.annotations Ignore pure call annotations .br \-\-treeshake\.correctVarValueBeforeDeclaration Deoptimize variables until declared .br \-\-treeshake\.manualPureFunctions Manually declare functions as pure .br \-\-no\-treeshake\.moduleSideEffects Assume modules have no side effects .br \-\-no\-treeshake\.propertyReadSideEffects Ignore property access side effects .br \-\-no\-treeshake\.tryCatchDeoptimization Do not turn off try\-catch\-tree\-shaking .br \-\-no\-treeshake\.unknownGlobalSideEffects Assume unknown globals do not throw .br \-\-validate Validate output .br \-\-waitForBundleInput Wait for bundle input files .br \-\-watch\.buildDelay Throttle watch rebuilds .br \-\-no\-watch\.clearScreen Do not clear the screen when rebuilding .br \-\-watch\.exclude Exclude files from being watched .br \-\-watch\.include Limit watching to specified files .br \-\-watch\.onBundleEnd Shell command to run on \fB"BUNDLE_END"\fP event .br \-\-watch\.onBundleStart Shell command to run on \fB"BUNDLE_START"\fP event .br \-\-watch\.onEnd Shell command to run on \fB"END"\fP event .br \-\-watch\.onError Shell command to run on \fB"ERROR"\fP event .br \-\-watch\.onStart Shell command to run on \fB"START"\fP event .br \-\-watch\.skipWrite Do not write files to disk when watching .SH EXAMPLES .RS 1 .IP \(bu 2 use settings in config file .RE .RS 2 .nf rollup \-c .fi .RE .RS 1 .IP \(bu 2 in config file, process\.env\.INCLUDE_DEPS === 'true' .br and process\.env\.BUILD === 'production' .RE .RS 2 .nf rollup \-c \-\-environment INCLUDE_DEPS,BUILD:production .fi .RE .RS 1 .IP \(bu 2 create CommonJS bundle\.js from src/main\.js .RE .RS 2 .nf rollup \-\-format=cjs \-\-file=bundle\.js \-\- src/main\.js .fi .RE .RS 1 .IP \(bu 2 create self\-executing IIFE using \fBwindow\.jQuery\fP .br and \fBwindow\._\fP as external globals .RE .RS 2 .nf rollup \-f iife \-\-globals jquery:jQuery,lodash:_ \\ \-i src/app\.js \-o build/app\.js \-m build/app\.js\.map .fi .RE .SH NOTES .RS 1 .IP \(bu 2 When piping to stdout, only inline sourcemaps are permitted .RE .P For more information visit https://rollupjs.org