UNPKG

@berun/fuse-box-plugin-babel

Version:

Fuse Box Babel Plugin

35 lines (34 loc) 906 B
import { File, WorkFlowContext, Plugin } from 'fuse-box'; /** * @export * @class FuseBoxBabelPlugin * @implements {Plugin} */ export declare class BabelPluginClass implements Plugin { /** * We can add tsx and ts here as well * Because Babel won't capture it just being a Plugin * Typescript files are handled before any external plugin is executed */ extensions: Array<string>; test: RegExp; context: WorkFlowContext; private limit2project; private config?; private configPrinted; private configLoaded; constructor(opts?: any); /** * @see this.init */ private handleBabelRc; /** * @param {WorkFlowContext} context */ init(context: WorkFlowContext): void; /** * @param {File} file */ transform(file: File, ast: any): void; } export declare const BabelPlugin: (opts?: any) => BabelPluginClass;