Babel and React ? Or maybe react-create-app's support ?
See original GitHub issueHello,
so is there any way to add a Babel support in a React application ?
I have thought about some way to do it, like for example building the React app with a separate process and put the static files in a @nrwl/web:application
but I think this is not really viable.
Or maybe i can use something like Angular-builders’s custom-webpack but again I don’t think this can be the right way because it can (probably ?) interfere with nx if I try to change the default nrwl’s builder.
And lastly i have also thought about Angular eject, but this is deprecated so nop…
I am not an Angular dev, I mainly work on React so I probably don’t have the correct mind set on how to do this, and this is why I am asking it here.
So what do you think ? Is there an actual right way to do it ? Could we hope about a react-create-app’s support in the future ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
@AnatoleLucet @FrozenPandaz The plugin approach to swap in babel works if the developers need to use babel plugins or presets.
CRA does more than just webpack + babel, so it’d be good if you list out feature requests that we can look into our
dev-server
.@FrozenPandaz Great ! I think creating a webpack config may not be enough. Create react app needs to be started with node, for exemple here is the
start
script which start the app on a dev server.I will open a new issue to speak about more details.