mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
It's very close but still not working
This commit is contained in:
1 parent
9622a33cbd
commit
30465d1fd1
2 files changed
+5
-5
No files matched your search
@@ -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`,
|
||||
|
||||
Reference in new issue
Block a user