volto icon indicating copy to clipboard operation
volto copied to clipboard

Razzle 4 - Webpack 5

Open sneridagh opened this issue 3 years ago • 4 comments

Made it work enough to see the main build pass. I had to disable several plugins, but the result is not very worthy from my point of view for now. Builds are slower, and output files are great in size... so I don't see any immediate value to pursue see this done.

We put a lot of work and effort in the build system and adapt the add-on infrastructure to match it, make them work again in Webpack 5 is going to be hard. Also found that most of the changes introduced (eg. resolver plugins API) the documentation sucks, and no examples out there to look upon.

I leave it here if someone want to continue the work.

sneridagh avatar Apr 10 '21 07:04 sneridagh

@sneridagh I was looking into this since we use razzle-plugin-scss and the version for razzle 3 still uses node-sass :/ Maybe we should consider using webpack 4 with razzle 4? It's supported and looks like its documented as of today. I think I will try to find some free time to experiment a little with this.

pnicolli avatar Jul 06 '22 12:07 pnicolli

Maybe we should consider using webpack 4 with razzle 4? It's supported and looks like its documented as of today. I think I will try to find some free time to experiment a little with this.

@sneridagh @pnicolli I started some work in this direction in #3536

davisagli avatar Jul 31 '22 02:07 davisagli

src/babel.js is used by current projects. Just to keep this in mind. https://github.com/eea/freshwater-frontend/blob/master/babel.config.js#L1

tiberiuichim avatar Jul 31 '22 06:07 tiberiuichim

@tiberiuichim I guess that comment was meant for #3536. I brought back babel.js there

davisagli avatar Jul 31 '22 06:07 davisagli

Superseded by: #3536

sneridagh avatar Sep 28 '22 08:09 sneridagh

@sneridagh I've deleted the branch since the pull request was closed and we now have razzle 4 and webpack 5 since 17. There are way too many open branches left that should be deleted so I will do some cleaning up when time permits.

ichim-david avatar Jan 13 '24 17:01 ichim-david