Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rollup-plugin-riot

riot836MIT9.0.2

Rollup plugin for Riot.js

riot, rollup-plugin

readme

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)],
}
  • ext: extension of tag file (default is 'riot')
  • include: a minimatch pattern for including files.
  • exclude: a minimatch pattern for excluding files.

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

Recipes

changelog

rollup-plugin-riot

[4.0.0]

  • Stable release using the latest @riotjs/compiler@4

[4.0.0-beta.1]

  • Update dependencies and the riot compiler

[4.0.0-alpha.1]

  • Update the riot compiler@4
  • Prepare the initial setup for riot@4

[2.1.0]

Changed

  • Make test compatible w/node 5.
  • Update devDependencies.
  • riot-compiler 3.5.2 and Rollup 0.56 as peerDependency.

Fixed

  • Linting errors.

Removed

  • Bublé, this plugin is for NodeJS.