rollup-plugin-riot

Rollup plugin for Riot.js

MIT 27 个版本
安装
npm install rollup-plugin-riot
yarn add rollup-plugin-riot
pnpm add rollup-plugin-riot
bun add rollup-plugin-riot
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

版本列表
10.0.0-beta.2 2025-06-06
10.0.0-beta.1 2025-06-06
10.0.0 2025-08-22
9.0.2 2023-10-06
9.0.1 2023-08-03
9.0.0 2023-08-03
7.0.0 2023-06-23
6.0.0 2021-07-11
5.0.0 2020-11-21
4.0.2 2020-04-25
4.0.0-beta.1 2019-03-09
4.0.0-alpha.1 2019-02-22
4.0.0 2019-04-19
2.1.0 2019-01-04
2.0.0 2017-12-23
1.2.0 2017-12-10
1.1.0 2016-12-02
1.0.0-alpha.1 2016-05-23
1.0.0 2016-11-24
0.4.3 2016-09-18
0.4.2 2016-08-14
0.4.0 2016-06-11
0.3.0 2016-05-23
0.2.0 2016-05-09
0.1.3 2016-04-11
0.1.1 2016-02-12
0.1.0 2016-01-20