weapp-tailwindcss 4.7.9 → 4.7.10-alpha.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.
@@ -288,7 +288,7 @@ var DEFAULT_RUNTIME_PACKAGE_REPLACEMENTS = {
288
288
 
289
289
  // src/context/index.ts
290
290
  import { rm } from "fs/promises";
291
- import { logger as logger3, pc } from "@weapp-tailwindcss/logger";
291
+ import { logger as logger4, pc } from "@weapp-tailwindcss/logger";
292
292
 
293
293
  // src/cache/index.ts
294
294
  import { LRUCache } from "lru-cache";
@@ -393,6 +393,177 @@ function initializeCache(cacheConfig) {
393
393
  return cacheConfig;
394
394
  }
395
395
 
396
+ // src/context/compiler-context-cache.ts
397
+ import { Buffer } from "buffer";
398
+ import { logger as logger2 } from "@weapp-tailwindcss/logger";
399
+ var globalCacheHolder = globalThis;
400
+ var compilerContextCache = globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ ?? (globalCacheHolder.__WEAPP_TW_COMPILER_CONTEXT_CACHE__ = /* @__PURE__ */ new Map());
401
+ function compareNormalizedValues(a, b) {
402
+ const aStr = JSON.stringify(a);
403
+ const bStr = JSON.stringify(b);
404
+ return aStr.localeCompare(bStr);
405
+ }
406
+ function withCircularGuard(value, stack, factory) {
407
+ if (stack.has(value)) {
408
+ throw new TypeError("Cannot serialize circular structure in compiler context options");
409
+ }
410
+ stack.add(value);
411
+ try {
412
+ return factory();
413
+ } finally {
414
+ stack.delete(value);
415
+ }
416
+ }
417
+ function encodeTaggedValue(type, value) {
418
+ const record = { __type: type };
419
+ if (value !== void 0) {
420
+ record.value = value;
421
+ }
422
+ return record;
423
+ }
424
+ function normalizeOptionsValue(rawValue, stack = /* @__PURE__ */ new WeakSet()) {
425
+ if (rawValue === null) {
426
+ return null;
427
+ }
428
+ if (rawValue === void 0) {
429
+ return encodeTaggedValue("Undefined");
430
+ }
431
+ const type = typeof rawValue;
432
+ if (type === "string") {
433
+ return rawValue;
434
+ }
435
+ if (type === "boolean") {
436
+ return rawValue;
437
+ }
438
+ if (type === "number") {
439
+ const numericValue = rawValue;
440
+ if (Number.isNaN(numericValue)) {
441
+ return encodeTaggedValue("Number", "NaN");
442
+ }
443
+ if (!Number.isFinite(numericValue)) {
444
+ return encodeTaggedValue("Number", numericValue > 0 ? "Infinity" : "-Infinity");
445
+ }
446
+ if (Object.is(numericValue, -0)) {
447
+ return encodeTaggedValue("Number", "-0");
448
+ }
449
+ return numericValue;
450
+ }
451
+ if (type === "bigint") {
452
+ return encodeTaggedValue("BigInt", rawValue.toString());
453
+ }
454
+ if (type === "symbol") {
455
+ const symbolValue = rawValue;
456
+ return encodeTaggedValue("Symbol", symbolValue.description ?? String(symbolValue));
457
+ }
458
+ if (type === "function") {
459
+ return encodeTaggedValue("Function", rawValue.toString());
460
+ }
461
+ if (Array.isArray(rawValue)) {
462
+ return withCircularGuard(rawValue, stack, () => rawValue.map((item) => normalizeOptionsValue(item, stack)));
463
+ }
464
+ if (rawValue instanceof Date) {
465
+ return encodeTaggedValue("Date", rawValue.toISOString());
466
+ }
467
+ if (rawValue instanceof RegExp) {
468
+ return {
469
+ __type: "RegExp",
470
+ source: rawValue.source,
471
+ flags: rawValue.flags
472
+ };
473
+ }
474
+ if (typeof Buffer !== "undefined" && Buffer.isBuffer(rawValue)) {
475
+ return encodeTaggedValue("Buffer", rawValue.toString("base64"));
476
+ }
477
+ if (ArrayBuffer.isView(rawValue)) {
478
+ const view = rawValue;
479
+ const buffer = Buffer.from(view.buffer, view.byteOffset, view.byteLength);
480
+ return encodeTaggedValue(view.constructor?.name ?? "ArrayBufferView", buffer.toString("base64"));
481
+ }
482
+ if (rawValue instanceof ArrayBuffer) {
483
+ return encodeTaggedValue("ArrayBuffer", Buffer.from(rawValue).toString("base64"));
484
+ }
485
+ if (rawValue instanceof Set) {
486
+ return withCircularGuard(rawValue, stack, () => {
487
+ const normalizedEntries = Array.from(rawValue, (element) => normalizeOptionsValue(element, stack));
488
+ normalizedEntries.sort(compareNormalizedValues);
489
+ return {
490
+ __type: "Set",
491
+ value: normalizedEntries
492
+ };
493
+ });
494
+ }
495
+ if (rawValue instanceof Map) {
496
+ return withCircularGuard(rawValue, stack, () => {
497
+ const normalizedEntries = Array.from(rawValue.entries()).map(([key, entryValue]) => ({
498
+ key: normalizeOptionsValue(key, stack),
499
+ value: normalizeOptionsValue(entryValue, stack)
500
+ }));
501
+ normalizedEntries.sort((a, b) => compareNormalizedValues(a.key, b.key));
502
+ return {
503
+ __type: "Map",
504
+ value: normalizedEntries.map((entry) => [entry.key, entry.value])
505
+ };
506
+ });
507
+ }
508
+ if (typeof URL !== "undefined" && rawValue instanceof URL) {
509
+ return encodeTaggedValue("URL", rawValue.toString());
510
+ }
511
+ if (rawValue instanceof Error) {
512
+ const errorValue = rawValue;
513
+ return {
514
+ __type: "Error",
515
+ name: errorValue.name,
516
+ message: errorValue.message,
517
+ stack: errorValue.stack ?? ""
518
+ };
519
+ }
520
+ if (rawValue instanceof Promise) {
521
+ return encodeTaggedValue("Promise");
522
+ }
523
+ if (rawValue instanceof WeakMap) {
524
+ return encodeTaggedValue("WeakMap");
525
+ }
526
+ if (rawValue instanceof WeakSet) {
527
+ return encodeTaggedValue("WeakSet");
528
+ }
529
+ if (rawValue && typeof rawValue === "object") {
530
+ return withCircularGuard(rawValue, stack, () => {
531
+ const result = {};
532
+ const entries = Object.entries(rawValue);
533
+ entries.sort(([a], [b]) => a.localeCompare(b));
534
+ for (const [key, entryValue] of entries) {
535
+ result[key] = normalizeOptionsValue(entryValue, stack);
536
+ }
537
+ return result;
538
+ });
539
+ }
540
+ return encodeTaggedValue(typeof rawValue, String(rawValue));
541
+ }
542
+ function createCompilerContextCacheKey(opts) {
543
+ try {
544
+ const normalized = normalizeOptionsValue(opts ?? {});
545
+ const serialized = JSON.stringify(normalized);
546
+ return md5(serialized);
547
+ } catch (error) {
548
+ logger2.debug("skip compiler context cache: %O", error);
549
+ return void 0;
550
+ }
551
+ }
552
+ function withCompilerContextCache(opts, factory) {
553
+ const cacheKey = createCompilerContextCacheKey(opts);
554
+ if (cacheKey) {
555
+ const cached = compilerContextCache.get(cacheKey);
556
+ if (cached) {
557
+ return cached;
558
+ }
559
+ }
560
+ const ctx = factory();
561
+ if (cacheKey) {
562
+ compilerContextCache.set(cacheKey, ctx);
563
+ }
564
+ return ctx;
565
+ }
566
+
396
567
  // src/context/custom-attributes.ts
397
568
  function toCustomAttributesEntities(customAttributes) {
398
569
  if (!customAttributes) {
@@ -2201,7 +2372,7 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
2201
2372
  }
2202
2373
 
2203
2374
  // src/context/logger.ts
2204
- import { logger as logger2 } from "@weapp-tailwindcss/logger";
2375
+ import { logger as logger3 } from "@weapp-tailwindcss/logger";
2205
2376
  var loggerLevelMap = {
2206
2377
  error: 0,
2207
2378
  warn: 1,
@@ -2209,7 +2380,7 @@ var loggerLevelMap = {
2209
2380
  silent: -999
2210
2381
  };
2211
2382
  function applyLoggerLevel(logLevel) {
2212
- logger2.level = loggerLevelMap[logLevel ?? "info"] ?? loggerLevelMap.info;
2383
+ logger3.level = loggerLevelMap[logLevel ?? "info"] ?? loggerLevelMap.info;
2213
2384
  }
2214
2385
 
2215
2386
  // src/context/index.ts
@@ -2293,11 +2464,11 @@ async function clearTailwindcssPatcherCache(patcher, options) {
2293
2464
  if (err?.code === "ENOENT") {
2294
2465
  continue;
2295
2466
  }
2296
- logger3.debug("failed to clear tailwindcss patcher cache: %s %O", cachePath, err);
2467
+ logger4.debug("failed to clear tailwindcss patcher cache: %s %O", cachePath, err);
2297
2468
  }
2298
2469
  }
2299
2470
  }
2300
- function getCompilerContext(opts) {
2471
+ function createInternalCompilerContext(opts) {
2301
2472
  const ctx = defuOverrideArray(
2302
2473
  opts,
2303
2474
  getDefaultOptions(),
@@ -2308,9 +2479,9 @@ function getCompilerContext(opts) {
2308
2479
  const twPatcher = createTailwindcssPatcherFromContext(ctx);
2309
2480
  logTailwindcssTarget("runtime", twPatcher, ctx.tailwindcssBasedir);
2310
2481
  if (twPatcher.packageInfo?.version) {
2311
- logger3.success(`\u5F53\u524D\u4F7F\u7528 ${pc.cyanBright("Tailwind CSS")} \u7248\u672C\u4E3A: ${pc.underline(pc.bold(pc.green(twPatcher.packageInfo.version)))}`);
2482
+ logger4.success(`\u5F53\u524D\u4F7F\u7528 ${pc.cyanBright("Tailwind CSS")} \u7248\u672C\u4E3A: ${pc.underline(pc.bold(pc.green(twPatcher.packageInfo.version)))}`);
2312
2483
  } else {
2313
- logger3.warn(`${pc.cyanBright("Tailwind CSS")} \u672A\u5B89\u88C5\uFF0C\u5DF2\u8DF3\u8FC7\u7248\u672C\u68C0\u6D4B\u4E0E\u8865\u4E01\u5E94\u7528\u3002`);
2484
+ logger4.warn(`${pc.cyanBright("Tailwind CSS")} \u672A\u5B89\u88C5\uFF0C\u5DF2\u8DF3\u8FC7\u7248\u672C\u68C0\u6D4B\u4E0E\u8865\u4E01\u5E94\u7528\u3002`);
2314
2485
  }
2315
2486
  warnIfCliPatchTargetMismatch(ctx.tailwindcssBasedir, twPatcher);
2316
2487
  let cssCalcOptions = ctx.cssCalc ?? twPatcher.majorVersion === 4;
@@ -2347,6 +2518,9 @@ function getCompilerContext(opts) {
2347
2518
  });
2348
2519
  return ctx;
2349
2520
  }
2521
+ function getCompilerContext(opts) {
2522
+ return withCompilerContextCache(opts, () => createInternalCompilerContext(opts));
2523
+ }
2350
2524
 
2351
2525
  export {
2352
2526
  createDebug,
@@ -17,7 +17,7 @@ var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkHPVYHFXXjs = require('./chunk-HPVYHFXX.js');
20
+ var _chunkAEIEPXO3js = require('./chunk-AEIEPXO3.js');
21
21
 
22
22
 
23
23
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
@@ -49,7 +49,7 @@ function updateStaticAttribute(ms, prop) {
49
49
  const start = prop.value.loc.start.offset + 1;
50
50
  const end = prop.value.loc.end.offset - 1;
51
51
  if (start < end) {
52
- ms.update(start, end, _chunkHPVYHFXXjs.replaceWxml.call(void 0, prop.value.content));
52
+ ms.update(start, end, _chunkAEIEPXO3js.replaceWxml.call(void 0, prop.value.content));
53
53
  }
54
54
  }
55
55
  function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
@@ -61,7 +61,7 @@ function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
61
61
  if (start >= end) {
62
62
  return;
63
63
  }
64
- const generated = _chunkHPVYHFXXjs.generateCode.call(void 0, prop.exp.content, {
64
+ const generated = _chunkAEIEPXO3js.generateCode.call(void 0, prop.exp.content, {
65
65
  jsHandler,
66
66
  runtimeSet,
67
67
  wrapExpression: true
@@ -90,7 +90,7 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
90
90
  return;
91
91
  }
92
92
  const { customAttributesEntities, disabledDefaultTemplateHandler = false } = options;
93
- const matchCustomAttribute = _chunkHPVYHFXXjs.createAttributeMatcher.call(void 0, customAttributesEntities);
93
+ const matchCustomAttribute = _chunkAEIEPXO3js.createAttributeMatcher.call(void 0, customAttributesEntities);
94
94
  const ms = new (0, _magicstring2.default)(code);
95
95
  const { descriptor, errors } = _compilersfc.parse.call(void 0, code);
96
96
  if (errors.length === 0) {
@@ -213,7 +213,7 @@ async function formatPostcssSourceMap(rawMap, file) {
213
213
  }
214
214
 
215
215
  // src/bundlers/vite/index.ts
216
- var debug = _chunkHPVYHFXXjs.createDebug.call(void 0, );
216
+ var debug = _chunkAEIEPXO3js.createDebug.call(void 0, );
217
217
  function readOutputEntry(entry) {
218
218
  if (entry.output.type === "chunk") {
219
219
  return entry.output.code;
@@ -280,7 +280,7 @@ function applyLinkedResults(linked, entries, onLinkedUpdate, onApplied) {
280
280
  }
281
281
  }
282
282
  function UnifiedViteWeappTailwindcssPlugin(options = {}) {
283
- const opts = _chunkHPVYHFXXjs.getCompilerContext.call(void 0, options);
283
+ const opts = _chunkAEIEPXO3js.getCompilerContext.call(void 0, options);
284
284
  const {
285
285
  disabled,
286
286
  customAttributes,
@@ -302,17 +302,17 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
302
302
  if (disabled) {
303
303
  return;
304
304
  }
305
- const customAttributesEntities = _chunkHPVYHFXXjs.toCustomAttributesEntities.call(void 0, customAttributes);
305
+ const customAttributesEntities = _chunkAEIEPXO3js.toCustomAttributesEntities.call(void 0, customAttributes);
306
306
  const runtimeState = {
307
307
  twPatcher: initialTwPatcher,
308
- patchPromise: _chunkHPVYHFXXjs.createTailwindPatchPromise.call(void 0, initialTwPatcher),
308
+ patchPromise: _chunkAEIEPXO3js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
309
309
  refreshTailwindcssPatcher
310
310
  };
311
311
  let runtimeSet;
312
312
  let runtimeSetPromise;
313
313
  let resolvedConfig;
314
314
  async function refreshRuntimeState(force) {
315
- const refreshed = await _chunkHPVYHFXXjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
315
+ const refreshed = await _chunkAEIEPXO3js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
316
316
  if (refreshed) {
317
317
  runtimeSet = void 0;
318
318
  runtimeSetPromise = void 0;
@@ -325,7 +325,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
325
325
  return runtimeSet;
326
326
  }
327
327
  if (force || !runtimeSetPromise) {
328
- const task2 = _chunkHPVYHFXXjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
328
+ const task2 = _chunkAEIEPXO3js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
329
329
  force: force || !runtimeSet,
330
330
  skipRefresh: force
331
331
  });
@@ -344,7 +344,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
344
344
  onLoad();
345
345
  const plugins = [
346
346
  {
347
- name: `${_chunkHPVYHFXXjs.vitePluginName}:post`,
347
+ name: `${_chunkAEIEPXO3js.vitePluginName}:post`,
348
348
  enforce: "post",
349
349
  configResolved(config) {
350
350
  resolvedConfig = config;
@@ -16,7 +16,7 @@ import {
16
16
  getCompilerContext,
17
17
  pluginName,
18
18
  refreshTailwindRuntimeState
19
- } from "./chunk-TPBIR7NL.mjs";
19
+ } from "./chunk-J7OY4W53.mjs";
20
20
  import {
21
21
  getGroupedEntries
22
22
  } from "./chunk-ZNKIYZRQ.mjs";
@@ -17,7 +17,7 @@ import {
17
17
  replaceWxml,
18
18
  toCustomAttributesEntities,
19
19
  vitePluginName
20
- } from "./chunk-TPBIR7NL.mjs";
20
+ } from "./chunk-J7OY4W53.mjs";
21
21
  import {
22
22
  getGroupedEntries
23
23
  } from "./chunk-ZNKIYZRQ.mjs";
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ var _chunkOXASK55Qjs = require('./chunk-OXASK55Q.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkHPVYHFXXjs = require('./chunk-HPVYHFXX.js');
10
+ var _chunkAEIEPXO3js = require('./chunk-AEIEPXO3.js');
11
11
  require('./chunk-KMCQEHJM.js');
12
12
  require('./chunk-SMYOFNHJ.js');
13
13
 
@@ -124,7 +124,7 @@ function createCliContext(overrides, resolvedCwd) {
124
124
  current
125
125
  );
126
126
  }
127
- return _chunkHPVYHFXXjs.getCompilerContext.call(void 0, userOptions);
127
+ return _chunkAEIEPXO3js.getCompilerContext.call(void 0, userOptions);
128
128
  }
129
129
  function formatOutputPath(target, baseDir) {
130
130
  const root = _nullishCoalesce(baseDir, () => ( _process2.default.cwd()));
@@ -289,9 +289,9 @@ function logTokenPreview(report, format, groupKey) {
289
289
 
290
290
  // src/cli.ts
291
291
  _process2.default.title = "node (weapp-tailwindcss)";
292
- if (_semver2.default.lt(_process2.default.versions.node, _chunkHPVYHFXXjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
292
+ if (_semver2.default.lt(_process2.default.versions.node, _chunkAEIEPXO3js.WEAPP_TW_REQUIRED_NODE_VERSION)) {
293
293
  _chunkOXASK55Qjs.logger.warn(
294
- `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkHPVYHFXXjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
294
+ `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkAEIEPXO3js.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
295
295
  );
296
296
  }
297
297
  var cli = _cac2.default.call(void 0, "weapp-tailwindcss");
@@ -301,13 +301,13 @@ cli.command("patch", "Apply Tailwind CSS runtime patches").alias("install").opti
301
301
  const ctx = createCliContext(void 0, resolvedCwd);
302
302
  const shouldClearCache = toBoolean(options.clearCache, false);
303
303
  if (shouldClearCache) {
304
- await _chunkHPVYHFXXjs.clearTailwindcssPatcherCache.call(void 0, ctx.twPatcher, { removeDirectory: true });
304
+ await _chunkAEIEPXO3js.clearTailwindcssPatcherCache.call(void 0, ctx.twPatcher, { removeDirectory: true });
305
305
  }
306
- _chunkHPVYHFXXjs.logTailwindcssTarget.call(void 0, "cli", ctx.twPatcher, ctx.tailwindcssBasedir);
306
+ _chunkAEIEPXO3js.logTailwindcssTarget.call(void 0, "cli", ctx.twPatcher, ctx.tailwindcssBasedir);
307
307
  await ctx.twPatcher.patch();
308
308
  const shouldRecordTarget = toBoolean(options.recordTarget, false);
309
309
  if (shouldRecordTarget) {
310
- const recordPath = await _chunkHPVYHFXXjs.saveCliPatchTargetRecord.call(void 0, ctx.tailwindcssBasedir, ctx.twPatcher);
310
+ const recordPath = await _chunkAEIEPXO3js.saveCliPatchTargetRecord.call(void 0, ctx.tailwindcssBasedir, ctx.twPatcher);
311
311
  if (recordPath) {
312
312
  _chunkOXASK55Qjs.logger.info(`\u8BB0\u5F55 weapp-tw patch \u76EE\u6807 -> ${formatOutputPath(recordPath, resolvedCwd)}`);
313
313
  }
package/dist/cli.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getCompilerContext,
8
8
  logTailwindcssTarget,
9
9
  saveCliPatchTargetRecord
10
- } from "./chunk-TPBIR7NL.mjs";
10
+ } from "./chunk-J7OY4W53.mjs";
11
11
  import "./chunk-YW5YW5D4.mjs";
12
12
  import "./chunk-PYXTMD6B.mjs";
13
13
  import {
package/dist/core.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkHPVYHFXXjs = require('./chunk-HPVYHFXX.js');
6
+ var _chunkAEIEPXO3js = require('./chunk-AEIEPXO3.js');
7
7
  require('./chunk-KMCQEHJM.js');
8
8
  require('./chunk-SMYOFNHJ.js');
9
9
  require('./chunk-UW3WHSZ5.js');
@@ -12,16 +12,16 @@ require('./chunk-XGRBCPBI.js');
12
12
  // src/core.ts
13
13
  var _shared = require('@weapp-tailwindcss/shared');
14
14
  function createContext(options = {}) {
15
- const opts = _chunkHPVYHFXXjs.getCompilerContext.call(void 0, options);
15
+ const opts = _chunkAEIEPXO3js.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: _chunkHPVYHFXXjs.createTailwindPatchPromise.call(void 0, initialTwPatcher),
20
+ patchPromise: _chunkAEIEPXO3js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
21
21
  refreshTailwindcssPatcher
22
22
  };
23
23
  async function refreshRuntimeState(force) {
24
- await _chunkHPVYHFXXjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
24
+ await _chunkAEIEPXO3js.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 _chunkHPVYHFXXjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
33
+ runtimeSet = await _chunkAEIEPXO3js.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 _chunkHPVYHFXXjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
43
+ runtimeSet = await _chunkAEIEPXO3js.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 _chunkHPVYHFXXjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
52
+ runtimeSet = await _chunkAEIEPXO3js.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,7 +3,7 @@ import {
3
3
  createTailwindPatchPromise,
4
4
  getCompilerContext,
5
5
  refreshTailwindRuntimeState
6
- } from "./chunk-TPBIR7NL.mjs";
6
+ } from "./chunk-J7OY4W53.mjs";
7
7
  import "./chunk-YW5YW5D4.mjs";
8
8
  import "./chunk-PYXTMD6B.mjs";
9
9
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/gulp.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSMEWY6FJjs = require('./chunk-SMEWY6FJ.js');
3
+ var _chunkGRO26PCLjs = require('./chunk-GRO26PCL.js');
4
4
  require('./chunk-LTJQUORK.js');
5
- require('./chunk-HPVYHFXX.js');
5
+ require('./chunk-AEIEPXO3.js');
6
6
  require('./chunk-KMCQEHJM.js');
7
7
  require('./chunk-SMYOFNHJ.js');
8
8
  require('./chunk-UW3WHSZ5.js');
9
9
  require('./chunk-XGRBCPBI.js');
10
10
 
11
11
 
12
- exports.createPlugins = _chunkSMEWY6FJjs.createPlugins;
12
+ exports.createPlugins = _chunkGRO26PCLjs.createPlugins;
package/dist/gulp.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createPlugins
3
- } from "./chunk-JBZ63WDH.mjs";
3
+ } from "./chunk-2WJGB2LE.mjs";
4
4
  import "./chunk-RRHPTTCP.mjs";
5
- import "./chunk-TPBIR7NL.mjs";
5
+ import "./chunk-J7OY4W53.mjs";
6
6
  import "./chunk-YW5YW5D4.mjs";
7
7
  import "./chunk-PYXTMD6B.mjs";
8
8
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-O2IOQ3BD.js');
2
2
 
3
3
 
4
- var _chunkRIMKL2AVjs = require('./chunk-RIMKL2AV.js');
4
+ var _chunk6MBTOUPDjs = require('./chunk-6MBTOUPD.js');
5
5
  require('./chunk-6GP37C26.js');
6
6
 
7
7
 
8
- var _chunkSMEWY6FJjs = require('./chunk-SMEWY6FJ.js');
8
+ var _chunkGRO26PCLjs = require('./chunk-GRO26PCL.js');
9
9
 
10
10
 
11
- var _chunkDTBKYR3Jjs = require('./chunk-DTBKYR3J.js');
11
+ var _chunkLRD5B5J7js = require('./chunk-LRD5B5J7.js');
12
12
  require('./chunk-W7BVY5S5.js');
13
13
  require('./chunk-LTJQUORK.js');
14
- require('./chunk-HPVYHFXX.js');
14
+ require('./chunk-AEIEPXO3.js');
15
15
  require('./chunk-KMCQEHJM.js');
16
16
  require('./chunk-SMYOFNHJ.js');
17
17
  require('./chunk-UW3WHSZ5.js');
@@ -20,4 +20,4 @@ require('./chunk-XGRBCPBI.js');
20
20
 
21
21
 
22
22
 
23
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkDTBKYR3Jjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkRIMKL2AVjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkSMEWY6FJjs.createPlugins;
23
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkLRD5B5J7js.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk6MBTOUPDjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkGRO26PCLjs.createPlugins;
package/dist/index.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  import "./chunk-YAN7TO2B.mjs";
2
2
  import {
3
3
  UnifiedWebpackPluginV5
4
- } from "./chunk-BLSNFAO7.mjs";
4
+ } from "./chunk-QB67X26Y.mjs";
5
5
  import "./chunk-2F7HOQQY.mjs";
6
6
  import {
7
7
  createPlugins
8
- } from "./chunk-JBZ63WDH.mjs";
8
+ } from "./chunk-2WJGB2LE.mjs";
9
9
  import {
10
10
  UnifiedViteWeappTailwindcssPlugin
11
- } from "./chunk-WSMHVHT4.mjs";
11
+ } from "./chunk-YEFXGOXH.mjs";
12
12
  import "./chunk-KZUIVLPP.mjs";
13
13
  import "./chunk-RRHPTTCP.mjs";
14
- import "./chunk-TPBIR7NL.mjs";
14
+ import "./chunk-J7OY4W53.mjs";
15
15
  import "./chunk-YW5YW5D4.mjs";
16
16
  import "./chunk-PYXTMD6B.mjs";
17
17
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/vite.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDTBKYR3Jjs = require('./chunk-DTBKYR3J.js');
3
+ var _chunkLRD5B5J7js = require('./chunk-LRD5B5J7.js');
4
4
  require('./chunk-W7BVY5S5.js');
5
5
  require('./chunk-LTJQUORK.js');
6
- require('./chunk-HPVYHFXX.js');
6
+ require('./chunk-AEIEPXO3.js');
7
7
  require('./chunk-KMCQEHJM.js');
8
8
  require('./chunk-SMYOFNHJ.js');
9
9
  require('./chunk-UW3WHSZ5.js');
10
10
  require('./chunk-XGRBCPBI.js');
11
11
 
12
12
 
13
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkDTBKYR3Jjs.UnifiedViteWeappTailwindcssPlugin;
13
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkLRD5B5J7js.UnifiedViteWeappTailwindcssPlugin;
package/dist/vite.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UnifiedViteWeappTailwindcssPlugin
3
- } from "./chunk-WSMHVHT4.mjs";
3
+ } from "./chunk-YEFXGOXH.mjs";
4
4
  import "./chunk-KZUIVLPP.mjs";
5
5
  import "./chunk-RRHPTTCP.mjs";
6
- import "./chunk-TPBIR7NL.mjs";
6
+ import "./chunk-J7OY4W53.mjs";
7
7
  import "./chunk-YW5YW5D4.mjs";
8
8
  import "./chunk-PYXTMD6B.mjs";
9
9
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/webpack.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRIMKL2AVjs = require('./chunk-RIMKL2AV.js');
3
+ var _chunk6MBTOUPDjs = require('./chunk-6MBTOUPD.js');
4
4
  require('./chunk-6GP37C26.js');
5
5
  require('./chunk-W7BVY5S5.js');
6
6
  require('./chunk-LTJQUORK.js');
7
- require('./chunk-HPVYHFXX.js');
7
+ require('./chunk-AEIEPXO3.js');
8
8
  require('./chunk-KMCQEHJM.js');
9
9
  require('./chunk-SMYOFNHJ.js');
10
10
  require('./chunk-UW3WHSZ5.js');
11
11
  require('./chunk-XGRBCPBI.js');
12
12
 
13
13
 
14
- exports.UnifiedWebpackPluginV5 = _chunkRIMKL2AVjs.UnifiedWebpackPluginV5;
14
+ exports.UnifiedWebpackPluginV5 = _chunk6MBTOUPDjs.UnifiedWebpackPluginV5;
package/dist/webpack.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  UnifiedWebpackPluginV5
3
- } from "./chunk-BLSNFAO7.mjs";
3
+ } from "./chunk-QB67X26Y.mjs";
4
4
  import "./chunk-2F7HOQQY.mjs";
5
5
  import "./chunk-KZUIVLPP.mjs";
6
6
  import "./chunk-RRHPTTCP.mjs";
7
- import "./chunk-TPBIR7NL.mjs";
7
+ import "./chunk-J7OY4W53.mjs";
8
8
  import "./chunk-YW5YW5D4.mjs";
9
9
  import "./chunk-PYXTMD6B.mjs";
10
10
  import "./chunk-ZNKIYZRQ.mjs";