mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #706] [MERGED] refactor: extract OG asset plugins into src/plugins/og-assets.ts #786
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#786
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/706
Author: @james-elicx
Created: 3/28/2026
Status: ✅ Merged
Merged: 3/28/2026
Merged by: @james-elicx
Base:
main← Head:refactor/split-og-assets-plugin📝 Commits (1)
a885d1crefactor: extract OG asset plugins into src/plugins/og-assets.ts📊 Changes
2 files changed (+225 additions, -188 deletions)
View changed files
📝
packages/vinext/src/index.ts(+6 -188)➕
packages/vinext/src/plugins/og-assets.ts(+219 -0)📄 Description
Summary
vinext:og-inline-fetch-assetsandvinext:og-assetsout of the monolithicindex.tsintopackages/vinext/src/plugins/og-assets.tscreateOgInlineFetchAssetsPlugin()factory: the per-buildMap<string, string>cache andisBuildflag become closure state inside the factory, removing two module-level variables that previously leaked into the outervinext()closureogAssetsPluginconstant: thewriteBundle-only plugin has no mutable state, so it exports directly as a plain plugin objectindex.tsimports and delegates to these, removing ~190 lines of inline plugin codeTesting
vp checkpasses on both changed files (no type errors, no lint errors, no format issues)pnpm test tests/features.test.ts— 264/264 pass🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.