mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 12:42:50 +08:00
Prevent Babel config overridden (#5109)
This commit is contained in:
@@ -37,6 +37,7 @@ module.exports = {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
compact: false,
|
||||
presets: [
|
||||
['babel-preset-react-app/dependencies', { helpers: true }],
|
||||
|
||||
@@ -12,4 +12,5 @@ const babelJest = require('babel-jest');
|
||||
module.exports = babelJest.createTransformer({
|
||||
presets: [require.resolve('babel-preset-react-app')],
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
});
|
||||
|
||||
@@ -234,6 +234,7 @@ module.exports = {
|
||||
options: {
|
||||
// @remove-on-eject-begin
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
presets: [require.resolve('babel-preset-react-app')],
|
||||
// Make sure we have a unique cache identifier, erring on the
|
||||
// side of caution.
|
||||
@@ -289,6 +290,7 @@ module.exports = {
|
||||
loader: require.resolve('babel-loader'),
|
||||
options: {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
compact: false,
|
||||
presets: [
|
||||
[
|
||||
|
||||
@@ -275,6 +275,7 @@ module.exports = {
|
||||
options: {
|
||||
// @remove-on-eject-begin
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
presets: [require.resolve('babel-preset-react-app')],
|
||||
// Make sure we have a unique cache identifier, erring on the
|
||||
// side of caution.
|
||||
@@ -323,6 +324,7 @@ module.exports = {
|
||||
loader: require.resolve('babel-loader'),
|
||||
options: {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
compact: false,
|
||||
presets: [
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user