Jack Hsu d593153a33
feat(react): refactored babel support so options are more easily customized (#3089)
This reverts commit 7679df22f5b90d085b5f32f2135d828036ee5aa7.
2020-05-29 02:09:47 -04:00

1.4 KiB

package

Package a library

Builder properties can be configured in workspace.json when defining the builder, or when invoking it. Read more about how to use builders and the CLI here: https://nx.dev/react/guides/cli.

Properties

assets

Type: array

List of static assets.

babelConfig

Type: string

(deprecated) Path to a function which takes a babel config and returns an updated babel config

entryFile

Type: string

The path to the entry file, relative to project.

external

Type: array

A list of external modules that will not be bundled (react, react-dom, etc.).

extractCss

Default: true

Type: boolean

CSS files will be extracted to the output folder.

globals

Type: object[]

A mapping of node modules to their UMD global names. Used by the UMD bundle

moduleId

Type: string

The node module to map from (e.g. react-dom).

global

Type: string

The global name to map to (e.g. ReactDOM).

outputPath

Type: string

The output path of the generated files.

project

Type: string

The path to package.json file.

rollupConfig

Type: string

Path to a function which takes a rollup config and returns an updated rollup config

tsConfig

Type: string

The path to tsconfig file.

umdName

Type: string

The name of your module in UMD format. Defaulted to your project name.

watch

Default: false

Type: boolean

Enable re-building when files change.