spfx-fast-serve icon indicating copy to clipboard operation
spfx-fast-serve copied to clipboard

Webpack 5 migration and SPFx 1.19 support

Open s-KaiNet opened this issue 1 year ago • 1 comments

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 avatar Apr 02 '24 18:04 s-KaiNet

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 [email protected]

s-KaiNet avatar Apr 18 '24 10:04 s-KaiNet

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.

s-KaiNet avatar Jun 26 '24 21:06 s-KaiNet