@ggui-ai/ui-gen 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -565,7 +565,8 @@ async function loadVfs() {
565
565
  function resolveRelativeInVfs(vfs, containingFile, importPath) {
566
566
  const normalized = containingFile.startsWith("/") ? containingFile.slice(1) : containingFile;
567
567
  const dir = path.posix.dirname(normalized);
568
- const resolved2 = path.posix.normalize(`${dir}/${importPath}`);
568
+ const specifier = importPath.replace(/\.(?:m|c)?js$/, "");
569
+ const resolved2 = path.posix.normalize(`${dir}/${specifier}`);
569
570
  const withDts = `${resolved2}.d.ts`;
570
571
  if (vfs.has(withDts)) return withDts;
571
572
  const withIndexDts = `${resolved2}/index.d.ts`;