Skip to main content

Rollup driver

Provides Rollup support by dynamically generating a rollup.config.js config file.

Requirements#

  • Rollup ^2.0.0

Installation#

In your configuration module, install the driver, Rollup, and any loaders or plugins.

yarn add @beemo/driver-rollup rollup

Create a file at configs/rollup.ts (or js) in which to house your Rollup configuration.

configs/rollup.ts
import { RollupConfig } from '@beemo/driver-rollup';
const config: RollupConfig = {
input: 'src/main.js',
output: {
file: 'bundle.js',
format: 'cjs',
},
};
export default config;

Integration#

In your consuming project, enable the driver by adding rollup to your drivers config.

.config/beemo.ts
import { BeemoConfig } from '@beemo/core';
const config: BeemoConfig = {
module: '<config-module>',
drivers: ['rollup'],
};
export default config;