UNPKG

478 BTypeScriptView Raw
1import webpack = require('webpack');
2
3export interface Bundle {
4 id: string;
5 name: string | null;
6 file: string;
7 publicPath: string;
8}
9
10export interface Manifest {
11 [moduleId: string]: Bundle[];
12}
13
14export interface ReactLoadablePluginOptions {
15 filename: string;
16}
17
18export class ReactLoadablePlugin extends webpack.Plugin {
19 constructor(opts?: ReactLoadablePluginOptions);
20}
21
22export function getBundles(manifest: Manifest, moduleIds: string[]): Bundle[];