@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.
12 lines (11 loc) • 311 B
TypeScript
import { Compiler, Plugin } from 'webpack';
import { BabelTarget } from './babel-target';
/**
* @internalapi
*/
export declare class BabelTargetEntryOptionPlugin implements Plugin {
private targets;
constructor(targets: BabelTarget[]);
private itemToPlugin;
apply(compiler: Compiler): void;
}