/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
compiler/apps/playground/lib/defaultStore.ts
33 строки
682 B
Sebastian "Sebbie" Silbermann
[compiler] Export `PluginOptions` as a type that can be used in input positions (#34550)
22 сен 2025, 19:28
Не верифицирован
22 сен 2025, 19:28
720bb13
Код
Авторство
О чём код?
/** * 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. */ import type {Store} from './stores'; const index = `\ export default function MyApp() { return <div>Hello World</div>; } `; export const defaultConfig = `\ import type { PluginOptions } from 'babel-plugin-react-compiler/dist'; ({ //compilationMode: "all" } satisfies PluginOptions);`; export const defaultStore: Store = { source: index, config: defaultConfig, showInternals: false, }; export const emptyStore: Store = { source: '', config: '', showInternals: false, };