@nx/rollup:configuration
Add Rollup Configuration to a project.
Add Rollup Configuration to a project.
1nx generate configuration ...
2
1nx g rollup-project ... #same
2
By 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 ...
2
Show what will be generated without writing to disk:
1nx g configuration ... --dry-run
2
Path 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'.
build
The build target to add.
babel
babel
, swc
, tsc
The compiler to use to build source.
A list of external modules that will not be bundled (react
, react-dom
, etc.).
[esm]
esm
, cjs
The 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.
false
Skip formatting files.
false
Do not add dependencies to package.json
.
false
Do not perform any validation on existing project.
Watch the replays of exciting talks on developer tooling and monorepos! Catch all the insightful presentations from the event on our YouTube channel.