weapp-tailwindcss 5.3.6 → 5.4.0

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 (92) hide show
  1. package/README.md +3 -3
  2. package/README.zh-CN.md +4 -4
  3. package/dist/bundlers/shared/framework-postcss.d.ts +3 -0
  4. package/dist/bundlers/shared/generator-css/result-helpers.d.ts +1 -1
  5. package/dist/bundlers/shared/generator-css/source-resolver/single-source.d.ts +1 -1
  6. package/dist/bundlers/shared/generator-css/types.d.ts +3 -1
  7. package/dist/bundlers/shared/source-candidates/snapshot.d.ts +19 -0
  8. package/dist/bundlers/shared/source-candidates/source-priority.d.ts +1 -0
  9. package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +1 -0
  10. package/dist/bundlers/shared/source-candidates/views.d.ts +12 -0
  11. package/dist/bundlers/shared/style-requests.d.ts +1 -0
  12. package/dist/bundlers/vite/bundle-state.d.ts +9 -1
  13. package/dist/bundlers/vite/capability-profile.d.ts +18 -0
  14. package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +12 -0
  15. package/dist/bundlers/vite/hot-css-modules.d.ts +2 -2
  16. package/dist/bundlers/vite/shared/configured-css-entry-observer.d.ts +29 -0
  17. package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +8 -0
  18. package/dist/bundlers/vite/shared/framework-css-generation-queue.d.ts +1 -0
  19. package/dist/bundlers/vite/shared/framework-hmr-module-version.d.ts +9 -0
  20. package/dist/bundlers/vite/shared/framework-runtime-utils.d.ts +5 -0
  21. package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +12 -2
  22. package/dist/compiler/compilation-session-pool.d.ts +1 -0
  23. package/dist/compiler/framework-compiler-session.d.ts +21 -0
  24. package/dist/compiler/index.d.ts +1 -0
  25. package/dist/{context-DTLRADfE.cjs → compiler-C93NfxSe.cjs} +859 -11
  26. package/dist/{context-4ittVpgt.js → compiler-qDa3phIv.js} +764 -5
  27. package/dist/context/handlers.d.ts +1 -1
  28. package/dist/core/compiler/compiler.d.ts +2 -0
  29. package/dist/core/compiler/generation-cache.d.ts +30 -0
  30. package/dist/core/compiler/generation-state.d.ts +17 -0
  31. package/dist/core/compiler/index.d.ts +2 -0
  32. package/dist/core/compiler/root-store.d.ts +38 -0
  33. package/dist/core/compiler/snapshot.d.ts +35 -0
  34. package/dist/core/compiler/source-fingerprint.d.ts +3 -0
  35. package/dist/core/compiler/transforms.d.ts +15 -0
  36. package/dist/core/compiler/types.d.ts +69 -0
  37. package/dist/core.cjs +9 -8
  38. package/dist/core.d.ts +2 -1
  39. package/dist/core.js +2 -2
  40. package/dist/framework/index.d.ts +3 -1
  41. package/dist/framework.cjs +6 -1
  42. package/dist/framework.js +6 -1
  43. package/dist/{generator-EnTXLBlK.js → generator-C0m2S4WI.js} +3 -2
  44. package/dist/{generator-DKiYbTFR.cjs → generator-CKJ6sj1f.cjs} +3 -2
  45. package/dist/generator.cjs +1 -1
  46. package/dist/generator.js +1 -1
  47. package/dist/{gulp-CUysZjW3.cjs → gulp-CW6JGqVn.cjs} +14 -16
  48. package/dist/{gulp-DwtrU4V1.js → gulp-e2iWsmEK.js} +7 -7
  49. package/dist/gulp.cjs +1 -1
  50. package/dist/gulp.js +1 -1
  51. package/dist/{hmr-timing-utmOgn6p.js → hmr-timing-DgMgwSce.js} +367 -289
  52. package/dist/{hmr-timing-Cvh5UgnM.cjs → hmr-timing-n7QQKFp7.cjs} +4 -4
  53. package/dist/index.cjs +4 -4
  54. package/dist/index.js +4 -4
  55. package/dist/{pipeline-helpers-CyVXL3h6.cjs → pipeline-helpers-DoLQy44Q.cjs} +6 -6
  56. package/dist/postcss.cjs +1 -1
  57. package/dist/postcss.js +1 -1
  58. package/dist/presets.cjs +2 -3
  59. package/dist/presets.js +1 -1
  60. package/dist/rspack.cjs +2 -2
  61. package/dist/rspack.js +2 -2
  62. package/dist/{source-candidate-scan-signature-CDrLxVKu.js → source-candidate-scan-signature-B0lOMiwB.js} +3 -3
  63. package/dist/{source-candidate-scan-signature-BNt7NrrI.cjs → source-candidate-scan-signature-Chb-Zrwt.cjs} +5 -5
  64. package/dist/{tailwindcss-CexDJBhx.cjs → tailwindcss-BGlJ1m1l.cjs} +763 -5
  65. package/dist/{tailwindcss-ChnpCv25.js → tailwindcss-BSKl0FTD.js} +1 -1
  66. package/dist/{transform-CL-UZW1U.cjs → transform-C6k9zTQR.cjs} +12 -4
  67. package/dist/{transform-Bfi1_VgN.js → transform-DQhgAarN.js} +12 -4
  68. package/dist/typedoc.export.d.ts +1 -0
  69. package/dist/types/index.d.ts +1 -0
  70. package/dist/uni-app-x/component-local-style.d.ts +2 -0
  71. package/dist/uni-app-x/transform.d.ts +1 -0
  72. package/dist/uni-app-x/vite/asset-task.d.ts +21 -0
  73. package/dist/uni-app-x/vite/plugin-options.d.ts +8 -0
  74. package/dist/uni-app-x/vite/web-local-style.d.ts +2 -1
  75. package/dist/uni-app-x/vite.d.ts +1 -21
  76. package/dist/{v4-generation-core-Dhsu9Deu.cjs → v4-generation-core-B2sUkkgq.cjs} +378 -300
  77. package/dist/{vite-DMX5zoID.cjs → vite-B0IPgrvM.cjs} +807 -200
  78. package/dist/{vite-DJkhb8n1.js → vite-CcEb2SOl.js} +774 -165
  79. package/dist/vite.cjs +1 -1
  80. package/dist/vite.js +1 -1
  81. package/dist/weapp-tw-css-generation-loader.cjs +1 -1
  82. package/dist/weapp-tw-css-import-rewrite-loader.cjs +7 -7
  83. package/dist/{webpack-Cpy_yggg.cjs → webpack-B5vc13U_.cjs} +33 -35
  84. package/dist/{webpack-CzhrD9p3.js → webpack-BPA5I79o.js} +7 -7
  85. package/dist/webpack.cjs +1 -1
  86. package/dist/webpack.js +1 -1
  87. package/dist/wxml/utils.d.ts +1 -1
  88. package/dist/{wxml-B7OAVpXJ.js → wxml-CvKyV69S.js} +10 -2
  89. package/dist/{wxml-PrK-8ARX.cjs → wxml-o-CUulAM.cjs} +40 -32
  90. package/package.json +12 -11
  91. package/dist/options-BJrtIQbH.cjs +0 -768
  92. package/dist/style-options-DW30H5PV.cjs +0 -82
@@ -1,4 +1,4 @@
1
- import { C as findWorkspacePackageDir, D as resolveTailwindcssOptions, Dt as resolveCssSourceEntries, E as normalizeTailwindcssRuntimeOptions, Et as parseConfigParam, Lt as loadTailwindV4DesignSystem, Nt as resolveCssMacroTailwindV4Source, O as normalizeStringListOption, S as findNearestPackageRoot, St as expandTailwindSourceEntries, T as normalizeExtendLengthUnits, Tt as normalizeLegacyContentEntries, b as isTailwindV4CssEntry, d as resolveTailwindV4SourceFromRuntime, h as hasConfiguredTailwindV4CssRoots, i as normalizeWeappTailwindcssGeneratorOptions, kt as resolveTailwindV4CssSourceBase, m as filterTailwindV4CssSourceRoots, p as resolveTailwindV4SourceOptionsFromRuntime, v as groupCssEntriesByBase, w as findWorkspaceRoot, x as normalizeCssEntries, xt as FULL_SOURCE_SCAN_PATTERN, y as guessBasedirFromEntries } from "./generator-EnTXLBlK.js";
1
+ import { C as findWorkspacePackageDir, D as resolveTailwindcssOptions, Dt as resolveCssSourceEntries, E as normalizeTailwindcssRuntimeOptions, Et as parseConfigParam, Lt as loadTailwindV4DesignSystem, Nt as resolveCssMacroTailwindV4Source, O as normalizeStringListOption, S as findNearestPackageRoot, St as expandTailwindSourceEntries, T as normalizeExtendLengthUnits, Tt as normalizeLegacyContentEntries, b as isTailwindV4CssEntry, d as resolveTailwindV4SourceFromRuntime, h as hasConfiguredTailwindV4CssRoots, i as normalizeWeappTailwindcssGeneratorOptions, kt as resolveTailwindV4CssSourceBase, m as filterTailwindV4CssSourceRoots, p as resolveTailwindV4SourceOptionsFromRuntime, v as groupCssEntriesByBase, w as findWorkspaceRoot, x as normalizeCssEntries, xt as FULL_SOURCE_SCAN_PATTERN, y as guessBasedirFromEntries } from "./generator-C0m2S4WI.js";
2
2
  import { t as omitUndefined } from "./object-B-8IHefx.js";
3
3
  import { n as defuOverrideArray$1 } from "./utils-MVwpU07P.js";
4
4
  import { createRequire } from "node:module";
@@ -1,7 +1,8 @@
1
1
  const require_object = require("./object-DbHtAXRk.cjs");
2
- const require_wxml = require("./wxml-PrK-8ARX.cjs");
2
+ const require_wxml = require("./wxml-o-CUulAM.cjs");
3
3
  const require_local_style_matcher = require("./local-style-matcher-DRpFEu1s.cjs");
4
4
  let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
5
+ let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
5
6
  let _vue_compiler_dom = require("@vue/compiler-dom");
6
7
  //#region src/uni-app-x/component-local-style-binding.ts
7
8
  const OPTIONS_CLASS_SECTIONS = /* @__PURE__ */ new Set(["computed", "methods"]);
@@ -120,7 +121,7 @@ function createAlias(fileId, utility, index) {
120
121
  return `wtu-${createStableHash(`${fileId}:${utility}`)}-${index.toString(36)}`;
121
122
  }
122
123
  function serializeApplyUtility(utility, options = {}) {
123
- const importantSuffix = options.web ? "!" : "#{'!'}";
124
+ const importantSuffix = options.native ? _weapp_tailwindcss_postcss.UNI_APP_X_IMPORTANT_APPLY_MARKER : options.web ? "!" : "#{'!'}";
124
125
  if (utility.startsWith("!") && !utility.startsWith("\\!")) return `${utility.slice(1)}${importantSuffix}`;
125
126
  if (!utility.endsWith("!") || utility.endsWith("\\!")) return utility;
126
127
  return `${utility.slice(0, -1)}${importantSuffix}`;
@@ -440,6 +441,10 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
440
441
  const matchCustomAttribute = require_wxml.createAttributeMatcher(customAttributesEntities);
441
442
  const ms = new require_wxml.MagicString(code);
442
443
  const descriptor = parseSfc(code);
444
+ if (options.native || options.onWebLocalStyleRules) for (const style of descriptor.styles) {
445
+ const normalized = (0, _weapp_tailwindcss_postcss.normalizeUniAppXImportantApplyForSass)(style.content);
446
+ if (normalized !== style.content) ms.update(style.start, style.end, normalized);
447
+ }
443
448
  const localStyleCollector = shouldEnableLocalStyle(id, options) ? new UniAppXComponentLocalStyleCollector(id, runtimeSet) : void 0;
444
449
  if (descriptor.errors.length === 0) {
445
450
  if (descriptor.template?.ast) {
@@ -477,8 +482,11 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
477
482
  if (scopedStyle && options.onWebLocalStyleRules) options.onWebLocalStyleRules(localStyleCollector.toStyleRules({ web: true }));
478
483
  else if (scopedStyle) {
479
484
  const separator = scopedStyle.content.endsWith("\n") ? "" : "\n";
480
- ms.appendLeft(scopedStyle.end, `${separator}${localStyleCollector.toStyleRules()}`);
481
- } else ms.append(`\n${localStyleCollector.toStyleBlock({ web: Boolean(options.onWebLocalStyleRules) })}`);
485
+ ms.appendLeft(scopedStyle.end, `${separator}${localStyleCollector.toStyleRules({ native: options.native })}`);
486
+ } else ms.append(`\n${localStyleCollector.toStyleBlock({
487
+ native: options.native || Boolean(options.onWebLocalStyleRules),
488
+ web: Boolean(options.onWebLocalStyleRules)
489
+ })}`);
482
490
  }
483
491
  }
484
492
  const result = {
@@ -1,7 +1,8 @@
1
1
  import { n as _defineProperty } from "./object-B-8IHefx.js";
2
- import { g as traverse$1, h as babelParse, i as analyzeSource, n as generateCode, o as JsTokenUpdater, p as replaceWxml, r as createAttributeMatcher, u as isClassContextLiteralPath } from "./wxml-B7OAVpXJ.js";
2
+ import { g as traverse$1, h as babelParse, i as analyzeSource, n as generateCode, o as JsTokenUpdater, p as replaceWxml, r as createAttributeMatcher, u as isClassContextLiteralPath } from "./wxml-CvKyV69S.js";
3
3
  import { n as shouldEnableComponentLocalStyle, r as shouldEnablePageLocalStyle } from "./local-style-matcher-DsiI2wIc.js";
4
4
  import { splitCandidateTokens } from "@tailwindcss-mangle/engine";
5
+ import { UNI_APP_X_IMPORTANT_APPLY_MARKER, normalizeUniAppXImportantApplyForSass } from "@weapp-tailwindcss/postcss";
5
6
  import MagicString from "magic-string";
6
7
  import { NodeTypes, parse } from "@vue/compiler-dom";
7
8
  //#region src/uni-app-x/component-local-style-binding.ts
@@ -121,7 +122,7 @@ function createAlias(fileId, utility, index) {
121
122
  return `wtu-${createStableHash(`${fileId}:${utility}`)}-${index.toString(36)}`;
122
123
  }
123
124
  function serializeApplyUtility(utility, options = {}) {
124
- const importantSuffix = options.web ? "!" : "#{'!'}";
125
+ const importantSuffix = options.native ? UNI_APP_X_IMPORTANT_APPLY_MARKER : options.web ? "!" : "#{'!'}";
125
126
  if (utility.startsWith("!") && !utility.startsWith("\\!")) return `${utility.slice(1)}${importantSuffix}`;
126
127
  if (!utility.endsWith("!") || utility.endsWith("\\!")) return utility;
127
128
  return `${utility.slice(0, -1)}${importantSuffix}`;
@@ -441,6 +442,10 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
441
442
  const matchCustomAttribute = createAttributeMatcher(customAttributesEntities);
442
443
  const ms = new MagicString(code);
443
444
  const descriptor = parseSfc(code);
445
+ if (options.native || options.onWebLocalStyleRules) for (const style of descriptor.styles) {
446
+ const normalized = normalizeUniAppXImportantApplyForSass(style.content);
447
+ if (normalized !== style.content) ms.update(style.start, style.end, normalized);
448
+ }
444
449
  const localStyleCollector = shouldEnableLocalStyle(id, options) ? new UniAppXComponentLocalStyleCollector(id, runtimeSet) : void 0;
445
450
  if (descriptor.errors.length === 0) {
446
451
  if (descriptor.template?.ast) {
@@ -478,8 +483,11 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
478
483
  if (scopedStyle && options.onWebLocalStyleRules) options.onWebLocalStyleRules(localStyleCollector.toStyleRules({ web: true }));
479
484
  else if (scopedStyle) {
480
485
  const separator = scopedStyle.content.endsWith("\n") ? "" : "\n";
481
- ms.appendLeft(scopedStyle.end, `${separator}${localStyleCollector.toStyleRules()}`);
482
- } else ms.append(`\n${localStyleCollector.toStyleBlock({ web: Boolean(options.onWebLocalStyleRules) })}`);
486
+ ms.appendLeft(scopedStyle.end, `${separator}${localStyleCollector.toStyleRules({ native: options.native })}`);
487
+ } else ms.append(`\n${localStyleCollector.toStyleBlock({
488
+ native: options.native || Boolean(options.onWebLocalStyleRules),
489
+ web: Boolean(options.onWebLocalStyleRules)
490
+ })}`);
483
491
  }
484
492
  }
485
493
  const result = {
@@ -1,3 +1,4 @@
1
+ export type { Compiler, CompilerCacheReuseState, CompilerGenerateRequest, CompilerGenerateResult, CompilerSnapshot, CompilerSnapshotRoot, CompilerSourcePattern, CompilerTarget, CompilerTemplateTransformOptions, CreateCompilerOptions, CreateCompilerSnapshotRequest, } from './core.js';
1
2
  export type { WeappTailwindcssGenerateOptions, WeappTailwindcssGenerateResult, WeappTailwindcssGenerator, WeappTailwindcssGeneratorTarget, WeappTailwindcssPostcssPluginOptions, } from './index.js';
2
3
  export type { WeappTailwindcssStyleInjectorOptions } from './types/index.js';
3
4
  export type { ApplyOptions, CacheOptions, ExtractOptions, TailwindCssOptions, TailwindCssRuntimeOptions, TailwindV4Options, } from './types/typedoc-tailwindcss-runtime.js';
@@ -70,6 +70,7 @@ export interface ICommonReplaceOptions {
70
70
  escapeMap?: Record<string, string> | undefined;
71
71
  }
72
72
  export interface ITemplateHandlerOptions extends ICommonReplaceOptions {
73
+ classSetMode?: 'all' | 'exact' | undefined;
73
74
  customAttributesEntities?: ICustomAttributesEntities | undefined;
74
75
  escapeMap?: Record<string, string> | undefined;
75
76
  inlineWxs?: boolean | undefined;
@@ -18,9 +18,11 @@ export declare class UniAppXComponentLocalStyleCollector {
18
18
  rewriteTransformedCode(rawSource: string, options?: RewriteCodeOptions): string;
19
19
  hasStyles(): boolean;
20
20
  toStyleBlock(options?: {
21
+ native?: boolean;
21
22
  web?: boolean;
22
23
  }): string;
23
24
  toStyleRules(options?: {
25
+ native?: boolean;
24
26
  web?: boolean;
25
27
  }): string;
26
28
  }
@@ -7,6 +7,7 @@ interface TransformUVueOptions {
7
7
  enableComponentLocalStyle?: boolean;
8
8
  enablePageLocalStyle?: boolean;
9
9
  pageMatcher?: (id: string) => boolean;
10
+ native?: boolean;
10
11
  webCustomAttributeDeep?: boolean;
11
12
  onWebLocalStyleRules?: (rules: string) => void;
12
13
  }
@@ -0,0 +1,21 @@
1
+ import type { OutputAsset } from 'rollup';
2
+ import type { ICreateCacheReturnType } from '../../cache/index.js';
3
+ import type { CreateJsHandlerOptions, InternalUserDefinedOptions, JsHandler, LinkedJsModuleResult } from '../../types/index.js';
4
+ type ApplyLinkedResults = (linked: Record<string, LinkedJsModuleResult> | undefined) => void;
5
+ export interface CreateUniAppXAssetTaskOptions {
6
+ cache: ICreateCacheReturnType;
7
+ hashKey?: string;
8
+ hashSalt?: string;
9
+ createHandlerOptions: (absoluteFilename: string, extra?: CreateJsHandlerOptions) => CreateJsHandlerOptions;
10
+ debug: (format: string, ...args: unknown[]) => void;
11
+ jsHandler: JsHandler;
12
+ onUpdate: (filename: string, oldVal: string, newVal: string) => void;
13
+ runtimeSet: Set<string>;
14
+ applyLinkedResults: ApplyLinkedResults;
15
+ uniAppX?: InternalUserDefinedOptions['uniAppX'];
16
+ getAssetSource?: (file: string) => string | undefined;
17
+ getCssSources?: () => Iterable<string | undefined>;
18
+ injectStylePlaceholder?: boolean;
19
+ }
20
+ export declare function createUniAppXAssetTask(file: string, originalSource: OutputAsset, outDir: string, options: CreateUniAppXAssetTaskOptions): () => Promise<void>;
21
+ export {};
@@ -1,4 +1,5 @@
1
1
  import type { HmrContext, ResolvedConfig } from 'vite';
2
+ import type { ViteHmrCssModuleVersionTracker } from '../../bundlers/vite/shared/framework-hmr-module-version.js';
2
3
  import type { AppType, ICustomAttributesEntities, InternalUserDefinedOptions, JsHandler } from '../../types/index.js';
3
4
  export interface CreateUniAppXPluginsOptions {
4
5
  appType: AppType;
@@ -21,10 +22,17 @@ export interface CreateUniAppXPluginsOptions {
21
22
  jsHandler: JsHandler;
22
23
  ensureRuntimeClassSet: (force?: boolean) => Promise<Set<string>>;
23
24
  getResolvedConfig: () => ResolvedConfig | undefined;
25
+ hmrCssModuleVersions?: ViteHmrCssModuleVersionTracker | undefined;
24
26
  isIosPlatform?: boolean;
25
27
  isNativeAppStyleTarget?: (() => boolean) | undefined;
26
28
  isWebGeneratorTarget?: (() => boolean) | undefined;
27
29
  isEnabled?: (() => boolean) | undefined;
28
30
  uniAppX?: InternalUserDefinedOptions['uniAppX'];
29
31
  viteProcessedCssSourceFiles?: Iterable<string> | undefined;
32
+ webCssEntryDiagnostics?: {
33
+ dispose: () => void;
34
+ flush: () => void;
35
+ observeSourceImports: (source: string, sourceId: string) => void;
36
+ requestCheck: () => void;
37
+ } | undefined;
30
38
  }
@@ -1,5 +1,6 @@
1
1
  import type { HmrContext, ModuleNode } from 'vite';
2
- export declare function createUniAppXWebLocalStyleBridge(isEnabled: () => boolean): {
2
+ import type { ViteHmrCssModuleVersionTracker } from '../../bundlers/vite/shared/framework-hmr-module-version.js';
3
+ export declare function createUniAppXWebLocalStyleBridge(isEnabled: () => boolean, hmrCssModuleVersions?: ViteHmrCssModuleVersionTracker): {
3
4
  appendToStyle(code: string, id: string): string;
4
5
  handleHotUpdate(ctx: HmrContext): ModuleNode[] | undefined;
5
6
  remember(id: string, rules: string): void;
@@ -1,24 +1,4 @@
1
- import type { OutputAsset } from 'rollup';
2
1
  import type { Plugin } from 'vite';
3
2
  import type { CreateUniAppXPluginsOptions } from './vite/plugin-options.js';
4
- import type { ICreateCacheReturnType } from '../cache/index.js';
5
- import type { CreateJsHandlerOptions, InternalUserDefinedOptions, JsHandler, LinkedJsModuleResult } from '../types/index.js';
3
+ export { createUniAppXAssetTask } from './vite/asset-task.js';
6
4
  export declare function createUniAppXPlugins(options: CreateUniAppXPluginsOptions): Plugin[];
7
- type ApplyLinkedResults = (linked: Record<string, LinkedJsModuleResult> | undefined) => void;
8
- interface CreateUniAppXAssetTaskOptions {
9
- cache: ICreateCacheReturnType;
10
- hashKey?: string;
11
- hashSalt?: string;
12
- createHandlerOptions: (absoluteFilename: string, extra?: CreateJsHandlerOptions) => CreateJsHandlerOptions;
13
- debug: (format: string, ...args: unknown[]) => void;
14
- jsHandler: JsHandler;
15
- onUpdate: (filename: string, oldVal: string, newVal: string) => void;
16
- runtimeSet: Set<string>;
17
- applyLinkedResults: ApplyLinkedResults;
18
- uniAppX?: InternalUserDefinedOptions['uniAppX'];
19
- getAssetSource?: (file: string) => string | undefined;
20
- getCssSources?: () => Iterable<string | undefined>;
21
- injectStylePlaceholder?: boolean;
22
- }
23
- export declare function createUniAppXAssetTask(file: string, originalSource: OutputAsset, outDir: string, options: CreateUniAppXAssetTaskOptions): () => Promise<void>;
24
- export {};