Add support for customizing babel configuration
See original GitHub issueAdd support for specifying babel presets and plugins, so users can override the default ones.
Implementation notes:
Potentially auto-load a .babelrc
in the project root. Keep in mind that a user could have an older version of babel installed for their project that isn’t compatible with Cypress’s version.
Support having a .babelrc
in the cypress
directory that is preferred over one in the project root. Also, explore if there’s a need/use case for specifying the preset/plugins in cypress.json
under a babel
namespace.
Write documentation detailing the current defaults and how to override them.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:20
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Advanced Features: Customizing Babel Config - Next.js
Extend the babel preset added by Next.js with your own configs. ... To add presets/plugins with custom configuration, do it on the next/babel...
Read more >Config Files - Babel.js
Supported file extensions. Babel can be configured using any file extension natively supported by Node.js, as mentioned in Configuration File Types section:.
Read more >Adding custom babel configuration to your project - WPACK.IO
By default @wpackio/scripts ignores all babel.config.js and .babelrc files and passes its own configuration to babel-loader . This works great for most of ......
Read more >Babel | Gatsby
Gatsby ships with a default .babelrc setup that should work for most sites. If you'd like to add custom Babel presets or plugins,...
Read more >Babel - Storybook
We have added ES2016 support with Babel for transpiling your JS code. ... If you need, you can customize the default Babel configuration...
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
Chiming in with my use-case. I have some stage features of JS that aren’t available in Cypress (like Object Spread). Would love to have the ability to specify a custom
.babelrc
😃Fixed by https://github.com/cypress-io/cypress/pull/888.