Skip to content
A parcel plugin for riot.js
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc updated: well at least let's lint it #7 Mar 23, 2019
LICENSE added: license and project badges Mar 23, 2019 updated: badges May 30, 2019
index.js closes #7 Apr 19, 2019

Build Status NPM version NPM downloads MIT License

A parcel plugin for riot.js


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


Add parcel-plugin-riot to your project.

npm i -D @riotjs/parcel-plugin-riot @riotjs/compiler

-> You are ready!

import App from './src/App.riot'
import {component} from 'riot'

component(App)(document.querySelector('#root'), {
  message: 'Hello there'


If you want compile your tags using custom riot compiler options you can create a riot.config.js in the root folder of your project

module.exports = {
  hot: false // set it to true if you are using hmr
  // add here all the other @riotjs/compiler options
  // template: 'pug' for example

If you want to enable hmr via hot option you will need to install also @riotjs/hot-reload

npm i @riotjs/hot-reload -D
You can’t perform that action at this time.