Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat: all cdn resources can be replaced #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wangcch wants to merge 7 commits into main
base: main
Choose a base branch
Loading
from feat-switch-npm-registry

Conversation

@wangcch
Copy link
Collaborator

@wangcch wangcch commented Mar 4, 2025
edited
Loading

const store = useStore({
 resourceLinks: ref({
 esModuleShims: 'https://registry.npmmirror.com/es-module-shims/1.5.18/files/dist/es-module-shims.wasm.js',
 pkgLatestVersionUrl: (pkgName: string) => `https://registry.npmmirror.com/${pkgName}/latest/files/package.json`,
 pkgDirUrl: (pkgName: string, pkgVersion: string, pkgPath: string) => `https://registry.npmmirror.com/${pkgName}/${pkgVersion}/files/${pkgPath}/?meta`,
 pkgFileTextUrl: (pkgName: string, pkgVersion: string | undefined, pkgPath: string) => `https://registry.npmmirror.com/${pkgName}/${pkgVersion || 'latest'}/files/${pkgPath}`,
 typescriptLib: (version) => `https://registry.npmmirror.com/typescript/${version}/files/lib/typescript.js`,
 }),
})
export type ResourceLinkConfigs = {
 esModuleShims?: string
 vueCompilerUrl?: (version: string) => string
 typescriptLib?: (version: string) => string
 // for monaco
 pkgLatestVersionUrl?: (pkgName: string) => string
 pkgDirUrl?: (pkgName: string, pkgVersion: string, pkgPath: string) => string
 pkgFileTextUrl?: (pkgName: string, pkgVersion: string | undefined, pkgPath: string) => string
}

close #280 #159

edison1105 and xoxott reacted with thumbs up emoji
Copy link

vercel bot commented Mar 4, 2025
edited
Loading

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
repl Ready Ready Preview Comment Nov 25, 2025 1:55am

Copy link

pkg-pr-new bot commented Mar 4, 2025
edited
Loading

Open in StackBlitz

npm i https://pkg.pr.new/@vue/repl@325

commit: 409347e

Copy link
Member

LGTM. I feel we need add some docs for this feature.

Copy link
Collaborator Author

wangcch commented Mar 10, 2025

edison1105 reacted with thumbs up emoji

Copy link
Member

@wangcch
Could you please resolve those conflicts?

Copy link
Collaborator Author

wangcch commented Sep 9, 2025

@wangcch Could you please resolve those conflicts?

ok
sorry, my progress is a bit behind schedule. 🙈

Copy link
Member

@wangcch No worries, let's merge it in the next release.

wangcch reacted with rocket emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[feature]cdn.jsdelivr.net address change

AltStyle によって変換されたページ (->オリジナル) /