UNPKG

@modern-js/module-tools-v2

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

1,360 lines 33.5 kB
export declare const source: { target: string; schema: { type: string; additionalProperties: boolean; properties: { alias: { typeof: string[]; }; envVars: { type: string; }; globalVars: { type: string; }; }; }; }; export declare const targets: string[]; export declare const presets: string[]; export declare const bundleBuildConfigProperties: { buildType: { enum: string[]; }; format: { enum: string[]; }; }; export declare const bundlelessBuildConfigProperties: { buildType: { enum: string[]; }; format: { enum: string[]; }; }; export declare const buildConfig: { target: string; schema: { if: { type: string; }; then: { items: { type: string; if: { properties: { buildType: { enum: string[]; }; format: { enum: string[]; }; }; }; then: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; else: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; }[]; }; else: { type: string; if: { properties: { buildType: { enum: string[]; }; format: { enum: string[]; }; }; }; then: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; else: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; }; }; }; export declare const buildPreset: { target: string; schema: { if: { type: string; }; then: { enum: string[]; }; else: { typeof: string; }; }; }; export declare const schema: ({ target: string; schema: { type: string; additionalProperties: boolean; properties: { alias: { typeof: string[]; }; envVars: { type: string; }; globalVars: { type: string; }; }; }; } | { target: string; schema: { if: { type: string; }; then: { items: { type: string; if: { properties: { buildType: { enum: string[]; }; format: { enum: string[]; }; }; }; then: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; else: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; }[]; }; else: { type: string; if: { properties: { buildType: { enum: string[]; }; format: { enum: string[]; }; }; }; then: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; else: { properties: { target: { enum: string[]; }; sourceMap: { enum: (string | boolean)[]; }; asset: { type: string; }; jsx: { enum: string[]; }; bundleOptions: { type: string; properties: { entry: { type: string[]; }; splitting: { type: string; }; externals: { type: string; items: { anyOf: ({ instanceof: string; typeof?: undefined; } | { typeof: string; instanceof?: undefined; })[]; }; }; platform: { enum: string[]; }; minify: { enum: (string | boolean)[]; }; skipDeps: { if: { type: string; }; then: { properties: { dependencies: { type: string; }; peerDependencies: { type: string; }; }; }; else: { type: string; }; }; terserOptions: { type: string; }; }; }; bundlelessOptions: { type: string; properties: { style: { type: string; properties: { compileMode: { enum: (string | boolean)[]; }; path: { type: string; }; }; }; assets: { type: string; properties: { path: { type: string; }; }; }; }; }; dts: { if: { type: string; }; then: { properties: { distPath: { type: string; }; tsconfigPath: { type: string; }; }; }; else: { type: string; }; }; path: { type: string; }; copy: { type: string; properties: { patterns: { type: string; items: { type: string; properties: { from: { type: string; }; to: { type: string; }; context: { type: string; }; globOptions: { type: string; }; }; }; }; options: { type: string; properties: { concurrency: { type: string; }; }; }; }; }; buildType: { enum: string[]; }; format: { enum: string[]; }; }; additionalProperties: boolean; }; }; }; } | { target: string; schema: { if: { type: string; }; then: { enum: string[]; }; else: { typeof: string; }; }; })[];