All files / cli/src/build-tools vite.js

50% Statements 2/4
50% Branches 1/2
50% Functions 1/2
50% Lines 2/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                            2x 2x                              
/**
 * Vite Plugin for Coherent.js
 *
 * @experimental Pass-throughs: they register under a name but change
 * nothing about resolution, loading, transformation or bundle output.
 */
 
import { warnExperimental } from './experimental.js';
 
/**
 * @param {Object} [options]
 * @param {boolean} [options.silent] - Hide the experimental notice.
 */
export function createVitePlugin(options = {}) {
  warnExperimental('createVitePlugin', options);
  return {
    name: 'coherent'
  };
}
 
/**
 * @param {Object} [options]
 * @param {boolean} [options.silent] - Hide the experimental notice.
 */
export function createSSRPlugin(options = {}) {
  warnExperimental('createSSRPlugin', options);
  return {
    name: 'coherent-ssr'
  };
}