@modern-js/module-tools 0.0.0-nightly-20231218170633 → 0.0.0-nightly-20231219170633

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/builder/clear.js +21 -14
  2. package/dist/builder/esbuild/adapter.js +1 -1
  3. package/dist/utils/dts.js +9 -2
  4. package/package.json +14 -14
  5. package/dist/build.d.ts +0 -3
  6. package/dist/builder/build.d.ts +0 -13
  7. package/dist/builder/clear.d.ts +0 -2
  8. package/dist/builder/copy.d.ts +0 -17
  9. package/dist/builder/dts/index.d.ts +0 -2
  10. package/dist/builder/dts/rollup.d.ts +0 -4
  11. package/dist/builder/dts/tsc.d.ts +0 -3
  12. package/dist/builder/esbuild/adapter.d.ts +0 -3
  13. package/dist/builder/esbuild/hook.d.ts +0 -4
  14. package/dist/builder/esbuild/index.d.ts +0 -35
  15. package/dist/builder/esbuild/resolve.d.ts +0 -18
  16. package/dist/builder/esbuild/sourcemap.d.ts +0 -16
  17. package/dist/builder/esbuild/transform.d.ts +0 -7
  18. package/dist/builder/esbuild/watch.d.ts +0 -2
  19. package/dist/builder/esbuild/write-file.d.ts +0 -2
  20. package/dist/builder/feature/asset.d.ts +0 -19
  21. package/dist/builder/feature/format-cjs.d.ts +0 -5
  22. package/dist/builder/feature/index.d.ts +0 -2
  23. package/dist/builder/feature/json.d.ts +0 -5
  24. package/dist/builder/feature/redirect.d.ts +0 -5
  25. package/dist/builder/feature/style/index.d.ts +0 -5
  26. package/dist/builder/feature/style/lessAliasPlugin.d.ts +0 -12
  27. package/dist/builder/feature/style/lessRender.d.ts +0 -2
  28. package/dist/builder/feature/style/postcssTransformer.d.ts +0 -6
  29. package/dist/builder/feature/style/postcssUrlPlugin.d.ts +0 -6
  30. package/dist/builder/feature/style/sassRender.d.ts +0 -2
  31. package/dist/builder/feature/style/transformStyle.d.ts +0 -13
  32. package/dist/builder/feature/style/utils.d.ts +0 -18
  33. package/dist/builder/feature/swc.d.ts +0 -9
  34. package/dist/builder/feature/terser.d.ts +0 -5
  35. package/dist/builder/index.d.ts +0 -8
  36. package/dist/builder/platform.d.ts +0 -4
  37. package/dist/cli.d.ts +0 -3
  38. package/dist/command.d.ts +0 -7
  39. package/dist/config/defineConfig.d.ts +0 -8
  40. package/dist/config/merge.d.ts +0 -9
  41. package/dist/config/normalize.d.ts +0 -8
  42. package/dist/config/transformLegacyConfig.d.ts +0 -25
  43. package/dist/config/valid.d.ts +0 -3
  44. package/dist/constants/build.d.ts +0 -6
  45. package/dist/constants/color.d.ts +0 -4
  46. package/dist/constants/dts.d.ts +0 -2
  47. package/dist/constants/file.d.ts +0 -3
  48. package/dist/constants/legacy-preset.d.ts +0 -18
  49. package/dist/constants/loader.d.ts +0 -2
  50. package/dist/constants/log.d.ts +0 -3
  51. package/dist/constants/preset.d.ts +0 -26
  52. package/dist/debug.d.ts +0 -4
  53. package/dist/dev.d.ts +0 -6
  54. package/dist/error.d.ts +0 -33
  55. package/dist/hooks/build.d.ts +0 -22
  56. package/dist/hooks/dev.d.ts +0 -13
  57. package/dist/hooks/index.d.ts +0 -30
  58. package/dist/hooks/misc.d.ts +0 -13
  59. package/dist/index.d.ts +0 -7
  60. package/dist/locale/en.d.ts +0 -45
  61. package/dist/locale/index.d.ts +0 -92
  62. package/dist/locale/zh.d.ts +0 -45
  63. package/dist/plugins.d.ts +0 -2
  64. package/dist/types/color.d.ts +0 -1
  65. package/dist/types/command.d.ts +0 -12
  66. package/dist/types/config/copy.d.ts +0 -15
  67. package/dist/types/config/dev.d.ts +0 -8
  68. package/dist/types/config/index.d.ts +0 -166
  69. package/dist/types/config/style.d.ts +0 -64
  70. package/dist/types/context.d.ts +0 -5
  71. package/dist/types/dts.d.ts +0 -46
  72. package/dist/types/esbuild.d.ts +0 -107
  73. package/dist/types/hooks.d.ts +0 -31
  74. package/dist/types/index.d.ts +0 -27
  75. package/dist/types/legacyConfig/index.d.ts +0 -20
  76. package/dist/types/legacyConfig/output.d.ts +0 -61
  77. package/dist/types/legacyConfig/source.d.ts +0 -12
  78. package/dist/types/legacyConfig/tools.d.ts +0 -53
  79. package/dist/utils/assert.d.ts +0 -5
  80. package/dist/utils/builder.d.ts +0 -19
  81. package/dist/utils/common.d.ts +0 -5
  82. package/dist/utils/dts.d.ts +0 -10
  83. package/dist/utils/hash.d.ts +0 -2
  84. package/dist/utils/index.d.ts +0 -11
  85. package/dist/utils/input.d.ts +0 -8
  86. package/dist/utils/log.d.ts +0 -1
  87. package/dist/utils/map.d.ts +0 -13
  88. package/dist/utils/onExit.d.ts +0 -1
  89. package/dist/utils/outExtension.d.ts +0 -9
  90. package/dist/utils/print.d.ts +0 -14
  91. package/dist/utils/style.d.ts +0 -13
@@ -1,107 +0,0 @@
1
- /// <reference types="node" />
2
- import type { BuildContext, BuildOptions, OnLoadArgs, OnLoadResult, BuildResult, ImportKind } from 'esbuild';
3
- import type { AsyncSeriesBailHook, AsyncSeriesWaterfallHook } from 'tapable';
4
- import { FSWatcher } from '@modern-js/utils';
5
- import { BaseBuildConfig } from './config';
6
- import { ModuleTools, PluginAPI } from '.';
7
- export interface SourceMap {
8
- mappings: string;
9
- names: string[];
10
- sources: (string | null)[];
11
- version: number;
12
- sourcesContent?: (string | null)[];
13
- }
14
- export type LoadResult = Pick<OnLoadResult, 'contents' | 'loader' | 'resolveDir'> & {
15
- map?: SourceMap;
16
- };
17
- export interface BuilderHooks {
18
- /**
19
- * Equal to esbuild#onLoad
20
- */
21
- load: AsyncSeriesBailHook<[OnLoadArgs], LoadResult | undefined | void>;
22
- /**
23
- * Transform code after it is loaded.
24
- */
25
- transform: AsyncSeriesWaterfallHook<Source>;
26
- /**
27
- * Modify the chunk
28
- */
29
- renderChunk: AsyncSeriesWaterfallHook<[Chunk]>;
30
- }
31
- export type Context = {
32
- config: BaseBuildConfig;
33
- watch: boolean;
34
- root: string;
35
- api: PluginAPI<ModuleTools>;
36
- };
37
- export interface ICompiler {
38
- reBuild: (type: 'link' | 'change', config: BaseBuildConfig) => Promise<void>;
39
- css_resolve: (id: string, dir: string) => string;
40
- node_resolve: (id: string, dir: string, kind: ImportKind) => string | false;
41
- init: () => Promise<void>;
42
- watcher?: FSWatcher;
43
- instance?: BuildContext;
44
- result?: BuildResult;
45
- reBuildCount: number;
46
- buildOptions: BuildOptions;
47
- context: Context;
48
- config: BaseBuildConfig;
49
- hooks: BuilderHooks;
50
- api: PluginAPI<ModuleTools>;
51
- outputChunk: Map<string, Chunk>;
52
- virtualModule: Map<string, string>;
53
- build: (() => Promise<void>) & (() => Promise<void>);
54
- emitAsset: ((name: string, chunk: AssetChunk) => void) & ((name: string, chunk: JsChunk) => void) & ((name: string, chunk: string) => void);
55
- watchedFiles: Set<string>;
56
- addWatchFile: (id: string) => void;
57
- getTransformContext: (path: string) => ITransformContext;
58
- getSourcemapContext: (path: string) => ISourcemapContext;
59
- close: () => Promise<void>;
60
- }
61
- export interface ISourcemapContext {
62
- addSourceMap: (pluginId: number, map?: SourceMap) => void;
63
- getInlineSourceMap: () => string;
64
- getSourceMap: () => SourceMap | undefined;
65
- getSourceMapChain: () => SourceMap[];
66
- genPluginId: (id: string) => number;
67
- }
68
- export interface ITransformContext extends ISourcemapContext {
69
- addTransformResult: (pluginId: number, result: CacheValue) => void;
70
- getValidCache: (pluginId: number, code: string) => undefined | CacheValue;
71
- }
72
- export type Source = {
73
- code: string;
74
- map?: SourceMap;
75
- path: string;
76
- loader?: string;
77
- };
78
- export interface CacheValue extends Source {
79
- originCode: string;
80
- }
81
- export type AssetChunk = {
82
- type: 'asset';
83
- contents: string | Buffer;
84
- entryPoint?: string;
85
- /**
86
- * absolute file path
87
- */
88
- fileName: string;
89
- originalFileName?: string;
90
- };
91
- export type JsChunk = {
92
- type: 'chunk';
93
- contents: string;
94
- entryPoint?: string;
95
- /**
96
- * absolute file path
97
- */
98
- fileName: string;
99
- map?: SourceMap;
100
- modules?: Record<string, any>;
101
- originalFileName?: string;
102
- };
103
- export type Chunk = AssetChunk | JsChunk;
104
- export declare const enum ChunkType {
105
- chunk = "chunk",
106
- asset = "asset"
107
- }
@@ -1,31 +0,0 @@
1
- import { DevToolData as BaseDevToolData } from '@modern-js/core';
2
- import { registerHook } from '../hooks';
3
- import type { BaseBuildConfig, BuildConfig, BuildType } from './config';
4
- import type { DevCommandOptions, BuildCommandOptions } from './command';
5
- export interface BuildTaskResult {
6
- status: 'success' | 'fail';
7
- message?: string;
8
- config: BaseBuildConfig;
9
- }
10
- export interface BuildResult {
11
- status: 'success' | 'fail';
12
- message?: string;
13
- config: BuildConfig;
14
- commandOptions: BuildCommandOptions;
15
- totalDuration: number;
16
- }
17
- export interface BuildPlatformResult {
18
- status: 'success' | 'fail';
19
- message: string | Error | null;
20
- }
21
- export type DevToolData = BaseDevToolData<DevCommandOptions>;
22
- export type PromptResult = {
23
- choiceDevTool: string;
24
- } & Record<string, any>;
25
- export type ModuleToolsHooks = typeof registerHook;
26
- export interface WatchJsHookContext {
27
- buildConfig: BaseBuildConfig;
28
- }
29
- export interface WatchDtsHookContext {
30
- buildType: BuildType;
31
- }
@@ -1,27 +0,0 @@
1
- import type { NormalizedConfig, UserConfig } from '@modern-js/core';
2
- import type { ModuleToolsHooks } from './hooks';
3
- import type { ModuleExtraConfig } from './config';
4
- import type { ModuleToolsLegacyUserConfig, ModuleToolsLegacyNormalizedConfig } from './legacyConfig';
5
- export * from './hooks';
6
- export * from './command';
7
- export * from './config';
8
- export * from './legacyConfig';
9
- export * from './dts';
10
- export * from './context';
11
- export * from './esbuild';
12
- export type { CliPlugin, IAppContext, PluginAPI } from '@modern-js/core';
13
- export type ModuleTools = {
14
- hooks: ModuleToolsHooks;
15
- userConfig: ModuleExtraConfig;
16
- normalizedConfig: Required<ModuleExtraConfig>;
17
- };
18
- export type LegacyModuleTools = {
19
- hooks: ModuleToolsHooks;
20
- userConfig: ModuleToolsLegacyUserConfig;
21
- normalizedConfig: ModuleToolsLegacyNormalizedConfig;
22
- };
23
- export type ModuleUserConfig = UserConfig<ModuleTools>;
24
- export type ModuleLegacyUserConfig = UserConfig<LegacyModuleTools>;
25
- export type ModuleNormalizedConfig = NormalizedConfig<ModuleTools>;
26
- export type ModuleLegacyNormalizedConfig = NormalizedConfig<LegacyModuleTools>;
27
- export type ModuleConfigParams = ModuleUserConfig | Promise<ModuleUserConfig> | ((env: any) => ModuleUserConfig | Promise<ModuleUserConfig>);
@@ -1,20 +0,0 @@
1
- import type { OutputLegacyUserConfig } from './output';
2
- import type { SourceLegacyUserConfig } from './source';
3
- import type { ToolsLegacyUserConfig } from './tools';
4
- export type { OutputLegacyUserConfig } from './output';
5
- export type { SourceLegacyUserConfig } from './source';
6
- export type { ToolsLegacyUserConfig } from './tools';
7
- export interface RuntimeLegacyConfig {
8
- [name: string]: any;
9
- }
10
- export interface RuntimeByEntriesLegacyConfig {
11
- [name: string]: RuntimeLegacyConfig;
12
- }
13
- export type ModuleToolsLegacyUserConfig = {
14
- source?: SourceLegacyUserConfig;
15
- output?: OutputLegacyUserConfig;
16
- tools?: ToolsLegacyUserConfig;
17
- runtime?: RuntimeLegacyConfig;
18
- legacy?: boolean;
19
- };
20
- export type ModuleToolsLegacyNormalizedConfig = Required<ModuleToolsLegacyUserConfig>;
@@ -1,61 +0,0 @@
1
- import { Externals, Minify, Platform } from '../config';
2
- export type LegacyBuildPreset = 'npm-library' | 'npm-library-with-umd' | 'npm-component' | 'npm-component-with-umd';
3
- export type LegacyFormat = 'esm' | 'cjs' | 'umd';
4
- export type LegacyTarget = 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'esnext';
5
- export type LegacyBuildType = 'bundle' | 'bundleless';
6
- export type LegacySourceMap = boolean | 'inline' | 'external';
7
- export type LegacyBundleOptions = {
8
- entry?: Record<string, string>;
9
- platform?: Platform;
10
- splitting?: boolean;
11
- minify?: Minify;
12
- externals?: Externals;
13
- skipDeps?: boolean;
14
- getModuleId?: (moduleName: string) => string | undefined;
15
- };
16
- export type LegacyBundlelessOptions = {
17
- sourceDir?: string;
18
- style?: {
19
- compileMode?: 'all' | 'only-compiled-code' | /* may be will be deprecated */ 'only-source-code' | false;
20
- path?: string;
21
- };
22
- static?: {
23
- path?: string;
24
- };
25
- };
26
- export type LegacyBaseBuildConfig = {
27
- format?: LegacyFormat;
28
- target?: LegacyTarget;
29
- sourceMap?: LegacySourceMap;
30
- buildType?: LegacyBuildType;
31
- bundleOptions?: LegacyBundleOptions;
32
- bundlelessOptions?: LegacyBundlelessOptions;
33
- tsconfig?: string;
34
- enableDts?: boolean;
35
- dtsOnly?: boolean;
36
- outputPath?: string;
37
- };
38
- export type LegacyBuildConfig = LegacyBaseBuildConfig | LegacyBaseBuildConfig[];
39
- export type JsSyntaxType = 'CJS+ES6' | 'ESM+ES5' | 'ESM+ES6';
40
- export interface PackageFields {
41
- main?: JsSyntaxType;
42
- 'jsnext:modern'?: JsSyntaxType;
43
- module?: JsSyntaxType;
44
- }
45
- export type OutputLegacyUserConfig = {
46
- jsPath?: string;
47
- path?: string;
48
- copy?: Array<Record<string, unknown> & {
49
- from: string;
50
- }>;
51
- disableTsChecker?: boolean;
52
- /** @deprecated Use the `buildConfig.bundlelessOptions.static.path` instead . */
53
- assetsPath?: string;
54
- /** @deprecated Use the `buildConfig.sourceMap` instead */
55
- disableSourceMap?: boolean;
56
- buildPreset?: LegacyBuildPreset;
57
- buildConfig?: LegacyBuildConfig;
58
- importStyle?: 'source-code' | 'compiled-code';
59
- packageMode?: 'universal-js' | 'universal-js-lite' | 'browser-js' | 'browser-js-lite' | 'node-js';
60
- packageFields?: PackageFields;
61
- };
@@ -1,12 +0,0 @@
1
- import type { AliasOption } from '../config';
2
- export type SourceLegacyUserConfig = {
3
- alias?: AliasOption;
4
- envVars?: Array<string>;
5
- globalVars?: Record<string, string>;
6
- jsxTransformRuntime?: 'automatic' | 'classic';
7
- /**
8
- * @deprecated designSystem is no longer required.
9
- * If you are using Tailwind CSS, you can now use the `theme` option of Tailwind CSS, they are the same.
10
- */
11
- designSystem?: Record<string, any>;
12
- };
@@ -1,53 +0,0 @@
1
- import type { JestConfig } from '@modern-js/types';
2
- import type { AcceptedPlugin as PostCSSPlugin } from 'postcss';
3
- import type { LessConfig, SassConfig } from '../config';
4
- export type PostCSSOptions = {
5
- to?: string;
6
- from?: string;
7
- map?: any;
8
- syntax?: any;
9
- parser?: any;
10
- plugins?: PostCSSPlugin[];
11
- stringifier?: any;
12
- };
13
- export type PostCSSLoaderOptions = {
14
- /**
15
- * Enable PostCSS Parser support in CSS-in-JS. If you use JS styles the postcss-js parser, add the execute option.
16
- */
17
- execute?: boolean;
18
- /**
19
- * By default generation of source maps depends on the devtool option. All values enable source map generation except eval and false value.
20
- */
21
- sourceMap?: boolean;
22
- /**
23
- * The special implementation option determines which implementation of PostCSS to use.
24
- */
25
- implementation?: unknown;
26
- /**
27
- * Allows to set PostCSS options and plugins.
28
- */
29
- postcssOptions?: PostCSSOptions;
30
- };
31
- export type PostCSSConfigUtils = {
32
- addPlugins: (plugins: PostCSSPlugin | PostCSSPlugin[]) => void;
33
- };
34
- interface ToolsConfig {
35
- speedy?: any | ((config: any) => any);
36
- }
37
- export type PostCSSFunction = (options: PostCSSLoaderOptions, utils: PostCSSConfigUtils) => PostCSSLoaderOptions | void;
38
- export type ToolsLegacyUserConfig = {
39
- babel?: any;
40
- less?: LessConfig;
41
- lodash?: any;
42
- postcss?: PostCSSLoaderOptions | PostCSSFunction;
43
- sass?: SassConfig;
44
- speedy?: ToolsConfig['speedy'] | Array<NonNullable<ToolsConfig['speedy']>>;
45
- /**
46
- * The configuration of `tools.tailwindcss` is provided by `tailwindcss` plugin.
47
- * Please use `yarn new` or `pnpm new` to enable the corresponding capability.
48
- * @requires `tailwindcss` plugin
49
- */
50
- tailwindcss?: Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
51
- jest?: JestConfig | ((jestConfig: JestConfig) => JestConfig);
52
- };
53
- export {};
@@ -1,5 +0,0 @@
1
- export declare function isStyleExt(path: string): boolean;
2
- export declare function isJsExt(path: string): boolean;
3
- export declare function isJsLoader(loader?: string): boolean;
4
- export declare function isTsExt(path: string): boolean;
5
- export declare function isTsLoader(loader?: string): boolean;
@@ -1,19 +0,0 @@
1
- import type { ExternalHelpers } from '../types/config';
2
- type Query = Record<string, string | boolean>;
3
- type ResolveResult = {
4
- originalFilePath: string;
5
- query: Query;
6
- rawQuery?: string;
7
- };
8
- export declare const getAllDeps: <T>(appDirectory: string, options?: {
9
- dependencies?: boolean;
10
- devDependencies?: boolean;
11
- peerDependencies?: boolean;
12
- }) => Promise<string[]>;
13
- export declare const checkSwcHelpers: (options: {
14
- appDirectory: string;
15
- externalHelpers: ExternalHelpers;
16
- }) => Promise<void>;
17
- export declare const normalizeSlashes: (file: string) => string;
18
- export declare const resolvePathAndQuery: (originalPath: string) => ResolveResult;
19
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * transform ['a', 'b'] to { a: undefined, b: undefined }
3
- */
4
- export declare const transformUndefineObject: (arr: string[]) => Record<string, undefined>;
5
- export declare function mapValue<T = any, U = any>(obj: Record<string, T>, mapper: (x: T) => U): Record<string, U>;
@@ -1,10 +0,0 @@
1
- import type { ITsconfig, GeneratorDtsConfig, BuildType, TsTarget } from '../types';
2
- export declare const getProjectTsconfig: (tsconfigPath: string) => Promise<ITsconfig>;
3
- export declare function detectTSVersion(appDirectory?: string): Promise<number | undefined>;
4
- export declare const getTscBinPath: (appDirectory: string) => Promise<string>;
5
- export declare const processDtsFilesAfterTsc: (config: GeneratorDtsConfig) => Promise<void>;
6
- export declare const printOrThrowDtsErrors: (error: unknown, options: {
7
- abortOnError?: boolean;
8
- buildType: BuildType;
9
- }) => Promise<void>;
10
- export declare const tsTargetAtOrAboveES2022: (target: TsTarget) => boolean;
@@ -1,2 +0,0 @@
1
- /// <reference types="node" />
2
- export declare function getHash(content: Buffer | string, encoding: any, type?: string): string;
@@ -1,11 +0,0 @@
1
- export * from './assert';
2
- export * from './builder';
3
- export * from './common';
4
- export * from './dts';
5
- export * from './hash';
6
- export * from './input';
7
- export * from './log';
8
- export * from './map';
9
- export * from './print';
10
- export * from './style';
11
- export * from './outExtension';
@@ -1,8 +0,0 @@
1
- import { Input } from '../types';
2
- export declare const getDefaultIndexEntry: ({ isTsProject, appDirectory, }: {
3
- isTsProject: boolean;
4
- appDirectory: string;
5
- }) => Promise<string[]>;
6
- export declare const normalizeInput: (input: Input, appDirectory: string, enableSvgr: boolean) => Promise<string[] | {
7
- [name: string]: string;
8
- }>;
@@ -1 +0,0 @@
1
- export declare const withLogTitle: (titleText: string, message: string) => string;
@@ -1,13 +0,0 @@
1
- import type { RawSourceMap } from '@ampproject/remapping';
2
- import type { SourceMap } from '../types';
3
- interface Options {
4
- needSourceMap: boolean;
5
- }
6
- export declare function normalizeSourceMap(map: string | RawSourceMap | undefined, opts?: Options): SourceMap | undefined;
7
- export type MergeMapResult = {
8
- toString: () => string;
9
- toMap: () => SourceMap;
10
- toComment: () => string;
11
- };
12
- export declare function mergeMaps(mapList: SourceMap[]): MergeMapResult;
13
- export {};
@@ -1 +0,0 @@
1
- export declare const addExitListener: (fn: () => Promise<void>) => Promise<void>;
@@ -1,9 +0,0 @@
1
- import type { Format } from '../types';
2
- export declare const getDefaultOutExtension: (options: {
3
- format: Format;
4
- root: string;
5
- autoExtension: boolean;
6
- }) => {
7
- jsExtension: string;
8
- dtsExtension: string;
9
- };
@@ -1,14 +0,0 @@
1
- import type { RollupOutput } from '../../compiled/rollup/types/rollup';
2
- import { Chunk } from '../types';
3
- type Files = {
4
- name: string;
5
- size: number;
6
- };
7
- export declare const bundleFiles: Files[];
8
- export declare const bundlelessFiles: Files[];
9
- export declare const addOutputChunk: (outputChunk: Map<string, Chunk>, appDirectory: string, isBundle: boolean) => void;
10
- export declare const addRollupChunk: (rollupOutput: RollupOutput, appDirectory: string, distDir: string) => void;
11
- export declare const addDtsFiles: (distDir: string, appDirectory: string) => Promise<void>;
12
- export declare const printFileSize: () => void;
13
- export declare const printSucceed: (totalDuration: number) => void;
14
- export {};
@@ -1,13 +0,0 @@
1
- import type { PartialBaseBuildConfig, PostcssOptions, LessOptions, SassOptions } from '../types';
2
- export declare const getLessConfig: (config: PartialBaseBuildConfig) => Promise<LessOptions>;
3
- export declare const getSassConfig: (config: PartialBaseBuildConfig) => Promise<SassOptions>;
4
- export declare const getPostcssConfig: (config: PartialBaseBuildConfig) => Promise<PostcssOptions & {
5
- $$tools?: string | undefined;
6
- }>;
7
- export declare const getStyleConfig: (config: PartialBaseBuildConfig) => Promise<{
8
- less: LessOptions;
9
- sass: SassOptions;
10
- postcss: PostcssOptions & {
11
- $$tools?: string | undefined;
12
- };
13
- }>;