@samitouri / QOS-React / commits / 5776fa3fcf

Update www warning shim (#13244)

Dan Abramov committed Jul 20, 2018 at 16:50 UTC 5776fa3fcff2c93491e95c261d98af3cebf2cac9
3 files changed +3 -3
packages/shared/forks/warningWithoutStack.www.js renamed
packages/shared/lowPriorityWarning.js
+1 -1
@@ -39,7 +39,7 @@ if (__DEV__) {
39 lowPriorityWarning = function(condition, format, ...args) {
40 if (format === undefined) {
41 throw new Error(
42 - '`warningWithoutStack(condition, format, ...args)` requires a warning ' +
42 + '`lowPriorityWarning(condition, format, ...args)` requires a warning ' +
43 'message argument',
44 );
45 }
scripts/rollup/forks.js
+2 -2
@@ -150,12 +150,12 @@ const forks = Object.freeze({
150 },
151
152 // This logic is forked on www to blacklist warnings.
153 - 'shared/warning': (bundleType, entry) => {
153 + 'shared/warningWithoutStack': (bundleType, entry) => {
154 switch (bundleType) {
155 case FB_WWW_DEV:
156 case FB_WWW_PROD:
157 case FB_WWW_PROFILING:
158 - return 'shared/forks/warning.www.js';
158 + return 'shared/forks/warningWithoutStack.www.js';
159 default:
160 return null;
161 }