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

100% Statements 3/3
100% Branches 2/2
66.66% Functions 2/3
100% Lines 3/3

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                            1x 1x                 1x    
/**
 * Webpack Plugin for Coherent.js
 *
 * @experimental A pass-through: `apply()` hooks nothing into the compiler.
 */
 
import { warnExperimental } from './experimental.js';
 
export class CoherentWebpackPlugin {
  /**
   * @param {Object} [options]
   * @param {boolean} [options.silent] - Hide the experimental notice.
   */
  constructor(options = {}) {
    this.options = options;
    warnExperimental('CoherentWebpackPlugin', options);
  }
 
  apply(_compiler) {
    // Intentionally empty until the plugin does something.
  }
}
 
export function createWebpackPlugin(options = {}) {
  return new CoherentWebpackPlugin(options);
}