@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.
package/dist/index.js CHANGED
@@ -2461,7 +2461,8 @@ async function loadVfs() {
2461
2461
  function resolveRelativeInVfs(vfs, containingFile, importPath) {
2462
2462
  const normalized = containingFile.startsWith("/") ? containingFile.slice(1) : containingFile;
2463
2463
  const dir = path.posix.dirname(normalized);
2464
- const resolved2 = path.posix.normalize(`${dir}/${importPath}`);
2464
+ const specifier = importPath.replace(/\.(?:m|c)?js$/, "");
2465
+ const resolved2 = path.posix.normalize(`${dir}/${specifier}`);
2465
2466
  const withDts = `${resolved2}.d.ts`;
2466
2467
  if (vfs.has(withDts)) return withDts;
2467
2468
  const withIndexDts = `${resolved2}/index.d.ts`;