weapp-tailwindcss 5.1.2 → 5.1.3

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 (66) hide show
  1. package/README.md +1 -1
  2. package/dist/bundlers/gulp/index.d.ts +3 -3
  3. package/dist/bundlers/rspack/index.d.ts +20 -0
  4. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +1 -1
  5. package/dist/bundlers/vite/css-memory.d.ts +1 -0
  6. package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +1 -1
  7. package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +12 -0
  8. package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -0
  9. package/dist/bundlers/vite/serve-js-transform.d.ts +11 -0
  10. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +4 -1
  11. package/dist/cli.js +8 -8
  12. package/dist/cli.mjs +8 -8
  13. package/dist/{context-C-r8ki7x.mjs → context-B07Vf584.mjs} +34 -34
  14. package/dist/{context-CH4HFZP2.js → context-D75pwtBW.js} +43 -43
  15. package/dist/core.js +1 -1
  16. package/dist/core.mjs +1 -1
  17. package/dist/css-macro/postcss.js +2 -2
  18. package/dist/css-macro.js +3 -3
  19. package/dist/{defaults-CmFBmxsr.js → defaults-DQhgnnn-.js} +1 -1
  20. package/dist/defaults.js +1 -1
  21. package/dist/framework/index.d.ts +7 -2
  22. package/dist/framework.js +39 -8
  23. package/dist/framework.mjs +33 -6
  24. package/dist/{generator-B6pUjNdD.js → generator-CV_0irKO.js} +2 -2
  25. package/dist/{generator-BsPIaLtV.mjs → generator-DNs6ekoC.mjs} +1 -1
  26. package/dist/generator.js +2 -2
  27. package/dist/generator.mjs +2 -2
  28. package/dist/{gulp-BBCeA7ky.js → gulp-B_u8NjQL.js} +9 -9
  29. package/dist/{gulp-CTdcASq8.mjs → gulp-aQMZ0M7c.mjs} +4 -4
  30. package/dist/gulp.js +1 -1
  31. package/dist/gulp.mjs +1 -1
  32. package/dist/{hmr-timing-BRx-KnBh.mjs → hmr-timing-DLYQTCDb.mjs} +25 -22
  33. package/dist/{hmr-timing-Da1eI8S0.js → hmr-timing-DOoHun3i.js} +28 -25
  34. package/dist/index.js +9 -4
  35. package/dist/index.mjs +7 -6
  36. package/dist/postcss-html-transform.js +2 -2
  37. package/dist/postcss.js +2 -2
  38. package/dist/postcss.mjs +2 -2
  39. package/dist/presets/shared.d.ts +4 -0
  40. package/dist/presets.js +32 -16
  41. package/dist/presets.mjs +28 -14
  42. package/dist/reset.js +2 -2
  43. package/dist/rspack.d.ts +3 -0
  44. package/dist/rspack.js +68 -0
  45. package/dist/rspack.mjs +62 -0
  46. package/dist/{source-candidate-scan-signature-BO6JSskQ.js → source-candidate-scan-signature-DzwebZrf.js} +6 -6
  47. package/dist/{source-candidate-scan-signature-Dugfplms.mjs → source-candidate-scan-signature-pS87mdHZ.mjs} +3 -3
  48. package/dist/{tailwindcss-dbrbY4cd.js → tailwindcss-BSCvrs1p.js} +8 -8
  49. package/dist/{tailwindcss-B5mRo0-M.mjs → tailwindcss-BwV3_Ryc.mjs} +3 -3
  50. package/dist/{transform-DeqFRp1D.mjs → transform-Clj7R818.mjs} +19 -19
  51. package/dist/{transform-BLleu_bA.js → transform-fin-OTVD.js} +47 -47
  52. package/dist/{utils-BCa37Wqj.js → utils-D3h8j7Mk.js} +2 -2
  53. package/dist/{v4-engine-C3qSwQ-e.mjs → v4-engine-BklH3CpJ.mjs} +5 -5
  54. package/dist/{v4-engine-ON_oSLfO.js → v4-engine-CKbS27-o.js} +10 -10
  55. package/dist/{vite-CXmUiI9f.mjs → vite-5Wn0PIzJ.mjs} +237 -42
  56. package/dist/{vite-Da4uEG_u.js → vite-CkVMSDDp.js} +242 -47
  57. package/dist/vite.js +1 -1
  58. package/dist/vite.mjs +1 -1
  59. package/dist/weapp-tw-css-import-rewrite-loader.js +55 -26
  60. package/dist/weapp-tw-runtime-classset-loader.js +2 -2
  61. package/dist/{webpack-CrFZmdo7.mjs → webpack-DEag6ueE.mjs} +66 -18
  62. package/dist/{webpack-Cwqnznng.js → webpack-hvSFaicc.js} +71 -23
  63. package/dist/webpack.js +1 -1
  64. package/dist/webpack.mjs +1 -1
  65. package/package.json +8 -3
  66. /package/dist/{chunk-emK7D4bc.js → rolldown-runtime-emK7D4bc.js} +0 -0
package/README.md CHANGED
@@ -8,4 +8,4 @@
8
8
 
9
9
  更多接入方式、配置说明和框架示例见 [weapp-tailwindcss 官方文档](https://tw.icebreaker.top)。
10
10
 
11
- Tailwind CSS 4 项目中,入口 CSS 需要同时满足两点:在项目里被实际引入,并在需要时通过 `cssEntries` 显式传给插件用于补充识别。`cssEntries` 不是替代 import 的开关。
11
+ Tailwind CSS 4 项目中,入口 CSS 需要同时满足两点:在项目里被实际引入,并通过 `cssEntries` 显式传给插件用于稳定识别。`cssEntries` 不是替代 import 的开关。
@@ -1,6 +1,6 @@
1
1
  import type { CreateJsHandlerOptions, IStyleHandlerOptions, ITemplateHandlerOptions, UserDefinedOptions } from '../../types';
2
2
  export declare function createPlugins(options?: UserDefinedOptions): {
3
- transformWxss: (options?: Partial<IStyleHandlerOptions>) => import("stream").Transform;
4
- transformWxml: (options?: Partial<ITemplateHandlerOptions>) => import("stream").Transform;
5
- transformJs: (options?: Partial<CreateJsHandlerOptions>) => import("stream").Transform;
3
+ transformWxss: (options?: Partial<IStyleHandlerOptions>) => import("node:stream").Transform;
4
+ transformWxml: (options?: Partial<ITemplateHandlerOptions>) => import("node:stream").Transform;
5
+ transformJs: (options?: Partial<CreateJsHandlerOptions>) => import("node:stream").Transform;
6
6
  };
@@ -0,0 +1,20 @@
1
+ import type { WebpackCssImportRewriteLoaderOptions } from '../webpack/loaders/runtime-registry';
2
+ import { WeappTailwindcss, weappTailwindcssPackageDir } from '../webpack';
3
+ export { WeappTailwindcss, weappTailwindcss, weappTailwindcssPackageDir };
4
+ declare const weappTailwindcss: typeof WeappTailwindcss;
5
+ export interface PatchRspackCssImportRewriteLoaderOptions {
6
+ loader?: string;
7
+ options?: WebpackCssImportRewriteLoaderOptions;
8
+ }
9
+ export interface PatchRspackConfigOptions {
10
+ cssImportRewriteLoader?: boolean | PatchRspackCssImportRewriteLoaderOptions;
11
+ removeLightningCssLoader?: boolean;
12
+ }
13
+ export interface RspackConfigLike {
14
+ module?: {
15
+ rules?: unknown[];
16
+ [key: string]: unknown;
17
+ };
18
+ [key: string]: unknown;
19
+ }
20
+ export declare function patchRspackConfig(config: RspackConfigLike, options?: PatchRspackConfigOptions): RspackConfigLike;
@@ -4,6 +4,6 @@ import type { NormalizedWeappTailwindcssGeneratorOptions, TailwindResolvedSource
4
4
  export type { GeneratorResolvedSource, GeneratorSourceMetadata } from './source-resolver/metadata';
5
5
  export { resolveCssSourceBase } from './source-resolver/postcss-source';
6
6
  export type { GeneratorSourceRuntimeState, GeneratorSourceSelectionOptions } from './source-resolver/types';
7
- export declare function resolveGeneratorSource(_majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<import("@/generator").TailwindV4ResolvedSource | undefined>;
7
+ export declare function resolveGeneratorSource(_majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<import("@/generator").TailwindV4ResolvedSource>;
8
8
  export declare function resolveGeneratorSources(majorVersion: number | undefined, runtimeState: GeneratorSourceRuntimeState, rawSource: string, file: string, cssHandlerOptions: IStyleHandlerOptions, generatorOptions?: NormalizedWeappTailwindcssGeneratorOptions, selectionOptions?: GeneratorSourceSelectionOptions): Promise<TailwindResolvedSource[]>;
9
9
  export declare function resolveGeneratorSourceEntries(source: TailwindResolvedSource, runtimeState?: GeneratorSourceRuntimeState): Promise<import("@/tailwindcss/source-scan").TailwindSourceEntry[] | undefined>;
@@ -6,6 +6,7 @@ export declare function createViteCssMemory(options: {
6
6
  getSourceCandidateSource: (file: string) => string | undefined;
7
7
  }): {
8
8
  getKnownSfcSource: (file: string) => string | undefined;
9
+ getKnownCssSource: (file: string) => string | undefined;
9
10
  getRememberedCssSignature: (file: string) => string | undefined;
10
11
  getRememberedCssSourceEntry: (file: string) => RememberedCssSource | undefined;
11
12
  getRememberedCssSources: () => Map<string, RememberedCssSource>;
@@ -23,7 +23,7 @@ export declare function createSubpackageSourceCandidateScope(options: CreateSubp
23
23
  shouldExcludeSubpackageSourceCandidates: (outputFile: string, cssHandlerOptions: {
24
24
  isMainChunk?: boolean | undefined;
25
25
  }) => boolean;
26
- shouldInjectCssIntoMainFromOutput: (outputFile: string, _sourceFile: string, outputCssHandlerOptions: {
26
+ shouldInjectCssIntoMainFromOutput: (outputFile: string, sourceFile: string, outputCssHandlerOptions: {
27
27
  isMainChunk?: boolean | undefined;
28
28
  }) => boolean;
29
29
  };
@@ -0,0 +1,12 @@
1
+ import type { RememberedCssSource } from './types';
2
+ export interface TemporaryCssSourceEntry {
3
+ file: string;
4
+ outputFile: string;
5
+ source: string;
6
+ }
7
+ export declare function isTemporaryCssAssetFile(file: string): boolean;
8
+ export declare function createTemporaryCssAssetSourceResolver(entries: TemporaryCssSourceEntry[]): {
9
+ entries: TemporaryCssSourceEntry[];
10
+ markUsed(sourceFile: string | undefined): void;
11
+ resolve(outputFile: string): RememberedCssSource | undefined;
12
+ };
@@ -49,6 +49,7 @@ export interface GenerateBundleContext {
49
49
  getRememberedCssSources?: () => Iterable<[string, RememberedCssSource]>;
50
50
  getRememberedCssSignature?: (file: string) => string | undefined;
51
51
  setRememberedCssSignature?: (file: string, cssRuntimeSignature: string) => void;
52
+ getKnownCssSource?: (file: string) => string | undefined;
52
53
  getKnownSfcSource?: (file: string) => string | undefined;
53
54
  recordGeneratorCandidates?: (candidates: Set<string>) => void;
54
55
  pruneViteCssCaches?: (options: {
@@ -0,0 +1,11 @@
1
+ import type { Plugin } from 'vite';
2
+ import type { CreateJsHandlerOptions, InternalUserDefinedOptions } from '../../types';
3
+ interface ViteServeJsTransformOptions {
4
+ createHandlerOptions: (absoluteFilename: string, extra?: CreateJsHandlerOptions) => CreateJsHandlerOptions;
5
+ getCommand: () => string | undefined;
6
+ jsHandler: InternalUserDefinedOptions['jsHandler'];
7
+ shouldTransform: () => boolean;
8
+ transformRuntime: () => Promise<Set<string>> | Set<string>;
9
+ }
10
+ export declare function createViteServeJsTransformPlugin(options: ViteServeJsTransformOptions): Plugin;
11
+ export {};
@@ -3,7 +3,7 @@ import type { createEscapeFragments } from '../../../vite/incremental-runtime-cl
3
3
  import type { SourceCandidateStore } from '../../../vite/source-candidates';
4
4
  import type { SetupWebpackV5ProcessAssetsHookOptions, WebpackSourceLike } from './helpers';
5
5
  import type { WebpackSourceCandidateScanMemoryStats } from './source-candidate-cache';
6
- import type { TailwindcssRuntimeLike } from '../../../../types';
6
+ import type { InternalUserDefinedOptions, TailwindcssRuntimeLike } from '../../../../types';
7
7
  export interface WebpackCssHandlerOptions {
8
8
  isMainChunk: boolean;
9
9
  postcssOptions: {
@@ -41,6 +41,9 @@ export interface WebpackGeneratorUserCssSource {
41
41
  }
42
42
  export declare function hasUsableWebpackGeneratorCssSources(cssSources: TailwindV4CssSource[] | undefined): cssSources is TailwindV4CssSource[];
43
43
  export declare function normalizeWebpackGeneratorCssSources(cssSources: TailwindV4CssSource[] | undefined): import("@tailwindcss-mangle/engine").TailwindV4CssSource[] | undefined;
44
+ export declare function scopeWebpackGeneratorOptionsToCssSource(compilerOptions: InternalUserDefinedOptions, sourceFile: string | undefined, options?: {
45
+ disableUnmatchedCssEntries?: boolean | undefined;
46
+ }): InternalUserDefinedOptions;
44
47
  export declare function hasProcessedCssAssetUrl(css: string): boolean;
45
48
  export declare function shouldUseWebpackAssetAsGeneratorUserCss(rawSource: string, generatorRawSource: string, options?: {
46
49
  processed?: boolean | undefined;
package/dist/cli.js CHANGED
@@ -388,14 +388,14 @@ function decodeUnicode2(input) {
388
388
  }
389
389
  //#endregion
390
390
  //#region src/js/class-context.ts
391
- const CLASS_LIKE_KEYWORDS = new Set([
391
+ const CLASS_LIKE_KEYWORDS = /* @__PURE__ */ new Set([
392
392
  "class",
393
393
  "classname",
394
394
  "hoverclass",
395
395
  "virtualhostclass",
396
396
  "rootclass"
397
397
  ]);
398
- const CLASS_HELPER_IDENTIFIERS = new Set([
398
+ const CLASS_HELPER_IDENTIFIERS = /* @__PURE__ */ new Set([
399
399
  "cn",
400
400
  "clsx",
401
401
  "classnames",
@@ -841,7 +841,7 @@ function walkEvalExpression(path, options, updater, handler) {
841
841
  }
842
842
  }
843
843
  //#endregion
844
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
844
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
845
845
  function _typeof(o) {
846
846
  "@babel/helpers - typeof";
847
847
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -851,7 +851,7 @@ function _typeof(o) {
851
851
  }, _typeof(o);
852
852
  }
853
853
  //#endregion
854
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
854
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
855
855
  function toPrimitive(t, r) {
856
856
  if ("object" != _typeof(t) || !t) return t;
857
857
  var e = t[Symbol.toPrimitive];
@@ -863,13 +863,13 @@ function toPrimitive(t, r) {
863
863
  return ("string" === r ? String : Number)(t);
864
864
  }
865
865
  //#endregion
866
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
866
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
867
867
  function toPropertyKey(t) {
868
868
  var i = toPrimitive(t, "string");
869
869
  return "symbol" == _typeof(i) ? i : i + "";
870
870
  }
871
871
  //#endregion
872
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
872
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
873
873
  function _defineProperty(e, r, t) {
874
874
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
875
875
  value: t,
@@ -1343,7 +1343,7 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1343
1343
  }
1344
1344
  if (item === singleCanonicalIgnoreName) continue;
1345
1345
  if (!canonicalIgnoreNames) {
1346
- canonicalIgnoreNames = new Set([singleCanonicalIgnoreName, item]);
1346
+ canonicalIgnoreNames = /* @__PURE__ */ new Set([singleCanonicalIgnoreName, item]);
1347
1347
  continue;
1348
1348
  }
1349
1349
  canonicalIgnoreNames.add(item);
@@ -1616,7 +1616,7 @@ defaultEvalHandler = jsHandler;
1616
1616
  Object.freeze({ wrapExpression: true });
1617
1617
  //#endregion
1618
1618
  //#region src/wxml/whitespace.ts
1619
- const WHITESPACE_CODES = new Set([
1619
+ const WHITESPACE_CODES = /* @__PURE__ */ new Set([
1620
1620
  9,
1621
1621
  10,
1622
1622
  11,
package/dist/cli.mjs CHANGED
@@ -359,14 +359,14 @@ function decodeUnicode2(input) {
359
359
  }
360
360
  //#endregion
361
361
  //#region src/js/class-context.ts
362
- const CLASS_LIKE_KEYWORDS = new Set([
362
+ const CLASS_LIKE_KEYWORDS = /* @__PURE__ */ new Set([
363
363
  "class",
364
364
  "classname",
365
365
  "hoverclass",
366
366
  "virtualhostclass",
367
367
  "rootclass"
368
368
  ]);
369
- const CLASS_HELPER_IDENTIFIERS = new Set([
369
+ const CLASS_HELPER_IDENTIFIERS = /* @__PURE__ */ new Set([
370
370
  "cn",
371
371
  "clsx",
372
372
  "classnames",
@@ -812,7 +812,7 @@ function walkEvalExpression(path, options, updater, handler) {
812
812
  }
813
813
  }
814
814
  //#endregion
815
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
815
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
816
816
  function _typeof(o) {
817
817
  "@babel/helpers - typeof";
818
818
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -822,7 +822,7 @@ function _typeof(o) {
822
822
  }, _typeof(o);
823
823
  }
824
824
  //#endregion
825
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
825
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
826
826
  function toPrimitive(t, r) {
827
827
  if ("object" != _typeof(t) || !t) return t;
828
828
  var e = t[Symbol.toPrimitive];
@@ -834,13 +834,13 @@ function toPrimitive(t, r) {
834
834
  return ("string" === r ? String : Number)(t);
835
835
  }
836
836
  //#endregion
837
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
837
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
838
838
  function toPropertyKey(t) {
839
839
  var i = toPrimitive(t, "string");
840
840
  return "symbol" == _typeof(i) ? i : i + "";
841
841
  }
842
842
  //#endregion
843
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
843
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
844
844
  function _defineProperty(e, r, t) {
845
845
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
846
846
  value: t,
@@ -1314,7 +1314,7 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1314
1314
  }
1315
1315
  if (item === singleCanonicalIgnoreName) continue;
1316
1316
  if (!canonicalIgnoreNames) {
1317
- canonicalIgnoreNames = new Set([singleCanonicalIgnoreName, item]);
1317
+ canonicalIgnoreNames = /* @__PURE__ */ new Set([singleCanonicalIgnoreName, item]);
1318
1318
  continue;
1319
1319
  }
1320
1320
  canonicalIgnoreNames.add(item);
@@ -1587,7 +1587,7 @@ createRequire(import.meta.url);
1587
1587
  Object.freeze({ wrapExpression: true });
1588
1588
  //#endregion
1589
1589
  //#region src/wxml/whitespace.ts
1590
- const WHITESPACE_CODES = new Set([
1590
+ const WHITESPACE_CODES = /* @__PURE__ */ new Set([
1591
1591
  9,
1592
1592
  10,
1593
1593
  11,
@@ -1,8 +1,8 @@
1
- import { W as createTailwindV4Engine$1, lt as loadTailwindV4DesignSystem, n as resolveTailwindV4SourceFromRuntime, st as omitUndefined, ut as resolveValidTailwindV4Candidates$1, y as resolveBooleanObjectOption } from "./v4-engine-C3qSwQ-e.mjs";
2
- import { a as resolveGeneratorRuntimeBranch, i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-BsPIaLtV.mjs";
1
+ import { W as createTailwindV4Engine$1, lt as loadTailwindV4DesignSystem, n as resolveTailwindV4SourceFromRuntime, st as omitUndefined, ut as resolveValidTailwindV4Candidates$1, y as resolveBooleanObjectOption } from "./v4-engine-BklH3CpJ.mjs";
2
+ import { a as resolveGeneratorRuntimeBranch, i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-DNs6ekoC.mjs";
3
3
  import { i as isMap, n as defuOverrideArray } from "./utils-DodxWHGz.mjs";
4
4
  import { a as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH, i as resolveDefaultCssPreflight, o as HARD_PARSE_CACHE_MAX_ENTRIES, r as getDefaultOptions } from "./defaults-BhE26nSw.mjs";
5
- import { c as getRuntimeClassSetCacheEntry, d as invalidateRuntimeClassSet, i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssRuntimeFromContext, u as getRuntimeClassSetSignatureWithSources } from "./tailwindcss-B5mRo0-M.mjs";
5
+ import { c as getRuntimeClassSetCacheEntry, d as invalidateRuntimeClassSet, i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssRuntimeFromContext, u as getRuntimeClassSetSignatureWithSources } from "./tailwindcss-BwV3_Ryc.mjs";
6
6
  import { createRequire } from "node:module";
7
7
  import path from "node:path";
8
8
  import process from "node:process";
@@ -249,7 +249,7 @@ async function collectTailwindV4GeneratorClassSet(tailwindRuntime) {
249
249
  async function mergeTailwindV4GeneratorClassSet(tailwindRuntime, classSet) {
250
250
  const generatorClassSet = await collectTailwindV4GeneratorClassSet(tailwindRuntime).catch(() => void 0);
251
251
  if (!generatorClassSet || generatorClassSet.size === 0) return classSet;
252
- return new Set([...classSet, ...generatorClassSet]);
252
+ return /* @__PURE__ */ new Set([...classSet, ...generatorClassSet]);
253
253
  }
254
254
  async function collectRuntimeClassSet(tailwindRuntime, options = {}) {
255
255
  let activeRuntime = tailwindRuntime;
@@ -836,14 +836,14 @@ function decodeUnicode2(input) {
836
836
  }
837
837
  //#endregion
838
838
  //#region src/js/class-context.ts
839
- const CLASS_LIKE_KEYWORDS = new Set([
839
+ const CLASS_LIKE_KEYWORDS = /* @__PURE__ */ new Set([
840
840
  "class",
841
841
  "classname",
842
842
  "hoverclass",
843
843
  "virtualhostclass",
844
844
  "rootclass"
845
845
  ]);
846
- const CLASS_HELPER_IDENTIFIERS = new Set([
846
+ const CLASS_HELPER_IDENTIFIERS = /* @__PURE__ */ new Set([
847
847
  "cn",
848
848
  "clsx",
849
849
  "classnames",
@@ -1289,7 +1289,7 @@ function walkEvalExpression(path, options, updater, handler) {
1289
1289
  }
1290
1290
  }
1291
1291
  //#endregion
1292
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
1292
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
1293
1293
  function _typeof(o) {
1294
1294
  "@babel/helpers - typeof";
1295
1295
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1299,7 +1299,7 @@ function _typeof(o) {
1299
1299
  }, _typeof(o);
1300
1300
  }
1301
1301
  //#endregion
1302
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
1302
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
1303
1303
  function toPrimitive(t, r) {
1304
1304
  if ("object" != _typeof(t) || !t) return t;
1305
1305
  var e = t[Symbol.toPrimitive];
@@ -1311,13 +1311,13 @@ function toPrimitive(t, r) {
1311
1311
  return ("string" === r ? String : Number)(t);
1312
1312
  }
1313
1313
  //#endregion
1314
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
1314
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
1315
1315
  function toPropertyKey(t) {
1316
1316
  var i = toPrimitive(t, "string");
1317
1317
  return "symbol" == _typeof(i) ? i : i + "";
1318
1318
  }
1319
1319
  //#endregion
1320
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
1320
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
1321
1321
  function _defineProperty(e, r, t) {
1322
1322
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1323
1323
  value: t,
@@ -1791,7 +1791,7 @@ function createTaggedTemplateIgnore({ matcher, names }) {
1791
1791
  }
1792
1792
  if (item === singleCanonicalIgnoreName) continue;
1793
1793
  if (!canonicalIgnoreNames) {
1794
- canonicalIgnoreNames = new Set([singleCanonicalIgnoreName, item]);
1794
+ canonicalIgnoreNames = /* @__PURE__ */ new Set([singleCanonicalIgnoreName, item]);
1795
1795
  continue;
1796
1796
  }
1797
1797
  canonicalIgnoreNames.add(item);
@@ -2492,7 +2492,7 @@ function generateCode(match, options = {}) {
2492
2492
  }
2493
2493
  //#endregion
2494
2494
  //#region ../../node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js
2495
- const decodeMap = new Map([
2495
+ const decodeMap = /* @__PURE__ */ new Map([
2496
2496
  [0, 65533],
2497
2497
  [128, 8364],
2498
2498
  [130, 8218],
@@ -3035,7 +3035,7 @@ var QuoteType;
3035
3035
  * sequences with an increased offset.
3036
3036
  */
3037
3037
  const Sequences = {
3038
- Empty: new Uint8Array(0),
3038
+ Empty: /* @__PURE__ */ new Uint8Array(0),
3039
3039
  Cdata: new Uint8Array([
3040
3040
  67,
3041
3041
  68,
@@ -3164,7 +3164,7 @@ const Sequences = {
3164
3164
  * where index 2 is the first tag-name character, so matching always
3165
3165
  * continues from offset 3.
3166
3166
  */
3167
- const specialStartSequences = new Map([
3167
+ const specialStartSequences = /* @__PURE__ */ new Map([
3168
3168
  [Sequences.IframeEnd[2], Sequences.IframeEnd],
3169
3169
  [Sequences.NoembedEnd[2], Sequences.NoembedEnd],
3170
3170
  [Sequences.Plaintext[2], Sequences.Plaintext],
@@ -3892,7 +3892,7 @@ var Tokenizer$1 = class {
3892
3892
  //#endregion
3893
3893
  //#region ../../node_modules/.pnpm/htmlparser2@12.0.0/node_modules/htmlparser2/dist/Parser.js
3894
3894
  const { fromCodePoint } = String;
3895
- const formTags = new Set([
3895
+ const formTags = /* @__PURE__ */ new Set([
3896
3896
  "input",
3897
3897
  "option",
3898
3898
  "optgroup",
@@ -3901,8 +3901,8 @@ const formTags = new Set([
3901
3901
  "datalist",
3902
3902
  "textarea"
3903
3903
  ]);
3904
- const pTag = new Set(["p"]);
3905
- const headingTags = new Set([
3904
+ const pTag = /* @__PURE__ */ new Set(["p"]);
3905
+ const headingTags = /* @__PURE__ */ new Set([
3906
3906
  "h1",
3907
3907
  "h2",
3908
3908
  "h3",
@@ -3911,28 +3911,28 @@ const headingTags = new Set([
3911
3911
  "h6",
3912
3912
  "p"
3913
3913
  ]);
3914
- const tableSectionTags = new Set(["thead", "tbody"]);
3915
- const ddtTags = new Set(["dd", "dt"]);
3916
- const rtpTags = new Set(["rt", "rp"]);
3917
- const openImpliesClose = new Map([
3918
- ["tr", new Set([
3914
+ const tableSectionTags = /* @__PURE__ */ new Set(["thead", "tbody"]);
3915
+ const ddtTags = /* @__PURE__ */ new Set(["dd", "dt"]);
3916
+ const rtpTags = /* @__PURE__ */ new Set(["rt", "rp"]);
3917
+ const openImpliesClose = /* @__PURE__ */ new Map([
3918
+ ["tr", /* @__PURE__ */ new Set([
3919
3919
  "tr",
3920
3920
  "th",
3921
3921
  "td"
3922
3922
  ])],
3923
- ["th", new Set(["th"])],
3924
- ["td", new Set([
3923
+ ["th", /* @__PURE__ */ new Set(["th"])],
3924
+ ["td", /* @__PURE__ */ new Set([
3925
3925
  "thead",
3926
3926
  "th",
3927
3927
  "td"
3928
3928
  ])],
3929
- ["body", new Set([
3929
+ ["body", /* @__PURE__ */ new Set([
3930
3930
  "head",
3931
3931
  "link",
3932
3932
  "script"
3933
3933
  ])],
3934
- ["a", new Set(["a"])],
3935
- ["li", new Set(["li"])],
3934
+ ["a", /* @__PURE__ */ new Set(["a"])],
3935
+ ["li", /* @__PURE__ */ new Set(["li"])],
3936
3936
  ["p", pTag],
3937
3937
  ["h1", headingTags],
3938
3938
  ["h2", headingTags],
@@ -3946,8 +3946,8 @@ const openImpliesClose = new Map([
3946
3946
  ["button", formTags],
3947
3947
  ["datalist", formTags],
3948
3948
  ["textarea", formTags],
3949
- ["option", new Set(["option"])],
3950
- ["optgroup", new Set(["optgroup", "option"])],
3949
+ ["option", /* @__PURE__ */ new Set(["option"])],
3950
+ ["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
3951
3951
  ["dd", ddtTags],
3952
3952
  ["dt", ddtTags],
3953
3953
  ["address", pTag],
@@ -3977,7 +3977,7 @@ const openImpliesClose = new Map([
3977
3977
  ["tfoot", tableSectionTags]
3978
3978
  ]);
3979
3979
  const DOCUMENT_TYPE = "doctype";
3980
- const voidElements = new Set([
3980
+ const voidElements = /* @__PURE__ */ new Set([
3981
3981
  "area",
3982
3982
  "base",
3983
3983
  "basefont",
@@ -3998,14 +3998,14 @@ const voidElements = new Set([
3998
3998
  "track",
3999
3999
  "wbr"
4000
4000
  ]);
4001
- const foreignContextElements = new Set(["math", "svg"]);
4001
+ const foreignContextElements = /* @__PURE__ */ new Set(["math", "svg"]);
4002
4002
  /**
4003
4003
  * Elements that can be used to integrate HTML content within foreign namespaces (e.g., SVG or MathML).
4004
4004
  *
4005
4005
  * Entries must use the SVG-adjusted casing (e.g. "foreignObject" not
4006
4006
  * "foreignobject") since they are compared against adjusted tag names.
4007
4007
  */
4008
- const htmlIntegrationElements = new Set([
4008
+ const htmlIntegrationElements = /* @__PURE__ */ new Set([
4009
4009
  "mi",
4010
4010
  "mo",
4011
4011
  "mn",
@@ -4016,7 +4016,7 @@ const htmlIntegrationElements = new Set([
4016
4016
  "desc",
4017
4017
  "title"
4018
4018
  ]);
4019
- const svgTagNameAdjustments = new Map([
4019
+ const svgTagNameAdjustments = /* @__PURE__ */ new Map([
4020
4020
  ["altglyph", "altGlyph"],
4021
4021
  ["altglyphdef", "altGlyphDef"],
4022
4022
  ["altglyphitem", "altGlyphItem"],
@@ -4480,7 +4480,7 @@ var Parser = class {
4480
4480
  };
4481
4481
  //#endregion
4482
4482
  //#region src/wxml/whitespace.ts
4483
- const WHITESPACE_CODES = new Set([
4483
+ const WHITESPACE_CODES = /* @__PURE__ */ new Set([
4484
4484
  9,
4485
4485
  10,
4486
4486
  11,