@embeddable.com/sdk-react
Version:
Embeddable SDK React plugin responsible for React components bundling.
35 lines (34 loc) • 1.29 kB
TypeScript
import * as vite from "vite";
import { WatcherOptions } from "rollup";
import { ResolvedEmbeddableConfig } from "@embeddable.com/sdk-core";
import { LogLevel } from "vite";
export declare const EMB_FILE_REGEX: RegExp;
declare const _default: (ctx: ResolvedEmbeddableConfig) => Promise<vite.Rollup.RollupOutput | vite.Rollup.RollupOutput[] | vite.Rollup.RollupWatcher>;
export default _default;
export declare function getViteConfig(ctx: ResolvedEmbeddableConfig, watch: WatcherOptions | null, plugins: any[]): {
logLevel: LogLevel;
resolve: {
alias?: Record<string, string>;
extensions: string[];
};
plugins: any[];
build: {
sourcemap: boolean | "inline";
watch: {
include: string[];
exclude: string[];
} | undefined;
minify: boolean;
rollupOptions: vite.Rollup.RollupOptions;
lib: {
entry: string;
formats: vite.LibraryFormats[];
fileName: string;
};
outDir: string;
};
define: {
"process.env.NODE_ENV": string;
};
};
export declare function runViteBuild(ctx: ResolvedEmbeddableConfig, watch?: WatcherOptions | null): Promise<vite.Rollup.RollupOutput | vite.Rollup.RollupOutput[] | vite.Rollup.RollupWatcher>;