typescript-react-loadable-plugin
Version:
A react-loadable plugin to add modules & webpack for typescript
20 lines (17 loc) • 529 B
text/typescript
/*!
* Copyright 2019 acrazing <joking.young@gmail.com>. All rights reserved.
* @since 2019-10-31 19:19:08
*/
export interface ReactLoadableTransformerOptions {
getWebpackChunkName: (request: string, context: string) => string;
moduleKind: 'userRequest' | 'webpackChunkName' | 'webpackModuleId';
identifiers: string[];
webpack: boolean;
modules: boolean;
webpackChunkName: boolean;
}
export interface WebpackCommentOptions {
webpackChunkName?: string;
webpackPreload?: boolean;
webpackPrefetch?: boolean;
}