Remove unused dep, fix esbuild plugins

This commit is contained in:
Alex Gleason committed 2025-09-18 15:31:36 -05:00
1 parent 4b42f4cedb
commit 9ac157e802
4 files changed
+2 -287

No files matched your search

+2 -2
View File
@@ -78,12 +78,12 @@ export function esmPlugin(packageLock: PackageLock, target?: string): Plugin {
// fallthrough
}
keys.push(`node_modules/${packageName}`);
if (packageName.startsWith("@jsr/")) {
keys.push(`node_modules/@${packageName.slice(5).replace("__", "/")}`);
}
keys.push(`node_modules/${packageName}`);
const packageInfo = keys
.map((key) => packageLock.packages[key])
.find((info) => info);
-1
View File
@@ -73,7 +73,6 @@ async function tryFileVariants(
return indexFile;
}
}
throw new Error("Directory without index file");
}
// Try direct file with extensions