src/setup-utils/SwiftDocCRenderPlugin.js
/**
 * This is the SwiftDocCRenderPlugin, which attaches things to the Vue instance
 * Attach all Swift-DocC-Render helpers into the Vue object.
 */
This is the SwiftDocCRenderPlugin, which attaches things to the Vue instance
Attach all Swift-DocC-Render helpers into the Vue object.
This is the SwiftDocCRenderPlugin which attaches things to the Vue instance Attach all Swift - DocC - Render helpers into the Vue object .
function SwiftDocCRenderPlugin(Vue, {
  performanceMetrics = false,
} = {}) {
  Vue.config.productionTip = false;
  Vue.use(CustomComponents);
  Vue.directive('hide', directives.hide);
  Vue.use(CommunicationBridge, {
    appTarget: process.env.VUE_APP_TARGET,
    performanceMetricsEnabled: performanceMetrics,
  });
  window.bridge = Vue.prototype.$bridge;
  Vue.config.performance = performanceMetrics;
}
function SwiftDocCRenderPlugin ( Vue , { performanceMetrics = false , } = { } ) { Vue . config . productionTip = false ; Vue . use ( CustomComponents ) ; Vue . directive ( 'hide' , directives . hide ) ; Vue . use ( CommunicationBridge , { appTarget : process . env . VUE_APP_TARGET , performanceMetricsEnabled : performanceMetrics , } ) ; window . bridge = Vue . prototype . $bridge ; Vue . config . performance = performanceMetrics ; }
This is the SwiftDocCRenderPlugin, which attaches things to the Vue instance
 Attach all Swift-DocC-Render helpers into the Vue object.
This is the SwiftDocCRenderPlugin which attaches things to the Vue instance Attach all Swift - DocC - Render helpers into the Vue object .
/* eslint-disable no-param-reassign */ // Set up custom global directives // Emit performance metrics.