Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

fix default config to only require babel-loader and @babel/preset-env if there is no override #38

Conversation

silbinarywolf
Copy link
Contributor

fix default config to only require babel-loader and @babel/preset-env if there is no override

Fixes #37

@chrisbreiding chrisbreiding merged commit 8206bf3 into cypress-io:master Nov 13, 2018
@chrisbreiding
Copy link
Collaborator

Thanks!

@chrisbreiding
Copy link
Collaborator

Version 4.0.2 has been published to NPM. The full release note can be found at cypress-webpack-preprocessor/releases/tag/v4.0.2.

Tip: safely upgrade dependency @cypress/webpack-preprocessor in your project using next-update

const defaultBabelLoaderRules = () => {
return [
{
test: /\.js?$/,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove the x? This will match .js and .j files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this is a mistake that wasn't caught!
Apologies.

panzarino pushed a commit to cypress-io/cypress that referenced this pull request Sep 17, 2020
…ck-preprocessor#38)

* fix default config to only require babel-loader and @babel/preset-env if there is no override

* remove references to jsx

* move babel deps to optional dependencies

* fix formatting / add comments about optional babel deps

* lazy-load default options so that babel deps don’t need to be installed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requires babel-loader and @babel/preset-env even if you don't use them
3 participants