mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
Stacked on #30308. This is now a noop module so we can stop applying the transform of console.error using the Babel plugin in the mainline builds. I'm keeping the transform for RN/WWW for now although it might be nice if the transform moved into those systems as it gets synced instead of keeping it upstream. In jest tests we're already not running the forks for RN/WWW so we don't need it at all there.
19 lines
602 B
JavaScript
19 lines
602 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
// We expect that our Rollup, Jest, and Flow configurations
|
|
// always shim this module with the corresponding environment
|
|
// (either rn or www).
|
|
//
|
|
// We should never resolve to this file, but it exists to make
|
|
// sure that if we *do* accidentally break the configuration,
|
|
// the failure isn't silent.
|
|
|
|
export function setSuppressWarning() {
|
|
// TODO: Delete this and error when even importing this module.
|
|
}
|