UNPKG

@regru/webpack-babel-multi-target-plugin

Version:

A Webpack plugin that works with Babel to allow deployment of ES2015 builds targeted to modern browsers, with an ES5 fallback for legacy browsers.

15 lines (14 loc) 484 B
import { HtmlTag } from 'html-webpack-plugin'; import { Compiler, Plugin } from 'webpack'; import { BabelTarget } from './babel-target'; import { TargetedChunkMap } from './targeted.chunk'; /** * @internalapi */ export declare class BabelMultiTargetHtmlUpdater implements Plugin { private targets; constructor(targets: BabelTarget[]); updateScriptTags(chunkMap: TargetedChunkMap, tags: HtmlTag[]): void; private mapChunkNames; apply(compiler: Compiler): void; }