/** @hidden */ /** * Copyright (c) 2019, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import { DynamicComponentConfig, StylesheetConfig, TransformOptions } from '@lwc/compiler/dist/types/options'; import { CompilerDiagnostic } from '@lwc/errors'; import { ModuleFormat, Plugin } from 'rollup'; export interface InlineConfig { descriptor: string; exclude?: string[]; } interface AmdFormatConfig { define: string; } export interface FormatConfig { amd: AmdFormatConfig; } export declare type CompilerPlugin = Plugin; export declare type LwcPluginOptions = { rootDir?: string; modules?: string[]; exclude?: any[]; stylesheetConfig?: StylesheetConfig; experimentalDynamicComponent?: DynamicComponentConfig; }; /** * @noInheritDoc */ export interface RuntimeCompilerOptions extends Partial { files?: BundleFiles; input?: string; format?: ModuleFormat; formatConfig?: FormatConfig; plugins?: CompilerPlugin[]; external?: Function | string[]; inlineConfig?: (string | InlineConfig)[]; lwcOptions?: LwcPluginOptions; exposedModules?: string[]; /** * An optional directory prefix that contains the specified components * files. Only used when the component that is the compiler's entry point. */ baseDir?: string; } /** * @noInheritDoc */ export interface NormalizedRuntimeCompilerOptions extends Required { outputConfig: OutputConfig; } export interface RuntimeCompilerDiagnostic extends CompilerDiagnostic { originalError: Error; } export interface DynamicImport { specifier: string; pivots?: string[]; } export interface RuntimeCompilerMetadata { dependencies: string[]; dynamicImports: DynamicImport[]; } export interface CompileResult { code: string; map: SourceMap | null; outputConfig: OutputConfig; } export interface BundleFiles { [filename: string]: string; } export declare type SourceMap = any; /** * @noInheritDoc */ export interface RuntimeCompilerOutput { success: boolean; diagnostics: CompilerDiagnostic[]; result?: CompileResult; version: string; metadata?: RuntimeCompilerMetadata; } export interface OutputConfig { compat?: boolean; minify?: boolean; sourcemap?: boolean; env?: { NODE_ENV?: string; }; } export {}; //# sourceMappingURL=interfaces.d.ts.map