@nrwl/web:rollup
Packages a library for different web usages (UMD, ESM, CJS).
Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Options
buildableProjectDepsInPackageJsonType
peerDependenciesdependencies, peerDependenciesWhen updateBuildableProjectDepsInPackageJson is true, this adds dependencies to either peerDependencies or dependencies.
compiler
babelbabel, swcWhich compiler to use.
deleteOutputPath
trueDelete the output path before building.
entryFile
The path to the entry file, relative to project.
external
A list of external modules that will not be bundled (react, react-dom, etc.).
extractCss
trueCSS files will be extracted to the output folder.
format
esm,umdesm, umd, cjsOnly build the specified comma-separated formats (esm,umd,cjs)
globals
A mapping of node modules to their UMD global names. Used by the UMD bundle.
outputPath
The output path of the generated files.
project
The path to package.json file.
rollupConfig
Path to a function which takes a rollup config and returns an updated rollup config.
tsConfig
The path to tsconfig file.
updateBuildableProjectDepsInPackageJson
trueUpdate buildable project dependencies in package.json.
umdName
The name of your module in UMD format. Defaulted to your project name.
watch
falseEnable re-building when files change.