setup (build) {
    const namespace = 'Search for vueNamedImportsCode in /ui/build '
    build.onResolve({ filter: /^vue$/ }, (args) => ({
      path: args.path,
      namespace
    }))

    build.onLoad(
      { filter: /.*/, namespace },
      () => vueNamedImportsCode
    )
  }
We could infer this automatically by reading and parsing each
file for vue imports, but the runtime cost is too high and we
want to achieve the best possible performance while building.

Unfortunately, esbuild does not have an option to tell
anything about what the named imports are from the target file.

Add all the vue imports from the UI code to the list below
otherwise the build will fail with the following error:
  No matching export in "Search for vueNamedImportsCode in /ui/build :vue"