@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.
18 lines (17 loc) • 602 B
TypeScript
import { compilation, Compiler, Plugin } from 'webpack';
import Chunk = compilation.Chunk;
import Compilation = compilation.Compilation;
import { BabelTarget } from './babel-target';
/**
* @internalapi
*/
export declare class NormalizeCssChunksPlugin implements Plugin {
private targets;
constructor(targets: BabelTarget[]);
apply(compiler: Compiler): void;
extractCssChunks(compilation: Compilation, chunks: Chunk[]): void;
private findEntryName;
private findEntryModule;
private getEntryFromModule;
cleanCssChunks(compilation: Compilation, chunks: Chunk[]): void;
}