mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
34 lines
682 B
TypeScript
34 lines
682 B
TypeScript
/**
|
|
* 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,
|
|
};
|