function injectRuntime(options, program) {
  const patch =
    options.patches && options.patches.length > 0 ? `import '${WC_HMR_MODULE_PATCH}'; ` : '';
  const toInject = parse(
    `${patch}import * as ${WC_HMR_NAMESPACE} from '${WC_HMR_MODULE_RUNTIME}'; if(import.meta.hot) { import.meta.hot.accept(); }`,
  );

  if (toInject) {
    program.node.body.unshift(/** @type {any} */ (toInject));
  }
}
@param {BabelPluginWcHmrOptions} options
@param {NodePath<Program>} program