UNPKG

@appshell/manifest-webpack-plugin

Version:

Webpack plugin used to generate a global Appshell configuration for micro-frontends built with Module Federation

30 lines 1.19 kB
import { AppshellConfig, AppshellTemplate, ModuleFederationPluginOptions } from '@appshell/config'; import { Compiler, WebpackOptionsNormalized, WebpackPluginInstance } from 'webpack'; type AppManifestPluginOptions = { config?: string; }; type ModuleFederationPluginInstance = WebpackPluginInstance & { _options?: ModuleFederationPluginOptions; }; /** * AppshellManifestPlugin produces app manifests that will subsequently be * compiled into the global Appshell configuration. */ export default class AppshellManifestPlugin { defaults: { config: string; }; options: AppManifestPluginOptions; constructor(options?: AppManifestPluginOptions); static findModuleFederationPlugin(webpackConfig: WebpackOptionsNormalized): ModuleFederationPluginInstance | undefined; static createTemplate(config: AppshellConfig, plugin: ModuleFederationPluginInstance): AppshellTemplate; static validate(template: AppshellTemplate): boolean; /** * Apply the plugin * @param {Compiler} compiler the compiler instance * @returns {void} */ apply(compiler: Compiler): void; } export {}; //# sourceMappingURL=AppshellManifestPlugin.d.ts.map