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 54cb053dfe
commit 6d6e928854
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`,
-4
View File
@@ -8,10 +8,6 @@ export default defineConfig(() => ({
server: {
host: "::",
port: 8080,
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
},
},
plugins: [
react(),