mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Update www warning shim (#13244)
This commit is contained in:
@@ -39,7 +39,7 @@ if (__DEV__) {
|
||||
lowPriorityWarning = function(condition, format, ...args) {
|
||||
if (format === undefined) {
|
||||
throw new Error(
|
||||
'`warningWithoutStack(condition, format, ...args)` requires a warning ' +
|
||||
'`lowPriorityWarning(condition, format, ...args)` requires a warning ' +
|
||||
'message argument',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -150,12 +150,12 @@ const forks = Object.freeze({
|
||||
},
|
||||
|
||||
// This logic is forked on www to blacklist warnings.
|
||||
'shared/warning': (bundleType, entry) => {
|
||||
'shared/warningWithoutStack': (bundleType, entry) => {
|
||||
switch (bundleType) {
|
||||
case FB_WWW_DEV:
|
||||
case FB_WWW_PROD:
|
||||
case FB_WWW_PROFILING:
|
||||
return 'shared/forks/warning.www.js';
|
||||
return 'shared/forks/warningWithoutStack.www.js';
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user