It's very close but still not working

This commit is contained in:
Alex Gleason committed 2025-08-07 14:53:09 -05:00
1 parent 9622a33cbd
commit 30465d1fd1
2 files changed
+5 -5

No files matched your search

+5 -1
View File
@@ -16,7 +16,11 @@ export function esmShPlugin(dependencies: Record<string, string>): Plugin {
const packagePath = args.path.slice(packageName.length);
if (version.startsWith(jsrPrefix)) {
const specifier = "@" + version.slice(jsrPrefix.length).replace('__', '/');
const baseSpecifier = "@" + version.slice(jsrPrefix.length).replace('__', '/');
const specifier = packagePath
? `${baseSpecifier}${packagePath}`
: baseSpecifier;
return {
path: `https://esm.sh/jsr/${specifier}?external=react,react-dom`,