web-infra-dev / rspack-migration-showcase

migration showcase for rspack
8 stars 4 forks source link

[Suggestion] Extended Create React App examples #7

Open luistak opened 1 year ago

luistak commented 1 year ago

I have seen several projects that use create react app with a custom helper to customize webpack configs like: craco or customize-cra.

Is it possible to add a tutorial, or an example for this kind of setup?

builtbylane commented 1 year ago

yes if someone had a craco example, please share!

hyf0 commented 1 year ago

We have an experimental CRA based on Rspack. You can see https://github.com/excalidraw/excalidraw/pull/6425 and try to migrate your CRA app by making the alias react-scripts to react-scripts-rspack or just do as @hardfist did in https://github.com/excalidraw/excalidraw/pull/6425.

You might just try craco on react-scripts-rspack.

We are not sure whether to maintain the CRA based on Rspack, that's why I call it experimental.