message: update cardhost to match changes in core
diff: @@ -11,7 +11,10 @@ import type {
  import { RawCardDeserializer } from '@cardstack/core/src/raw-card-deserializer';
  import { fetchJSON } from './jsonapi-fetch';
  import config from 'cardhost/config/environment';
  -import { Compiler, defineModules } from '@cardstack/core/src/compiler';
  +import {
  + Compiler,
  + makeGloballyAddressable,
  +} from '@cardstack/core/src/compiler';
  import { CSS_TYPE, JS_TYPE } from '@cardstack/core/src/utils/content';
  import dynamicCardTransform from './dynamic-card-transform';
  import { cardURL, encodeCardURL } from '@cardstack/core/src/utils';
  @@ -143,8 +146,10 @@ export default class LocalRealm implements Builder {
  if (cardId) {
  let rawCard = await this.getRawCard(url);
  let compiledCard = await this.compiler.compile(rawCard);
  - let definedCard = defineModules(compiledCard, (local, type, src) =>
  - this.define(url, local, type, src)
  + let definedCard = makeGloballyAddressable(
  + url,
  + compiledCard,
  + (local, type, src) => this.define(url, local, type, src)
  );
  this.compiledCardCache.set(url, definedCard);
  return definedCard;
  