Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Options for the file format for Live plugins.

Live plugin file format options

Options for the the file format for Live plugins.


Must implement a LivePlugin shape, but does not need to extend from it.

export default class {

  $require = ['live-foo']

  $desc = 'A plugin'

  register(app) {

  async init(app) {


Props attached to function

const plugin = (app) => {


plugin.register = function(app) {

plugin.init = async function(app) {

plugin.desc = ''

plugin.require = ''

exports default plugin


Receives an instantiated plugin as first argument (plugin: LivePlugin).

exports.register = function() {

exports.init = function() {

export.require = ['bar']


export default class {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.