function plugin (id, order) {
  order = order || {}
  const { after } = order

  // use object instead of function here
  const apply = {}
  apply.after = after
  return {
    id,
    apply
  }
}
@param {string} id
@param {{stage: number, after: string|Array<string>}} [order]