Member Junction
    Preparing search index...

    Options for compiling a React component

    interface CompileOptions {
        allLibraries: MJComponentLibraryEntity[];
        babelPlugins?: string[];
        babelPresets?: string[];
        componentCode: string;
        componentName: string;
        dependencies?: { code?: string; name: string }[];
        libraries?: ComponentLibraryDependency[];
        production?: boolean;
        styles?: ComponentStyles;
    }
    Index

    Properties

    allLibraries: MJComponentLibraryEntity[]

    Required, metadata for all possible libraries allowed by the system

    babelPlugins?: string[]

    Custom Babel plugins to use

    babelPresets?: string[]

    Custom Babel presets to use

    componentCode: string

    Raw component code to compile

    componentName: string

    Component name for identification

    dependencies?: { code?: string; name: string }[]

    Child component dependencies that the component requires

    Library dependencies that the component requires

    production?: boolean

    Whether to use production mode optimizations

    Optional styles to inject