mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Inline fbjs/lib/invariant * Inline fbjs/lib/warning * Remove remaining usage of fbjs in packages/*.js * Fix lint * Remove fbjs from dependencies * Protect against accidental fbjs imports * Fix broken test mocks * Allow transitive deps on fbjs/ for UMD bundles * Remove fbjs from release script
21 lines
655 B
JavaScript
21 lines
655 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import invariant from 'shared/invariant';
|
|
|
|
// We expect that our Rollup, Jest, and Flow configurations
|
|
// always shim this module with the corresponding host config
|
|
// (either provided by a renderer, or a generic shim for npm).
|
|
//
|
|
// 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.
|
|
|
|
invariant(false, 'This module must be shimmed by a specific renderer.');
|