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.

Add support for customizing babel configuration

See original GitHub issue

Add 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:closed
  • Created 7 years ago
  • Reactions:20
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
kentcdoddscommented, Feb 19, 2017

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 😃

5reactions
brian-manncommented, Nov 20, 2017
Read more comments on GitHub >

github_iconTop 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 >

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