Experimental Features
Razzle has support for some experimental features. Currently razzle has experimental support for:
- React refresh - react-refresh
- Static export
- New babel loader
- New externals resolution
- New splitChunks configuration
- New contentHash configuration
- New mainFields configuration
More features may be added in the future and may become fully supported features.
Razzle 4.0
If you want to be ready for the Razzle 4.0 release you can enable some experimental features to be sure you build will work on 4.0.
// razzle.config.jsmodule.exports = { experimental: { newBabel: true, newExternals: true, newSplitChunks: true, newContentHash: true, newMainFields: true, },};
Enable react refresh:
// razzle.config.jsmodule.exports = { experimental: { reactRefresh: true, },};
Enable the new babel loader:
// razzle.config.jsmodule.exports = { experimental: { newBabel: true, },};
Enable the new externals resolution:
// razzle.config.jsmodule.exports = { experimental: { newExternals: true, },};
Enable the new splitChunks configuration:
// razzle.config.jsmodule.exports = { experimental: { newSplitChunks: true, },};
Enable the new contentHash configuration:
// razzle.config.jsmodule.exports = { experimental: { newContentHash: true, },};
Enable the new mainFields configuration:
// razzle.config.jsmodule.exports = { experimental: { newMainFields: true, },};