The following guide describes how to migrate from any version haul package to @haul-bundler/cli.
- Backup old
haul.config.jsandbabel.config.js/.babelrc. - Install
@haul-bundler/cli:yarn add -D @haul-bundler/cli # or npm install --save-dev @haul-bundler/cli - Run
initcommand:yarn haul init # or npx haul init - Integrate Webpack modifications from old configuration to a new one using
transformproperty if needed. - If you have custom/additional Babel presets or plugins in old
babel.config.js/.babelrc, add them tobabel.config.js. - Remove HMR related logic, if you were using HMR, since we don't support it anymore.