Migration from SPFx
TL;DR: You can move an existing SPFx project to RSPFx and keep your src/, manifests, and package-solution.json. Run rspfx migrate and rebuild.
This guide is the short path. For the full checklist, see Migrating from gulp and Heft.
What you keep
| Item | Status |
|---|---|
src/ | unchanged - classes, manifests, components, styles |
config/package-solution.json | read directly |
config/serve.json | read directly |
config/config.json | honored - entrypoints rewritten from ./lib/ to ./src/ |
sharepoint/ | unchanged |
@microsoft/sp-* | externalized - keep only if you import that runtime |
What you remove
gulpfile.jsand Heft rig -gulp serve,heft.json, rig extends,tsconfigrig extends.- Toolchain dev deps -
heft,spfx-heft-plugins,sp-build-web,gulp,webpack, loaders. - Heft configs -
config/rig.json,config/typescript.json,config/sass.json,config/deploy-azure-storage.json.
Known gaps
- No gulp task ecosystem - use
plugin-apihookscompilerHooksandpackageHooksfor scripting. - Other frameworks need a preset - add a
FrameworkPresetandBaseWebPartwithdefinePluginandregisterPlugin. See Custom framework guide. - React is bundled per web part - check for skew on older tenant pages.
For flags and behavior, see ../../reference/commands.md.