All files / client/src hmr.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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                    1x          
/**
 * Coherent.js HMR — legacy module entrypoint
 *
 * REMOVED in 1.0. This file existed in beta to auto-initialize HMR on import.
 * Direct imports of this path now throw immediately so callers see the
 * migration instruction instead of silent failures further down the call stack.
 *
 * @module @coherent.js/client/hmr
 */
 
throw new Error(
  "Coherent.js 1.0: importing '@coherent.js/client/src/hmr.js' was removed. " +
  "Import { hmrClient } from '@coherent.js/client' and call hmrClient.connect() instead. " +
  "See https://coherentjs.dev/docs/migration/1.0#removed-client-hmr-shim"
);