rollup-plugin-chrome-extension
Version:
Build Chrome Extensions with this Rollup plugin.
16 lines (15 loc) • 622 B
TypeScript
/**
* This options object allows fine-tuning of the dynamic import wrapper.
*
* @export
* @interface DynamicImportWrapper
*/
export interface DynamicImportWrapperOptions {
/** How long to delay wake events after dynamic import has completed */
eventDelay?: number;
/** Limit which wake events to capture. Use if the default event discovery is too slow. */
wakeEvents?: string[];
/** API namespaces to exclude from automatic detection */
excludeNames?: string[];
}
export declare function prepImportWrapperScript({ eventDelay, wakeEvents, excludeNames, }: DynamicImportWrapperOptions): string;