Skip to content

Migration overview ​

TL;DR: You can try RSPFx with one file and two installs, migrate with one command, or stay on the official toolchain. This guide helps you pick the path.

RSPFx reads the same config/ and src/ files as Heft and gulp. You can switch with little risk and revert when needed.

Paths ​

PathWhat you doWhen to use
Try mode (recommended)add vite.config.ts with devTryMode: true + two installsyou want to try in an existing project without switching
Hybrid devrun rspfx dev with no configyou want zero-file trial (experimental)
Full migraterun rspfx migrateyou want to move builds to RSPFx
Stay officialkeep gulp and Heftyou have blockers or want to wait

All paths keep your src/ code and sharepoint/ assets intact.

Add one file and two dev dependencies. Run rspfx dev alongside gulp. Production stays on gulp and Heft.

This is the pushed way to try RSPFx in existing projects. See Try mode.

Migrate an existing project ​

Run rspfx migrate --dry-run to preview, then rspfx migrate to apply. The command rewrites configs, writes a bundler file, and backs up to .rspfx/migrate-backup.json.

Then run bun install and rspfx package. See Migration from SPFx and Migrating from gulp and Heft.

Check blockers ​

Review Why not to migrate first. Do not migrate if you target SharePoint 2019 or on premises. Plan a preset if you need a framework RSPFx does not ship.

Large project example ​

See Migration case study for a 42k line project that migrated with no src/ edits.

Upgrade SPFx version after migrate ​

Change spfxVersion in your bundler config and update @mbsks/rspfx-plugin. See Upgrading SPFx version.

Released under the MIT License.