mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
This is equivalent to the jsx-runtime in that this is what the compiled output on the server is supposed to target. It's really just the same code for all the different Flights, but they have different types in their arguments so each one gets their own entry point. We might use this to add runtime warnings per entry point. Unlike the client-side React.block call this doesn't provide the factory function that curries the load function. The compiler is expected to wrap this call in the currying factory.
16 lines
542 B
JavaScript
16 lines
542 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
declare var $$$hostConfig: any;
|
|
|
|
export opaque type BundlerConfig = mixed; // eslint-disable-line no-undef
|
|
export opaque type ModuleReference<T> = mixed; // eslint-disable-line no-undef
|
|
export opaque type ModuleMetaData: any = mixed; // eslint-disable-line no-undef
|
|
export const resolveModuleMetaData = $$$hostConfig.resolveModuleMetaData;
|