Skip to content

Commit d363805

Browse files
committed
remobe babel plugin
1 parent b1fc004 commit d363805

File tree

5 files changed

+1
-135
lines changed

5 files changed

+1
-135
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = {
9393
'react-internal/no-primitive-constructors': ERROR,
9494
'react-internal/no-to-warn-dev-within-to-throw': ERROR,
9595
'react-internal/warning-and-invariant-args': ERROR,
96-
'react-internal/no-production-logging': 1,
96+
'react-internal/no-production-logging': ERROR,
9797
},
9898

9999
overrides: [

scripts/babel/__tests__/wrap-warning-with-env-check-test.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

scripts/babel/wrap-warning-with-env-check.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

scripts/jest/preprocessor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const pathToBabel = path.join(
1616
const pathToBabelPluginDevWithCode = require.resolve(
1717
'../error-codes/transform-error-messages'
1818
);
19-
const pathToBabelPluginWrapWarning = require.resolve(
20-
'../babel/wrap-warning-with-env-check'
21-
);
2219
const pathToBabelPluginAsyncToGenerator = require.resolve(
2320
'@babel/plugin-transform-async-to-generator'
2421
);
@@ -34,7 +31,6 @@ const babelOptions = {
3431
require.resolve('@babel/plugin-transform-modules-commonjs'),
3532

3633
pathToBabelPluginDevWithCode,
37-
pathToBabelPluginWrapWarning,
3834

3935
// Keep stacks detailed in tests.
4036
// Don't put this in .babelrc so that we don't embed filenames
@@ -92,7 +88,6 @@ module.exports = {
9288
pathToBabel,
9389
pathToBabelrc,
9490
pathToBabelPluginDevWithCode,
95-
pathToBabelPluginWrapWarning,
9691
pathToTransformInfiniteLoops,
9792
pathToErrorCodes,
9893
]),

scripts/rollup/build.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ function getBabelConfig(updateBabelOptions, bundleType, filename) {
124124
plugins: options.plugins.concat([
125125
// Minify invariant messages
126126
require('../error-codes/transform-error-messages'),
127-
// Wrap warning() calls in a __DEV__ check so they are stripped from production.
128-
require('../babel/wrap-warning-with-env-check'),
129127
]),
130128
});
131129
case RN_OSS_DEV:
@@ -141,8 +139,6 @@ function getBabelConfig(updateBabelOptions, bundleType, filename) {
141139
// Preserve full error messages in React Native build
142140
{noMinify: true},
143141
],
144-
// Wrap warning() calls in a __DEV__ check so they are stripped from production.
145-
require('../babel/wrap-warning-with-env-check'),
146142
]),
147143
});
148144
case UMD_DEV:
@@ -157,8 +153,6 @@ function getBabelConfig(updateBabelOptions, bundleType, filename) {
157153
path.resolve('./scripts/babel/transform-object-assign-require'),
158154
// Minify invariant messages
159155
require('../error-codes/transform-error-messages'),
160-
// Wrap warning() calls in a __DEV__ check so they are stripped from production.
161-
require('../babel/wrap-warning-with-env-check'),
162156
]),
163157
});
164158
default:

0 commit comments

Comments
 (0)