@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.
11 lines (10 loc) • 403 B
TypeScript
import { Compiler, Loader, Plugin } from 'webpack';
import { Options } from './babel.multi.target.options';
export declare const BABEL_LOADER = "babel-loader";
export declare class BabelMultiTargetPlugin implements Plugin {
private readonly options;
private readonly targets;
constructor(options?: Options);
apply(compiler: Compiler): void;
static loader(loader?: Loader): Loader;
}