跳到主要内容

Fiber config

该文件由环境或 npm 提供 shim 实现。

开发者寄语

我们期望我们的 Rollup 、 Jest 和 Flow 配置总是使用相应的宿主配置来 shim 此模块(要么由渲染器提供,要么为 npm 提供通用 shim)。

我们永远不应该解析到这个文件,但它的存在是为了确保。

如果我们确实意外破坏了配置,错误不会悄无声息地发生。

// 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.

throw new Error('This module must be shimmed by a specific renderer.');