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.

21 lines (20 loc) 662 B
import * as webpack from 'webpack'; import Chunk = webpack.compilation.Chunk; import ChunkGroup = webpack.compilation.ChunkGroup; import { BabelTarget } from './babel-target'; export declare class TargetedChunk { private _target; readonly target: BabelTarget; readonly chunk: Chunk; readonly group: ChunkGroup; constructor(group: ChunkGroup, chunk: Chunk); } export declare class TargetedChunkMap { private publicPath; private innerMap; private targetedChunks; constructor(publicPath: string); get(key: string): TargetedChunk[]; set(key: string, group: ChunkGroup, chunk: Chunk): void; private getTargetedChunk; }