@nx/rollup:configuration
Add Rollup Configuration to a project.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Add Rollup Configuration to a project.
1nx generate configuration ...
21nx g rollup-project ... #same
2By default, Nx will search for configuration in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/rollup:configuration ...
2Show what will be generated without writing to disk:
1nx g configuration ... --dry-run
2Path relative to the workspace root for the main entry file. Defaults to '<projectRoot>/src/main.ts'.
The name of the project.
Path relative to the workspace root for the tsconfig file to build with. Defaults to '<projectRoot>/tsconfig.app.json'.
buildThe build target to add.
babelbabel, swc, tscThe compiler to use to build source.
A list of external modules that will not be bundled (react, react-dom, etc.).
[esm]esm, cjsThe format to build the library (esm or cjs).
The library name used to import it, like @myorg/my-awesome-lib.
Path relative to workspace root to a custom rollup file that takes a config object and returns an updated config.
falseSkip formatting files.
falseDo not add dependencies to package.json.
falseDo not perform any validation on existing project.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!