s-KaiNet / spfx-fast-serve

Improve your SharePoint Framework development flow by speeding up the "serve" command :rocket:
MIT License
132 stars 11 forks source link

Webpack 5 migration and SPFx 1.19 support #130

Closed s-KaiNet closed 2 weeks ago

s-KaiNet commented 3 months ago

Probably you're already read, that SPFx 1.19+ will be webpack 5 based. And that's great news. However, it introduces some challenges for fast-serve, since I have to migrate to webpack 5 as well to be SPFx compatible.

At a high level, below things need to be completed:

  1. Migrate whole configuration to webpack 5 schema.
  2. Migrate custom loaders.
  3. Migrate custom plugins.
  4. Update all dependencies to the newest versions with webpack 5 support (finally!)
  5. Check how webpack dev server works in webpack 5.
  6. Fix all the problems on a way.

I expect it will take about 2 months, most likely more. Hopefully I have some time, since 1.19 is currently still in beta. I'm going to use this issue for some important updates or announcements.

s-KaiNet commented 3 months ago

Current state:
I was able to create minimal working version of SPFx 1.19 beta with fast-serve and webpack 5. Seems all custom loaders and plugins I created for webpack 4 work fine in version 5 without lots of modifications (or even without modifications). Tested with different scenarios and so far it works. If you feel adventures, you can try to migrate your project to SPFx 1.19 beta and test with spfx-fast-serve-helpers@1.19.0-beta.11

s-KaiNet commented 2 weeks ago

fast-serve-helpers 1.19.0 were published, will close this issue. If you have problems with SPFx 1.19+, please open a new one.