Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ejecting from CRA #215

Open
rishu605 opened this issue Dec 12, 2022 · 1 comment
Open

Ejecting from CRA #215

rishu605 opened this issue Dec 12, 2022 · 1 comment

Comments

@rishu605
Copy link

We are going to use this repo for production apps in my organization.
We need to able to customize webpack configurations to setup a Micro Front End Architecture using this boilerplate. We are also planning to use swc instead of babel and typescript for transpiling and compiling respectively. Typescript will be used throughout the project with React 18.

A hard requirement is to be able to do SSR.

We also should be able to update the packages across our app periodically (as and when necessary). I guess if we don't eject, we will be dependent on CRA for upgrades to packages that have been abstracted away but we will be able to update other packages.

Is it advisable to run npm run eject and get control of everything from CRA OR is it possible for us to do the above things without ejecting ?

@Clemios
Copy link

Clemios commented Jul 17, 2023

@rishu605 I started from this template to build a production ready boilerplate.
As it's a CRA template it's still based on react-scripts until you eject (mostly for the Webpack part).

As CRA is unmaintained now I recommend you to eject to get control on every config layers.

I also recommend you to split the package.json on order to split different configs (e.g babel, prettier....)

If at some point you need to update the backbone of your app, you can check how the updates were made by maintainers of CRA.

Good luck 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants