Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure babel.config.js is not used without useBabelConfig option #376

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jan 19, 2021

We have been disabling loading of .babelrc files for quite some time, but missed the addition of babel.config.js to @babel/core's configuration story.

Now that we are attempting to roll out a version of ember-cli-babel that primarily leverages babel.config.js this mistake is coming back to haunt us. Without this explicit disabling of the options.configFile option ember-cli-babel versions prior to the ones that are adding support for babel.config.js (and wihtout opting in) are parsing babel.config.js files and ultimately breaking their builds.

Note: this should not be a breaking change as we did not really support this before (and build errors would have always occurred), but without this change it is very difficult to adopt ember-cli-babel@7.24.0's new useBabelConfig option.

We have been disabling loading of `.babelrc` files for quite some time,
but missed the addition of `babel.config.js` to `@babel/core`'s
configuration story.

Now that we are attempting to roll out a version of ember-cli-babel that
primarily leverages `babel.config.js` this mistake is coming back to
haunt us. Without this explicit disabling of the `options.configFile`
option ember-cli-babel versions **prior to** the ones that are adding
support for `babel.config.js` (and wihtout opting in) are parsing
`babel.config.js` files and ultimately breaking their builds.

Note: this should not be a breaking change as we did not really support
this before (and build errors would have always occurred), but without
this change it is very difficult to adopt ember-cli-babel@7.24.0's new
`useBabelConfig` option.
@rwjblue rwjblue added the bug label Jan 19, 2021
@rwjblue rwjblue merged commit d253e2f into v7.23.x Jan 19, 2021
@rwjblue rwjblue deleted the prevent-configFile branch January 19, 2021 20:07
This was referenced Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant