/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
scripts/rollup/plugins/dynamic-imports.js
19 строк
483 B
Sebastian Markbåge
Split out Edge and Node implementations of the Flight Client (#26187)
21 фев 2023, 21:18
Не верифицирован
21 фев 2023, 21:18
60144a0
Код
Авторство
О чём код?
/** * 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. */ 'use strict'; module.exports = function dynamicImports() { return { name: 'scripts/rollup/plugins/dynamic-imports', renderDynamicImport({targetModuleId}) { if (targetModuleId === null) { return {left: 'import(', right: ')'}; } return null; }, }; };