This script migrates a non-ejected Create React App to Parcel.
npx cra-to-parcel
For full details and manual instructions, see the Parcel website. In summary:
react-scripts
is replaced withparcel
in dependencies and package.jsonscripts
- Jest config is ejected, and the necessary dependencies are installed
public/index.html
is updated to use Parcel syntax, and add explicit<script src="../src/index.js">
tag- SVG react component imports are migrated to Parcel syntax
- A
.postcssrc
is created if@import-normalize
or Tailwind is detected - A
babel.config.json
is created if Babel macros (e.g. GraphQL imports) are detected - A
"lint"
script is added to run eslint .gitignore
is updated to add the Parcel cache and dist directories