UNPKG

zephyr-modernjs-plugin

Version:

Modernjs plugin for Zephyr

19 lines • 1.01 kB
import type { AppTools, CliPlugin } from '@modern-js/app-tools'; import { type ZephyrBuildHooks, type ZephyrBuildTarget } from 'zephyr-agent'; /** * The development-server workaround rewrites emitted runtime behavior. A TAP package * carries SDK-locked output, so it must never opt into that rewrite. */ export declare function shouldApplyDevPublicPathFix(target: ZephyrBuildTarget | undefined, development?: boolean): boolean; export interface ZephyrModernjsPluginOptions { /** Zephyr build target, including the `tap-app` mini-app artifact family. */ target?: ZephyrBuildTarget; wait_for_index_html?: boolean; hooks?: ZephyrBuildHooks; /** Override automatic CSR/SSR detection for Modern.js compiler arrays. */ snapshotType?: 'csr' | 'ssr'; /** Server entrypoint relative to the shared compiler output root. */ entrypoint?: string; } export declare const withZephyr: (zephyrOptions?: ZephyrModernjsPluginOptions) => CliPlugin<AppTools>; //# sourceMappingURL=with-zephyr.d.ts.map