Home

Awesome

Rollup Plugin for Riot

Build Status NPM version NPM downloads MIT License

Compiles tag files within rollup processes.

Important

If you are using Riot.js < 4.0.0 please check the v3 branch

Installation

npm install rollup-plugin-riot @riotjs/compiler -D

Requires @riotjs/compiler > 4.x.x and Rollup v1.x.x or above.

Usage

import riot from 'rollup-plugin-riot'
export default {
  input: 'src/main.js',
  output: {
    file: 'dist/bundle.js',
  },
  plugins: [riot()],
}

Options

You can specify some options:

import riot from 'rollup-plugin-riot'
const options = {
  ext: 'html',
}
export default {
  input: 'src/main.js',
  output: {
    file: 'dist/bundle.js',
  },
  plugins: [riot(options)],
}

And other options of @riotjs/compiler could be used.

Recipes