babel-plugin-ng-hot-reload
Version:
27 lines (26 loc) • 828 B
TypeScript
/**
* Note: Please make sure to only use syntax which is compatible with IE11 here
* because the transformation runs after @babel/env!
*/
import * as Babel from '@babel/core';
declare type BabelT = typeof Babel;
declare type PluginOptions = {
angularGlobal: false | string;
forceRefresh: boolean;
preserveState: boolean;
angularReference: string;
};
export default function (babel: BabelT, { angularGlobal, forceRefresh, preserveState, angularReference, }: PluginOptions): {
name: string;
post(): void;
visitor: {
Program: {
exit(path: any): void;
};
ImportDeclaration(path: any): void;
ExportNamedDeclaration(path: any): void;
ExportDefaultDeclaration(path: any): void;
ExportAllDeclaration(path: any): void;
};
};
export {};