docs: function transpile(lang, text, options) {
    let plugin = `vuegister-plugin-${lang}`;
  
    let langs = {
      js() {
        let map = (options.maps && options.offset > 0) ?
                  generateMap(text, options.file, options.offset) : null;
  
        return {data: text, map};
      },
  
      html() {
        return {data: text, map: null};
      },
  
      error(err) {
        let error = `Plugin ${plugin} not found.` + os.EOL + err.message;
  
        throw new Error(error);
      },
    };
  
    // allows to override default html and js methods by plugins
    try {
      return require(plugin)(text, options);
    } catch (err) {
      return (langs[lang] || langs['error'](err))();
    }
  }