message: fix: match all files
diff: @@ -55,10 +55,11 @@ async function demo(options) {
  function getComponent(components, data) {
  const fileModule = components[data.artifact];
  - console.log(components);
  - if (data.source in fileModule) {
  - return fileModule[data.source];
  + const match = data.files.find(file => file in fileModule);
  +
  + if (match) {
  + return fileModule[match];
  }
  return fileModule;
  @@ -115,9 +116,12 @@ function html(content, payload) {
  function getComponent(components, data) {
  const fileModule = components[data.artifact];
  - if (data.source in fileModule) {
  - return fileModule[data.source];
  + const match = data.files.find(file => file in fileModule);
  +
  + if (match) {
  + return fileModule[match];
  }
  +
  return fileModule;
  }
  