1.0.14 • Published 3 years ago

@pixi-build-tools/rollup-configurator v1.0.14

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

@pixi-build-tools/rollup-configurator

This package can be used directly as a Rollup configuration.

Installation :package:

npm install --dev @pixi-build-tools/rollup-configurator

Usage :page_facing_up:

as a Rollup configuration

rollup -c node_modules/\@pixi-build-tools/rollup-configurator/index.js

in your custom configuration

import { main } from '@pixi-build-tools/rollup-configurator/main';

Requirements

This package relies on your library's package.json manifest to configure the build process. By default, it will not include your package dependencies (and peer-dependencies) in the bundle; to prevent this, set standalone in your package.json.

The following table summarizes the fields you might need to fill:

FieldRecommendedDescription
main:white_check_mark:Output path for CommonJS bundle
module:white_check_mark:Output path for ESM bundle
bundle:white_check_mark:Output path for UMD bundle. In production mode, will also produce a minified bundle with a .min.js extension
namespaceConfigure your package's global/namespace, i.e. how applications will access. For example, the namespace of pixi.js is PIXI
bundleInputAlternative entry point for UMD bundles (other than src/index.(ts|js))
bundleOutputUsed to configure the Rollup output for UMD bundles
bundleNoExportEnable if your package does not export anything (for example, mixins)
standaloneBundle all your dependencies in the UMD output