weapp-tailwindcss 4.8.2 → 4.8.4

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 (45) hide show
  1. package/dist/{chunk-JPLWILCP.js → chunk-47NJZTIW.js} +5 -5
  2. package/dist/{chunk-Z6IWSDU3.js → chunk-5P342MNS.js} +21 -21
  3. package/dist/{chunk-IXZDFEPL.js → chunk-6EATUPTN.js} +33 -25
  4. package/dist/{chunk-HCXLLOIU.mjs → chunk-7KTLLGAG.mjs} +126 -52
  5. package/dist/{chunk-ACSKKIYM.js → chunk-AXEKXGG7.js} +3 -3
  6. package/dist/{chunk-OJRQGFJR.mjs → chunk-IHJU6M6B.mjs} +17 -9
  7. package/dist/chunk-JMYADIPN.mjs +10 -0
  8. package/dist/{chunk-H34KPZQW.js → chunk-K234IGOT.js} +2 -2
  9. package/dist/{chunk-GVPBDBX4.mjs → chunk-KSHK56CW.mjs} +1 -1
  10. package/dist/{chunk-K7AD7FLJ.js → chunk-MG4O3AGN.js} +6 -6
  11. package/dist/{chunk-5BZA7BAP.mjs → chunk-NLLCK6RM.mjs} +1 -1
  12. package/dist/{chunk-6OTI5FPH.mjs → chunk-UUVGNRUM.mjs} +1 -1
  13. package/dist/chunk-WGLBMNPG.js +7 -0
  14. package/dist/{chunk-W4ERVC6L.mjs → chunk-WTOLVORM.mjs} +1 -1
  15. package/dist/{chunk-467NHGLF.js → chunk-ZXU4EYKV.js} +111 -37
  16. package/dist/cli.js +73 -311
  17. package/dist/cli.mjs +71 -308
  18. package/dist/core.js +9 -9
  19. package/dist/core.mjs +3 -3
  20. package/dist/css-macro/postcss.js +1 -1
  21. package/dist/css-macro/postcss.mjs +1 -1
  22. package/dist/css-macro.js +1 -1
  23. package/dist/css-macro.mjs +1 -1
  24. package/dist/defaults.js +1 -1
  25. package/dist/defaults.mjs +1 -1
  26. package/dist/gulp.js +5 -5
  27. package/dist/gulp.mjs +4 -4
  28. package/dist/index.js +9 -9
  29. package/dist/index.mjs +7 -7
  30. package/dist/postcss-html-transform.js +1 -1
  31. package/dist/postcss-html-transform.mjs +1 -1
  32. package/dist/presets.js +3 -3
  33. package/dist/presets.mjs +2 -2
  34. package/dist/types.js +1 -1
  35. package/dist/types.mjs +1 -1
  36. package/dist/vite.js +6 -6
  37. package/dist/vite.mjs +4 -4
  38. package/dist/weapp-tw-runtime-loader.js +66 -2
  39. package/dist/webpack.js +7 -7
  40. package/dist/webpack.mjs +5 -5
  41. package/dist/webpack4.js +34 -27
  42. package/dist/webpack4.mjs +17 -10
  43. package/package.json +4 -4
  44. package/dist/chunk-QGH4JZRW.mjs +0 -18
  45. package/dist/chunk-UJIUFWXE.js +0 -15
package/dist/cli.mjs CHANGED
@@ -4,127 +4,22 @@ import {
4
4
  import {
5
5
  WEAPP_TW_REQUIRED_NODE_VERSION,
6
6
  clearTailwindcssPatcherCache,
7
- getCompilerContext,
8
7
  logTailwindcssTarget,
9
8
  saveCliPatchTargetRecord
10
- } from "./chunk-W4ERVC6L.mjs";
11
- import "./chunk-HCXLLOIU.mjs";
9
+ } from "./chunk-WTOLVORM.mjs";
10
+ import "./chunk-7KTLLGAG.mjs";
12
11
  import "./chunk-DKPIYG24.mjs";
13
- import {
14
- defuOverrideArray
15
- } from "./chunk-ZNKIYZRQ.mjs";
16
- import {
17
- __require
18
- } from "./chunk-QGH4JZRW.mjs";
12
+ import "./chunk-ZNKIYZRQ.mjs";
13
+ import "./chunk-JMYADIPN.mjs";
19
14
 
20
15
  // src/cli.ts
21
- import { writeFile as writeFile2 } from "fs/promises";
22
- import path4 from "path";
23
16
  import process3 from "process";
24
- import cac from "cac";
25
17
  import semver from "semver";
26
- import { groupTokensByFile as groupTokensByFile2 } from "tailwindcss-patch";
27
-
28
- // src/cli/config.ts
29
- import { createRequire } from "module";
30
- var MODULE_ID = "@tailwindcss-mangle/config";
31
- var cachedRequire;
32
- function getNodeRequire() {
33
- if (cachedRequire) {
34
- return cachedRequire;
35
- }
36
- if (typeof __require === "function") {
37
- cachedRequire = __require;
38
- return cachedRequire;
39
- }
40
- try {
41
- cachedRequire = createRequire(import.meta.url);
42
- } catch {
43
- cachedRequire = void 0;
44
- }
45
- return cachedRequire;
46
- }
47
- async function tryDynamicImport(moduleId) {
48
- try {
49
- return await import(moduleId);
50
- } catch {
51
- return void 0;
52
- }
53
- }
54
- function tryRequire(moduleId) {
55
- const nodeRequire = getNodeRequire();
56
- if (!nodeRequire) {
57
- return void 0;
58
- }
59
- try {
60
- return nodeRequire(moduleId);
61
- } catch {
62
- return void 0;
63
- }
64
- }
65
- function isValidModule(mod) {
66
- return Boolean(mod) && typeof mod.initConfig === "function" && typeof mod.CONFIG_NAME === "string";
67
- }
68
- async function loadTailwindcssMangleConfig() {
69
- const mod = await tryDynamicImport(MODULE_ID) ?? tryRequire(MODULE_ID);
70
- return isValidModule(mod) ? mod : void 0;
71
- }
18
+ import { createTailwindcssPatchCli } from "tailwindcss-patch";
72
19
 
73
20
  // src/cli/context.ts
74
21
  import path from "path";
75
22
  import process from "process";
76
- function mergeTailwindcssPatcherOptions(overrides, current) {
77
- if (!current) {
78
- return overrides;
79
- }
80
- return defuOverrideArray(overrides, current);
81
- }
82
- function resolveEntry(entry, cwd) {
83
- if (path.isAbsolute(entry)) {
84
- return path.normalize(entry);
85
- }
86
- const base = cwd ?? process.cwd();
87
- return path.normalize(path.resolve(base, entry));
88
- }
89
- function buildTailwindcssPatcherOptions(overrides) {
90
- if (!overrides) {
91
- return void 0;
92
- }
93
- const filtered = {};
94
- if (overrides.cwd) {
95
- filtered.cwd = overrides.cwd;
96
- }
97
- if (overrides.output) {
98
- const output = {};
99
- if (overrides.output.file) {
100
- output.file = overrides.output.file;
101
- }
102
- if (overrides.output.format) {
103
- output.format = overrides.output.format;
104
- }
105
- if (Object.keys(output).length > 0) {
106
- filtered.output = output;
107
- }
108
- }
109
- return Object.keys(filtered).length > 0 ? filtered : void 0;
110
- }
111
- function createCliContext(overrides, resolvedCwd) {
112
- const userOptions = {
113
- ...overrides ?? {}
114
- };
115
- if (resolvedCwd) {
116
- if (!userOptions.tailwindcssBasedir) {
117
- userOptions.tailwindcssBasedir = resolvedCwd;
118
- }
119
- const cwdOptions = { cwd: resolvedCwd };
120
- const current = userOptions.tailwindcssPatcherOptions;
121
- userOptions.tailwindcssPatcherOptions = mergeTailwindcssPatcherOptions(
122
- cwdOptions,
123
- current
124
- );
125
- }
126
- return getCompilerContext(userOptions);
127
- }
128
23
  function formatOutputPath(target, baseDir) {
129
24
  const root = baseDir ?? process.cwd();
130
25
  const relative = path.relative(root, target);
@@ -174,25 +69,6 @@ function readStringArrayOption(flag, value) {
174
69
  const normalized = readStringOption(flag, value);
175
70
  return normalized ? [normalized] : void 0;
176
71
  }
177
- function normalizeTokenFormat(format) {
178
- switch (format) {
179
- case "json":
180
- case "lines":
181
- case "grouped-json":
182
- return format;
183
- default:
184
- return "json";
185
- }
186
- }
187
- function normalizeExtractFormat(format) {
188
- if (!format) {
189
- return void 0;
190
- }
191
- if (format === "json" || format === "lines") {
192
- return format;
193
- }
194
- return void 0;
195
- }
196
72
  function toBoolean(value, fallback) {
197
73
  if (typeof value === "boolean") {
198
74
  return value;
@@ -241,71 +117,6 @@ function commandAction(handler) {
241
117
  };
242
118
  }
243
119
 
244
- // src/cli/tokens.ts
245
- import { groupTokensByFile } from "tailwindcss-patch";
246
- async function collectTailwindTokens(patcher) {
247
- const candidate = patcher;
248
- if (candidate && typeof candidate.collectContentTokens === "function") {
249
- return candidate.collectContentTokens();
250
- }
251
- throw new Error("The current Tailwind CSS patcher does not support token collection.");
252
- }
253
- function formatTokenLine(entry) {
254
- return `${entry.relativeFile}:${entry.line}:${entry.column} ${entry.rawCandidate} (${entry.start}-${entry.end})`;
255
- }
256
- function formatGroupedPreview(map, limit = 3) {
257
- const files = Object.keys(map);
258
- if (files.length === 0) {
259
- return { preview: "", moreFiles: 0 };
260
- }
261
- const lines = files.slice(0, limit).map((file) => {
262
- const tokens = map[file];
263
- const samples = tokens.slice(0, 3).map((token) => token.rawCandidate).join(", ");
264
- const suffix = tokens.length > 3 ? ", ..." : "";
265
- return `${file}: ${tokens.length} tokens (${samples}${suffix})`;
266
- });
267
- const moreFiles = files.length > limit ? files.length - limit : 0;
268
- return {
269
- preview: lines.join("\n"),
270
- moreFiles
271
- };
272
- }
273
- function logTokenPreview(report, format, groupKey) {
274
- if (format === "lines") {
275
- const preview = report.entries.slice(0, 5).map(formatTokenLine);
276
- if (preview.length > 0) {
277
- logger.log("");
278
- for (const line of preview) {
279
- logger.info(line);
280
- }
281
- if (report.entries.length > 5) {
282
- logger.info(`...and ${report.entries.length - 5} more.`);
283
- }
284
- }
285
- return;
286
- }
287
- if (format === "grouped-json") {
288
- const grouped = groupTokensByFile(report, {
289
- key: groupKey,
290
- stripAbsolutePaths: groupKey !== "absolute"
291
- });
292
- const { preview, moreFiles } = formatGroupedPreview(grouped);
293
- if (preview) {
294
- logger.log("");
295
- logger.info(preview);
296
- if (moreFiles > 0) {
297
- logger.info(`...and ${moreFiles} more files.`);
298
- }
299
- }
300
- return;
301
- }
302
- const previewEntries = report.entries.slice(0, 3);
303
- if (previewEntries.length > 0) {
304
- logger.log("");
305
- logger.info(JSON.stringify(previewEntries, null, 2));
306
- }
307
- }
308
-
309
120
  // src/cli/vscode-entry.ts
310
121
  import { constants } from "fs";
311
122
  import { access, writeFile } from "fs/promises";
@@ -427,126 +238,78 @@ async function generateVscodeIntellisenseEntry(options) {
427
238
  }
428
239
 
429
240
  // src/cli.ts
430
- process3.title = "node (weapp-tailwindcss)";
431
- if (semver.lt(process3.versions.node, WEAPP_TW_REQUIRED_NODE_VERSION)) {
432
- logger.warn(
433
- `You are using Node.js ${process3.versions.node}. For weapp-tailwindcss, Node.js version >= v${WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
434
- );
435
- }
436
- var cli = cac("weapp-tailwindcss");
437
- cli.command("patch", "Apply Tailwind CSS runtime patches").alias("install").option("--cwd <dir>", "Working directory").option("--record-target", 'Write tailwindcss target metadata (node_modules/.cache/weapp-tailwindcss/tailwindcss-target.json). Pass "--record-target false" to skip.').option("--clear-cache", "Clear tailwindcss-patch cache before patch (opt-in)").action(
438
- commandAction(async (options) => {
439
- const resolvedCwd = resolveCliCwd(options.cwd);
440
- const ctx = createCliContext(void 0, resolvedCwd);
441
- const shouldClearCache = toBoolean(options.clearCache, false);
442
- if (shouldClearCache) {
443
- await clearTailwindcssPatcherCache(ctx.twPatcher, { removeDirectory: true });
444
- }
445
- logTailwindcssTarget("cli", ctx.twPatcher, ctx.tailwindcssBasedir);
446
- await ctx.twPatcher.patch();
447
- const shouldRecordTarget = toBoolean(options.recordTarget, true);
448
- if (shouldRecordTarget) {
449
- const recordPath = await saveCliPatchTargetRecord(ctx.tailwindcssBasedir, ctx.twPatcher);
450
- if (recordPath) {
451
- logger.info(`\u8BB0\u5F55 weapp-tw patch \u76EE\u6807 -> ${formatOutputPath(recordPath, resolvedCwd)}`);
452
- }
241
+ function handleCliError2(error) {
242
+ if (error instanceof Error) {
243
+ logger.error(error.message);
244
+ if (error.stack && process3.env.WEAPP_TW_DEBUG === "1") {
245
+ logger.error(error.stack);
453
246
  }
454
- logger.success("Tailwind CSS \u8FD0\u884C\u65F6\u8865\u4E01\u5DF2\u5B8C\u6210\u3002");
455
- })
456
- );
457
- cli.command("extract", "Collect generated class names into a cache file").option("--cwd <dir>", "Working directory").option("--output <file>", "Override output file path").option("--format <format>", "Output format (json|lines)").option("--css <file>", "Tailwind CSS entry CSS when using v4").option("--no-write", "Skip writing to disk").action(
458
- commandAction(async (options) => {
459
- const resolvedCwd = resolveCliCwd(options.cwd);
460
- const outputPath = readStringOption("output", options.output);
461
- const formatOption = readStringOption("format", options.format);
462
- const cssOption = readStringOption("css", options.css);
463
- const overrides = {};
464
- if (cssOption) {
465
- overrides.cssEntries = [resolveEntry(cssOption, resolvedCwd)];
247
+ } else {
248
+ logger.error(String(error));
249
+ }
250
+ }
251
+ function withCommandErrorHandling(handler) {
252
+ return (async (ctx, next) => {
253
+ try {
254
+ return await handler(ctx, next);
255
+ } catch (error) {
256
+ handleCliError2(error);
257
+ process3.exitCode = 1;
258
+ return void 0;
466
259
  }
467
- const normalizedFormat = normalizeExtractFormat(formatOption);
468
- const outputOverrides = buildTailwindcssPatcherOptions(
469
- normalizedFormat || outputPath ? {
470
- output: {
471
- file: outputPath,
472
- format: normalizedFormat
260
+ });
261
+ }
262
+ var mountOptions = {
263
+ commandOptions: {
264
+ install: {
265
+ name: "patch",
266
+ aliases: ["install"],
267
+ optionDefs: [
268
+ {
269
+ flags: "--record-target",
270
+ description: 'Write tailwindcss target metadata (node_modules/.cache/weapp-tailwindcss/tailwindcss-target.json). Pass "--record-target false" to skip.',
271
+ config: { default: true }
272
+ },
273
+ {
274
+ flags: "--clear-cache",
275
+ description: "Clear tailwindcss-patch cache before patch (opt-in)"
473
276
  }
474
- } : void 0
475
- );
476
- if (outputOverrides) {
477
- overrides.tailwindcssPatcherOptions = outputOverrides;
277
+ ]
478
278
  }
479
- const ctx = createCliContext(overrides, resolvedCwd);
480
- const write = toBoolean(options.write, true);
481
- const result = await ctx.twPatcher.extract({ write });
482
- const classCount = result?.classList?.length ?? result?.classSet?.size ?? 0;
483
- if (result?.filename) {
484
- logger.success(`Collected ${classCount} classes -> ${formatOutputPath(result.filename, resolvedCwd)}`);
485
- } else {
486
- logger.success(`Collected ${classCount} classes.`);
487
- }
488
- })
489
- );
490
- cli.command("tokens", "Extract Tailwind tokens with location metadata").option("--cwd <dir>", "Working directory").option("--output <file>", "Override output file path").option("--format <format>", "Output format (json|lines|grouped-json)").option("--group-key <key>", "Grouping key for grouped-json output (relative|absolute)").option("--no-write", "Skip writing to disk").action(
491
- commandAction(async (options) => {
492
- const resolvedCwd = resolveCliCwd(options.cwd);
493
- const outputPath = readStringOption("output", options.output);
494
- const formatInput = readStringOption("format", options.format);
495
- const groupKeyInput = readStringOption("group-key", options.groupKey);
496
- const format = normalizeTokenFormat(formatInput ?? "json");
497
- const groupKey = groupKeyInput === "absolute" ? "absolute" : "relative";
498
- const write = toBoolean(options.write, true);
499
- const ctx = createCliContext(void 0, resolvedCwd);
500
- const report = await collectTailwindTokens(ctx.twPatcher);
501
- const baseDir = resolvedCwd ?? process3.cwd();
502
- if (write) {
503
- const targetRelative = outputPath ?? ".tw-patch/tw-token-report.json";
504
- const target = path4.resolve(baseDir, targetRelative);
505
- await ensureDir(path4.dirname(target));
506
- if (format === "json") {
507
- await writeFile2(target, `${JSON.stringify(report, null, 2)}
508
- `, "utf8");
509
- } else if (format === "grouped-json") {
510
- const grouped = groupTokensByFile2(report, {
511
- key: groupKey,
512
- stripAbsolutePaths: groupKey !== "absolute"
513
- });
514
- await writeFile2(target, `${JSON.stringify(grouped, null, 2)}
515
- `, "utf8");
516
- } else {
517
- const lines = report.entries.map(formatTokenLine);
518
- await writeFile2(target, `${lines.join("\n")}
519
- `, "utf8");
279
+ },
280
+ commandHandlers: {
281
+ install: withCommandErrorHandling(async (ctx) => {
282
+ const shouldClearCache = toBoolean(ctx.args.clearCache, false);
283
+ const shouldRecordTarget = toBoolean(ctx.args.recordTarget, true);
284
+ const patcher = await ctx.createPatcher();
285
+ if (shouldClearCache) {
286
+ await clearTailwindcssPatcherCache(patcher, { removeDirectory: true });
520
287
  }
521
- logger.success(
522
- `Collected ${report.entries.length} tokens (${format}) -> ${formatOutputPath(target, resolvedCwd)}`
523
- );
524
- } else {
525
- logger.success(`Collected ${report.entries.length} tokens from ${report.filesScanned} files.`);
526
- logTokenPreview(report, format, groupKey);
527
- }
528
- if (report.skippedFiles.length > 0) {
529
- logger.warn("Skipped files:");
530
- for (const skipped of report.skippedFiles) {
531
- logger.warn(` - ${skipped.file} (${skipped.reason})`);
288
+ logTailwindcssTarget("cli", patcher, ctx.cwd);
289
+ await patcher.patch();
290
+ if (shouldRecordTarget) {
291
+ const recordPath = await saveCliPatchTargetRecord(ctx.cwd, patcher);
292
+ if (recordPath) {
293
+ logger.info(`\u8BB0\u5F55 weapp-tw patch \u76EE\u6807 -> ${formatOutputPath(recordPath, ctx.cwd)}`);
294
+ }
532
295
  }
533
- }
534
- })
535
- );
536
- cli.command("init", "Generate a tailwindcss-patch config file").option("--cwd <dir>", "Working directory").action(
537
- commandAction(async (options) => {
538
- const resolvedCwd = resolveCliCwd(options.cwd);
539
- const moduleResult = await loadTailwindcssMangleConfig();
540
- if (!moduleResult) {
541
- logger.error("Unable to load @tailwindcss-mangle/config. Please install tailwindcss-patch >= 8.2.0.");
542
- process3.exitCode = 1;
543
- return;
544
- }
545
- const cwd = resolvedCwd ?? process3.cwd();
546
- await moduleResult.initConfig(cwd);
547
- logger.success(`${moduleResult.CONFIG_NAME}.config.ts initialized.`);
548
- })
549
- );
296
+ logger.success("Tailwind CSS \u8FD0\u884C\u65F6\u8865\u4E01\u5DF2\u5B8C\u6210\u3002");
297
+ }),
298
+ extract: withCommandErrorHandling(async (_ctx, next) => next()),
299
+ tokens: withCommandErrorHandling(async (_ctx, next) => next()),
300
+ init: withCommandErrorHandling(async (_ctx, next) => next())
301
+ }
302
+ };
303
+ process3.title = "node (weapp-tailwindcss)";
304
+ if (semver.lt(process3.versions.node, WEAPP_TW_REQUIRED_NODE_VERSION)) {
305
+ logger.warn(
306
+ `You are using Node.js ${process3.versions.node}. For weapp-tailwindcss, Node.js version >= v${WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
307
+ );
308
+ }
309
+ var cli = createTailwindcssPatchCli({
310
+ name: "weapp-tailwindcss",
311
+ mountOptions
312
+ });
550
313
  cli.command("vscode-entry", "Generate a VS Code helper CSS for Tailwind IntelliSense").option("--cwd <dir>", "Working directory").option("--css <file>", "Path to the CSS file that imports weapp-tailwindcss (required)").option("--output <file>", `Helper output path. Defaults to ${DEFAULT_VSCODE_ENTRY_OUTPUT}`).option("--source <pattern>", "Additional @source glob (can be repeated)").option("--force", "Overwrite the helper file when it already exists").action(
551
314
  commandAction(async (options) => {
552
315
  const resolvedCwd = resolveCliCwd(options.cwd);
package/dist/core.js CHANGED
@@ -3,25 +3,25 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkACSKKIYMjs = require('./chunk-ACSKKIYM.js');
7
- require('./chunk-467NHGLF.js');
6
+ var _chunkAXEKXGG7js = require('./chunk-AXEKXGG7.js');
7
+ require('./chunk-ZXU4EYKV.js');
8
8
  require('./chunk-ZSTF2AEN.js');
9
9
  require('./chunk-UW3WHSZ5.js');
10
- require('./chunk-UJIUFWXE.js');
10
+ require('./chunk-WGLBMNPG.js');
11
11
 
12
12
  // src/core.ts
13
13
  var _shared = require('@weapp-tailwindcss/shared');
14
14
  function createContext(options = {}) {
15
- const opts = _chunkACSKKIYMjs.getCompilerContext.call(void 0, options);
15
+ const opts = _chunkAXEKXGG7js.getCompilerContext.call(void 0, options);
16
16
  const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
17
17
  let runtimeSet = /* @__PURE__ */ new Set();
18
18
  const runtimeState = {
19
19
  twPatcher: initialTwPatcher,
20
- patchPromise: _chunkACSKKIYMjs.createTailwindPatchPromise.call(void 0, initialTwPatcher),
20
+ patchPromise: _chunkAXEKXGG7js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
21
21
  refreshTailwindcssPatcher
22
22
  };
23
23
  async function refreshRuntimeState(force) {
24
- await _chunkACSKKIYMjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
24
+ await _chunkAXEKXGG7js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
25
25
  }
26
26
  async function transformWxss(rawCss, options2) {
27
27
  await runtimeState.patchPromise;
@@ -30,7 +30,7 @@ function createContext(options = {}) {
30
30
  }));
31
31
  await refreshRuntimeState(true);
32
32
  await runtimeState.patchPromise;
33
- runtimeSet = await _chunkACSKKIYMjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
33
+ runtimeSet = await _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
34
34
  return result;
35
35
  }
36
36
  async function transformJs(rawJs, options2 = {}) {
@@ -40,7 +40,7 @@ function createContext(options = {}) {
40
40
  } else {
41
41
  await refreshRuntimeState(true);
42
42
  await runtimeState.patchPromise;
43
- runtimeSet = await _chunkACSKKIYMjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
43
+ runtimeSet = await _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
44
44
  }
45
45
  return await jsHandler(rawJs, runtimeSet, options2);
46
46
  }
@@ -49,7 +49,7 @@ function createContext(options = {}) {
49
49
  if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
50
50
  await refreshRuntimeState(true);
51
51
  await runtimeState.patchPromise;
52
- runtimeSet = await _chunkACSKKIYMjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
52
+ runtimeSet = await _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
53
53
  }
54
54
  return templateHandler(rawWxml, _shared.defuOverrideArray.call(void 0, options2, {
55
55
  runtimeSet
package/dist/core.mjs CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  createTailwindPatchPromise,
4
4
  getCompilerContext,
5
5
  refreshTailwindRuntimeState
6
- } from "./chunk-W4ERVC6L.mjs";
7
- import "./chunk-HCXLLOIU.mjs";
6
+ } from "./chunk-WTOLVORM.mjs";
7
+ import "./chunk-7KTLLGAG.mjs";
8
8
  import "./chunk-DKPIYG24.mjs";
9
9
  import "./chunk-ZNKIYZRQ.mjs";
10
- import "./chunk-QGH4JZRW.mjs";
10
+ import "./chunk-JMYADIPN.mjs";
11
11
 
12
12
  // src/core.ts
13
13
  import { defuOverrideArray } from "@weapp-tailwindcss/shared";
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  var _chunkNS3NEDWDjs = require('../chunk-NS3NEDWD.js');
6
- require('../chunk-UJIUFWXE.js');
6
+ require('../chunk-WGLBMNPG.js');
7
7
 
8
8
  // src/css-macro/postcss.ts
9
9
  var creator = () => {
@@ -3,7 +3,7 @@ import {
3
3
  ifndef,
4
4
  matchCustomPropertyFromValue
5
5
  } from "../chunk-RGXLY3HG.mjs";
6
- import "../chunk-QGH4JZRW.mjs";
6
+ import "../chunk-JMYADIPN.mjs";
7
7
 
8
8
  // src/css-macro/postcss.ts
9
9
  var creator = () => {
package/dist/css-macro.js CHANGED
@@ -5,7 +5,7 @@ var _chunkNS3NEDWDjs = require('./chunk-NS3NEDWD.js');
5
5
 
6
6
 
7
7
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
8
- require('./chunk-UJIUFWXE.js');
8
+ require('./chunk-WGLBMNPG.js');
9
9
 
10
10
  // src/css-macro/index.ts
11
11
  var _plugin = require('tailwindcss/plugin'); var _plugin2 = _interopRequireDefault(_plugin);
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  defu
7
7
  } from "./chunk-ZNKIYZRQ.mjs";
8
- import "./chunk-QGH4JZRW.mjs";
8
+ import "./chunk-JMYADIPN.mjs";
9
9
 
10
10
  // src/css-macro/index.ts
11
11
  import plugin from "tailwindcss/plugin";
package/dist/defaults.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _chunkZSTF2AENjs = require('./chunk-ZSTF2AEN.js');
4
4
  require('./chunk-UW3WHSZ5.js');
5
- require('./chunk-UJIUFWXE.js');
5
+ require('./chunk-WGLBMNPG.js');
6
6
 
7
7
 
8
8
  exports.getDefaultOptions = _chunkZSTF2AENjs.getDefaultOptions;
package/dist/defaults.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  getDefaultOptions
3
3
  } from "./chunk-DKPIYG24.mjs";
4
4
  import "./chunk-ZNKIYZRQ.mjs";
5
- import "./chunk-QGH4JZRW.mjs";
5
+ import "./chunk-JMYADIPN.mjs";
6
6
  export {
7
7
  getDefaultOptions
8
8
  };
package/dist/gulp.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkK7AD7FLJjs = require('./chunk-K7AD7FLJ.js');
3
+ var _chunkMG4O3AGNjs = require('./chunk-MG4O3AGN.js');
4
4
  require('./chunk-LTJQUORK.js');
5
- require('./chunk-ACSKKIYM.js');
6
- require('./chunk-467NHGLF.js');
5
+ require('./chunk-AXEKXGG7.js');
6
+ require('./chunk-ZXU4EYKV.js');
7
7
  require('./chunk-ZSTF2AEN.js');
8
8
  require('./chunk-UW3WHSZ5.js');
9
- require('./chunk-UJIUFWXE.js');
9
+ require('./chunk-WGLBMNPG.js');
10
10
 
11
11
 
12
- exports.createPlugins = _chunkK7AD7FLJjs.createPlugins;
12
+ exports.createPlugins = _chunkMG4O3AGNjs.createPlugins;
package/dist/gulp.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createPlugins
3
- } from "./chunk-5BZA7BAP.mjs";
3
+ } from "./chunk-NLLCK6RM.mjs";
4
4
  import "./chunk-RRHPTTCP.mjs";
5
- import "./chunk-W4ERVC6L.mjs";
6
- import "./chunk-HCXLLOIU.mjs";
5
+ import "./chunk-WTOLVORM.mjs";
6
+ import "./chunk-7KTLLGAG.mjs";
7
7
  import "./chunk-DKPIYG24.mjs";
8
8
  import "./chunk-ZNKIYZRQ.mjs";
9
- import "./chunk-QGH4JZRW.mjs";
9
+ import "./chunk-JMYADIPN.mjs";
10
10
  export {
11
11
  createPlugins
12
12
  };
package/dist/index.js CHANGED
@@ -2,24 +2,24 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkIXZDFEPLjs = require('./chunk-IXZDFEPL.js');
6
- require('./chunk-JPLWILCP.js');
5
+ var _chunk6EATUPTNjs = require('./chunk-6EATUPTN.js');
6
+ require('./chunk-47NJZTIW.js');
7
7
 
8
8
 
9
- var _chunkK7AD7FLJjs = require('./chunk-K7AD7FLJ.js');
9
+ var _chunkMG4O3AGNjs = require('./chunk-MG4O3AGN.js');
10
10
 
11
11
 
12
- var _chunkZ6IWSDU3js = require('./chunk-Z6IWSDU3.js');
13
- require('./chunk-H34KPZQW.js');
12
+ var _chunk5P342MNSjs = require('./chunk-5P342MNS.js');
13
+ require('./chunk-K234IGOT.js');
14
14
  require('./chunk-LTJQUORK.js');
15
- require('./chunk-ACSKKIYM.js');
16
- require('./chunk-467NHGLF.js');
15
+ require('./chunk-AXEKXGG7.js');
16
+ require('./chunk-ZXU4EYKV.js');
17
17
  require('./chunk-ZSTF2AEN.js');
18
18
  require('./chunk-UW3WHSZ5.js');
19
- require('./chunk-UJIUFWXE.js');
19
+ require('./chunk-WGLBMNPG.js');
20
20
 
21
21
 
22
22
 
23
23
 
24
24
 
25
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkZ6IWSDU3js.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkIXZDFEPLjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkK7AD7FLJjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkIXZDFEPLjs.weappTailwindcssPackageDir;
25
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunk5P342MNSjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk6EATUPTNjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkMG4O3AGNjs.createPlugins; exports.weappTailwindcssPackageDir = _chunk6EATUPTNjs.weappTailwindcssPackageDir;
package/dist/index.mjs CHANGED
@@ -2,21 +2,21 @@ import "./chunk-YAN7TO2B.mjs";
2
2
  import {
3
3
  UnifiedWebpackPluginV5,
4
4
  weappTailwindcssPackageDir
5
- } from "./chunk-OJRQGFJR.mjs";
6
- import "./chunk-GVPBDBX4.mjs";
5
+ } from "./chunk-IHJU6M6B.mjs";
6
+ import "./chunk-KSHK56CW.mjs";
7
7
  import {
8
8
  createPlugins
9
- } from "./chunk-5BZA7BAP.mjs";
9
+ } from "./chunk-NLLCK6RM.mjs";
10
10
  import {
11
11
  UnifiedViteWeappTailwindcssPlugin
12
- } from "./chunk-6OTI5FPH.mjs";
12
+ } from "./chunk-UUVGNRUM.mjs";
13
13
  import "./chunk-JW7P34IH.mjs";
14
14
  import "./chunk-RRHPTTCP.mjs";
15
- import "./chunk-W4ERVC6L.mjs";
16
- import "./chunk-HCXLLOIU.mjs";
15
+ import "./chunk-WTOLVORM.mjs";
16
+ import "./chunk-7KTLLGAG.mjs";
17
17
  import "./chunk-DKPIYG24.mjs";
18
18
  import "./chunk-ZNKIYZRQ.mjs";
19
- import "./chunk-QGH4JZRW.mjs";
19
+ import "./chunk-JMYADIPN.mjs";
20
20
  export {
21
21
  UnifiedViteWeappTailwindcssPlugin,
22
22
  UnifiedWebpackPluginV5,