Skip to content

feat(migrate): add migrate.ignorePatterns - #3411

Draft
fengmk2 wants to merge 1 commit into
mainfrom
codex/issue-3406-migrate-templates
Draft

fengmk2 wants to merge 1 commit into
mainfrom
codex/issue-3406-migrate-templates

Conversation

@fengmk2

@fengmk2 fengmk2 commented Nov 10, 2026

Copy link
Copy Markdown
Member

vp migrate rewrites reusable templates and can change shared dependencies that those templates still need.

Add migrate.ignorePatterns in the root vite.config.ts to exclude paths with .gitignore syntax. The patterns apply to initial migration, upgrades, and --full. The vite-plus/prefer-vite-plus-imports rule uses the same exclusions, while other lint rules remain active.

migrate: {
  ignorePatterns: ['templates/', 'examples/'],
},

When excluded packages exist, migration preserves shared catalogs and overrides. Migrated packages use explicit dependency versions. Conflicting overrides stop migration before edits. Migration skips external ESLint comment renaming and baseUrl removal because those tools cannot honor exclusions.

Closes #3406

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-issue-3406-migrate-templates-viteplus-dev.voidzero-docs.workers.dev (commit fea70b3)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://dc66070d-viteplus-dev.voidzero-docs.workers.dev fea70b3 2026-11-10T05:37:18.750Z Visit the dashboard ↗

@github-actions

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: fea70b3

@github-actions

Copy link
Copy Markdown
Contributor

CLI artifact sizes (fea70b3)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.33 MiB 2.35 MiB +17.25 KiB (+0.72%)
packages/core/dist Directory total 4.09 MiB 4.09 MiB 0 B (0.00%)
Combined package dist Directory total 6.42 MiB 6.43 MiB +17.25 KiB (+0.26%)
vp (Linux x64) Binary 8.31 MiB 8.31 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.80 MiB 3.80 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 36.27 MiB 36.28 MiB +12.00 KiB (+0.03%)
NAPI (Linux x64) gzip -9 14.48 MiB 14.48 MiB +4.92 KiB (+0.03%)
vp (macOS ARM64) Binary 5.42 MiB 5.42 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.24 MiB 3.24 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 43.05 MiB 43.07 MiB +16.17 KiB (+0.04%)
NAPI (macOS ARM64) gzip -9 18.68 MiB 18.69 MiB +7.34 KiB (+0.04%)
vp (Windows x64) Binary 6.16 MiB 6.16 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 2.85 MiB 2.85 MiB 0 B (0.00%)
NAPI (Windows x64) Binary 32.38 MiB 32.39 MiB +11.00 KiB (+0.03%)
NAPI (Windows x64) gzip -9 13.25 MiB 13.26 MiB +7.14 KiB (+0.05%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB -1 B (-0.01%)
Installer (Windows x64) Binary 4.66 MiB 4.66 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.24 MiB 2.24 MiB -1 B (-0.00%)

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude certain Vite projects from being converted to vite-plus when I do vp migrate

1 participant