typescript-react-loadable-plugin
Version:
A react-loadable plugin to add modules & webpack for typescript
20 lines (19 loc) • 701 B
TypeScript
/*!
* Copyright 2019 acrazing <joking.young@gmail.com>. All rights reserved.
* @since 2019-10-31 19:20:27
*/
import ts from 'typescript';
import { ReactLoadableTransformerOptions } from './types';
export declare class State {
getWebpackChunkName: (request: string, context: string) => string;
webpackChunkName: boolean;
moduleKind: 'userRequest' | 'webpackChunkName' | 'webpackModuleId';
identifiers: Set<string>;
webpack: boolean;
modules: boolean;
transformContext: ts.TransformationContext;
sourceFile: ts.SourceFile;
sourceContext: string;
constructor(options: Partial<ReactLoadableTransformerOptions>);
setSourceFile(source: ts.SourceFile): void;
}