mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
It's very close but still not working
This commit is contained in:
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`,
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user