question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Babel and React ? Or maybe react-create-app's support ?

See original GitHub issue

Hello, 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:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jaysoocommented, Jun 28, 2019

@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.

0reactions
AnatoleLucetcommented, Jun 27, 2019

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create React App 2.0: Babel 7, Sass, and More
Create React App 2.0 has been released today, and it brings a year's worth of improvements in a single dependency update.
Read more >
Setup react with webpack and babel - Medium
Guide to setup react from scratch, without using create-react-app and by configuring webpack and babel manually. Table of content. Setup React
Read more >
How to Create a React Application from Scratch with Babel ...
On the terminal, run npm install — save-dev @babel/core@7.1.0 @babel/cli@7.1.0 @babel/preset-env@7.1.0 @babel/preset-react@7.0.0.
Read more >
Setup Webpack And Babel for a React JS Application
As a beginner in React.js, I used to setting up my react application using a single command line tool called create-react-app (CRA) which...
Read more >
babel/preset-react
@babel/preset-react ... This preset always includes the following plugins: ... And with the development option: Classic runtime adds: ... Automatic runtime (since v7....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found