Razzle: The road to razzle 4.0

Created on 8 Aug 2020  ·  10Comments  ·  Source: jaredpalmer/razzle

What should go in razzle 4.0. I have added lots of new goodies in the canary branch.

The branch (canary)

The branch documentation (canary)

The features I currently feel can be ready for 4.0 is:

  • webpack 5 support (ready)
  • new babel configuration, with ability to modify options to presets and adding presets in .babelrc so you dont need to configure everything from scratch, taken from next.js (ready but needs more eyes)
  • new razzle plugin system with more hooks, modifyPaths, modifyOptions to modify a new options key that comes with defaults in razzle.config.js, modifyWebpackOptions to modify options that will be used in the webpack configuration, modifyWebpackConfig same as what plugins did before, modifyJestConfig to modify the jest configuration. Same functionality will be added to razzle.config.js so plugins become highly composable. (ready but needs more eyes)
  • experimental support for react-refresh (ready)
  • make configuration promise based (ready)
  • add razzle export to export a static site (ready)
  • new way of adding externals (ready)
  • built in typescript support (ready)
  • splitChunks configuration in optimize (ready but needs more eyes)
  • use contenthash instead of build hash (ready)

To try it now:

npx create-razzle-app@canary testing --ignore-existing
cd testing
yarn add [email protected] --dev
yarn start
yarn build
yarn start:prod
yarn test

See the docs

https://github.com/jaredpalmer/razzle/releases/tag/v4.0.0-canary.0
https://github.com/jaredpalmer/razzle/releases/tag/v4.0.0-canary.1
https://github.com/jaredpalmer/razzle/releases/tag/v4.0.0-canary.2

Note: expect bugs ;)

Most helpful comment

Razzle 4.0.1 is released!! Closing

All 10 comments

How soon until this is ready? Will there be an upgrade guide?

can't wait to try this out 🎉

So, razzle 4.0 is really near. I promise :) If anoyne uses the canary please try out the latest so we can find any glaring issues.

Plan was this week, but had some publishing issues. Will try monday next week. Try canary 50 in the meantime just to make sure it is ok.

Discovered a issue with html-webpack-plugin. Need to look at that before any 4.0.1 release. May be a easy fix with peerDeps. May still release monday, if this is the case.

If anyone uses the canary can you try the latest '4.0.1-canary.6' ?

Think I fixed the issue with html-webpack-plugin.

See https://razzle-git-canary-jared.vercel.app/getting-started#dependencies

Just add @4.0.1-canary.6 to any core razzle packages you install.

Or see if this works for you

npx create-razzle-app@canary --verbose --example with-typeorm-graphql with-typeorm-graphql

If this causes no issues for you I will release 4.0.1. Just need confirmation that it works for you and not just for me :)

Released 4.0.1-canary.15 . Added tests for installing/building/starting examples, will retry releasing on monday.

Razzle 4.0.1 is released!! Closing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krazyjakee picture krazyjakee  ·  3Comments

sebmor picture sebmor  ·  4Comments

knipferrc picture knipferrc  ·  5Comments

panbanda picture panbanda  ·  5Comments

ewolfe picture ewolfe  ·  4Comments