1 | import { TransformOptions } from '@babel/core';
|
2 | import { Configuration } from 'webpack';
|
3 | import { Options } from '@storybook/core-common';
|
4 | export declare function babel(config: TransformOptions, options: Options): Promise<TransformOptions>;
|
5 | export declare function babelDefault(config: TransformOptions): Promise<{
|
6 | presets: (string | object)[];
|
7 | plugins: (string | object)[];
|
8 | ast?: boolean;
|
9 | auxiliaryCommentAfter?: string;
|
10 | auxiliaryCommentBefore?: string;
|
11 | root?: string;
|
12 | rootMode?: "root" | "upward" | "upward-optional";
|
13 | configFile?: string | boolean;
|
14 | babelrc?: boolean;
|
15 | babelrcRoots?: string | boolean | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
16 | envName?: string;
|
17 | exclude?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
18 | code?: boolean;
|
19 | comments?: boolean;
|
20 | compact?: boolean | "auto";
|
21 | cwd?: string;
|
22 | caller?: import("@babel/core").TransformCaller;
|
23 | env?: {
|
24 | [index: string]: TransformOptions;
|
25 | };
|
26 | extends?: string;
|
27 | filename?: string;
|
28 | filenameRelative?: string;
|
29 | generatorOpts?: import("@babel/generator").GeneratorOptions;
|
30 | getModuleId?: (moduleName: string) => string;
|
31 | highlightCode?: boolean;
|
32 | ignore?: import("@babel/core").MatchPattern[];
|
33 | include?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
34 | inputSourceMap?: object;
|
35 | minified?: boolean;
|
36 | moduleId?: string;
|
37 | moduleIds?: boolean;
|
38 | moduleRoot?: string;
|
39 | only?: import("@babel/core").MatchPattern[];
|
40 | overrides?: TransformOptions[];
|
41 | parserOpts?: import("@babel/parser").ParserOptions;
|
42 | retainLines?: boolean;
|
43 | shouldPrintComment?: (commentContents: string) => boolean;
|
44 | sourceFileName?: string;
|
45 | sourceMaps?: boolean | "inline" | "both";
|
46 | sourceRoot?: string;
|
47 | sourceType?: "script" | "module" | "unambiguous";
|
48 | test?: string | RegExp | ((filename: string, context: import("@babel/core").MatchPatternContext) => boolean) | import("@babel/core").MatchPattern[];
|
49 | wrapPluginVisitorMethod?: (pluginAlias: string, visitorType: "enter" | "exit", callback: (path: import("@babel/traverse").NodePath<import("@babel/types").Node>, state: any) => void) => (path: import("@babel/traverse").NodePath<import("@babel/types").Node>, state: any) => void;
|
50 | }>;
|
51 | export declare function webpackFinal(config: Configuration, options: Options): Promise<Configuration>;
|