v6 React Template / Babel Setup
See original GitHub issue- I have read the contribution documentation for this project.
- [ x I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
Does v6 have a react template? appending --template=react
to the beta cli init
command failed to find one.
If there isn’t a react template yet, could I just get a bit of guidance on how to include babel transformations in the build process of electron-forge start
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Babel · The compiler for next generation JavaScript
4Create babel.config.json configuration file Create a babel.config.json config in your project root and enable some presets.
Read more >Setting up Webpack, Babel and React from scratch - Part 2
Create scss folder in the app folder, and main app.scss file in it. This file will include all of the other scss files....
Read more >@babel/preset-react | Yarn - Package Manager
Babel preset for all React plugins. readme. babel. The compiler for writing next generation JavaScript. Gitpod ready-to-code. v7 npm Downloads v6 npm ...
Read more >Requires Babel “7.0.0-0” but was loaded with “6.26.3” - GitHub
I have an unusual setup. Gems I use include react-rails and browserify-rails . When running yarn why babel-core (didn't know ...
Read more >Installation and Setup | Relay
Version: v6.0.0 ... Install React and Relay using yarn or npm : ... The below configuration of babel-plugin-relay and relay-compiler can be ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v6 is going to do away with framework-based templates (partly because they’re a pain to upgrade) and move towards bundler-based templates (e.g., parcel or webpack). I have not tested this (and @MarshallOfSound can correct me) but ideally you should be able to use
create-react-app
and the webpack Electron Forge v6 plugin and it should all just work.Incidentally, Electron Fiddle is a Forge v6 project that uses React and Parcel.
@audiolion If you want to use CRA you have to eject the config, we need those config files as we perform a similar role to CRA in that we call webpack directly ourselves