weapp-tailwindcss 4.6.2 → 4.7.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 (46) hide show
  1. package/dist/{chunk-KHILYAA4.mjs → chunk-4EUTRMUC.mjs} +1 -1
  2. package/dist/{chunk-7PGHZOTU.mjs → chunk-7TKAJ3P6.mjs} +153 -32
  3. package/dist/{chunk-FVA7Y2YU.js → chunk-BAXZHBSU.js} +5 -7
  4. package/dist/{chunk-JG5LBGLH.mjs → chunk-BTOCLUJ4.mjs} +1 -1
  5. package/dist/{chunk-AXLRUW5H.js → chunk-C3CG4UUY.js} +4 -4
  6. package/dist/{chunk-7CGHD2TI.js → chunk-CCMDCC3N.js} +5 -7
  7. package/dist/{chunk-MXVUK23K.mjs → chunk-D7SF52F6.mjs} +3 -5
  8. package/dist/{chunk-TTDQ4TK2.mjs → chunk-KSXOBEXQ.mjs} +4 -6
  9. package/dist/{chunk-I7FYDXN6.js → chunk-LZ6L3UQO.js} +2 -2
  10. package/dist/{chunk-YLNOOPZL.mjs → chunk-NRG7N2Q7.mjs} +2 -2
  11. package/dist/{chunk-M6DWZX4H.js → chunk-Q5TPAJI4.js} +2 -2
  12. package/dist/{chunk-E5PXIHDN.js → chunk-QXSBMK2W.js} +1 -1
  13. package/dist/{chunk-OVDIACVK.js → chunk-W3JU6K3T.js} +159 -38
  14. package/dist/cli.js +7 -9
  15. package/dist/cli.mjs +4 -6
  16. package/dist/core.js +5 -5
  17. package/dist/core.mjs +3 -3
  18. package/dist/css-macro/postcss.js +1 -1
  19. package/dist/css-macro/postcss.mjs +1 -1
  20. package/dist/css-macro.js +1 -1
  21. package/dist/css-macro.mjs +1 -1
  22. package/dist/defaults.js +3 -3
  23. package/dist/defaults.mjs +2 -2
  24. package/dist/escape.js +1 -1
  25. package/dist/escape.mjs +1 -1
  26. package/dist/gulp.js +6 -6
  27. package/dist/gulp.mjs +4 -4
  28. package/dist/index.js +8 -9
  29. package/dist/index.mjs +6 -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 +1 -1
  34. package/dist/types.d.mts +5 -0
  35. package/dist/types.d.ts +5 -0
  36. package/dist/types.js +1 -1
  37. package/dist/types.mjs +1 -1
  38. package/dist/vite.js +6 -7
  39. package/dist/vite.mjs +4 -5
  40. package/dist/webpack.js +6 -7
  41. package/dist/webpack.mjs +4 -5
  42. package/dist/webpack4.js +8 -10
  43. package/dist/webpack4.mjs +4 -6
  44. package/package.json +5 -11
  45. package/dist/chunk-CMUA5KCO.mjs +0 -10
  46. package/dist/chunk-OGROHM4L.js +0 -10
@@ -3,15 +3,25 @@
3
3
  var _chunkDWAEHRHNjs = require('./chunk-DWAEHRHN.js');
4
4
 
5
5
 
6
- var _chunkAXLRUW5Hjs = require('./chunk-AXLRUW5H.js');
6
+ var _chunkC3CG4UUYjs = require('./chunk-C3CG4UUY.js');
7
7
 
8
8
 
9
- var _chunkI7FYDXN6js = require('./chunk-I7FYDXN6.js');
9
+ var _chunkLZ6L3UQOjs = require('./chunk-LZ6L3UQO.js');
10
10
 
11
11
 
12
12
 
13
13
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
14
14
 
15
+ // src/constants.ts
16
+ var pluginName = "weapp-tailwindcss-webpack-plugin";
17
+ var vitePluginName = "weapp-tailwindcss:adaptor";
18
+ var WEAPP_TW_REQUIRED_NODE_VERSION = "18.17.0";
19
+ var DEFAULT_RUNTIME_PACKAGE_REPLACEMENTS = {
20
+ "tailwind-merge": "@weapp-tailwindcss/merge",
21
+ "class-variance-authority": "@weapp-tailwindcss/merge/cva",
22
+ "tailwind-variants": "@weapp-tailwindcss/merge/variants"
23
+ };
24
+
15
25
  // src/context/index.ts
16
26
  var _logger = require('@weapp-tailwindcss/logger');
17
27
 
@@ -897,8 +907,65 @@ function createEvalReplacementToken(path, updated) {
897
907
  path
898
908
  };
899
909
  }
900
- function handleEvalStringLiteral(path, options, updater) {
901
- const { code } = jsHandler(path.node.value, {
910
+ function createModuleSpecifierReplacementToken(path, replacement) {
911
+ const node = path.node;
912
+ if (node.value === replacement) {
913
+ return void 0;
914
+ }
915
+ if (typeof node.start !== "number" || typeof node.end !== "number") {
916
+ return void 0;
917
+ }
918
+ const start = node.start + 1;
919
+ const end = node.end - 1;
920
+ if (start >= end) {
921
+ return void 0;
922
+ }
923
+ return {
924
+ start,
925
+ end,
926
+ value: replacement,
927
+ path
928
+ };
929
+ }
930
+ function collectModuleSpecifierReplacementTokens(analysis, replacements) {
931
+ const tokens = [];
932
+ const applyReplacement = (path) => {
933
+ const replacement = replacements[path.node.value];
934
+ if (!replacement) {
935
+ return;
936
+ }
937
+ const token = createModuleSpecifierReplacementToken(path, replacement);
938
+ if (token) {
939
+ tokens.push(token);
940
+ }
941
+ };
942
+ for (const importPath of analysis.importDeclarations) {
943
+ const source = importPath.get("source");
944
+ if (source.isStringLiteral()) {
945
+ applyReplacement(source);
946
+ }
947
+ }
948
+ for (const exportPath of analysis.exportDeclarations) {
949
+ if (exportPath.isExportNamedDeclaration() || exportPath.isExportAllDeclaration()) {
950
+ const source = exportPath.get("source");
951
+ if (source && !Array.isArray(source) && source.isStringLiteral()) {
952
+ applyReplacement(source);
953
+ }
954
+ }
955
+ }
956
+ for (const literalPath of analysis.requireCallPaths) {
957
+ applyReplacement(literalPath);
958
+ }
959
+ for (const token of analysis.walker.imports) {
960
+ const replacement = replacements[token.source];
961
+ if (replacement) {
962
+ token.source = replacement;
963
+ }
964
+ }
965
+ return tokens;
966
+ }
967
+ function handleEvalStringLiteral(path, options, updater, handler) {
968
+ const { code } = handler(path.node.value, {
902
969
  ...options,
903
970
  needEscaped: false,
904
971
  generateMap: false
@@ -911,8 +978,8 @@ function handleEvalStringLiteral(path, options, updater) {
911
978
  updater.addToken(token);
912
979
  }
913
980
  }
914
- function handleEvalTemplateElement(path, options, updater) {
915
- const { code } = jsHandler(path.node.value.raw, {
981
+ function handleEvalTemplateElement(path, options, updater, handler) {
982
+ const { code } = handler(path.node.value.raw, {
916
983
  ...options,
917
984
  generateMap: false
918
985
  });
@@ -924,17 +991,17 @@ function handleEvalTemplateElement(path, options, updater) {
924
991
  updater.addToken(token);
925
992
  }
926
993
  }
927
- function walkEvalExpression(path, options, updater) {
994
+ function walkEvalExpression(path, options, updater, handler) {
928
995
  path.traverse({
929
996
  StringLiteral(innerPath) {
930
- handleEvalStringLiteral(innerPath, options, updater);
997
+ handleEvalStringLiteral(innerPath, options, updater, handler);
931
998
  },
932
999
  TemplateElement(innerPath) {
933
- handleEvalTemplateElement(innerPath, options, updater);
1000
+ handleEvalTemplateElement(innerPath, options, updater, handler);
934
1001
  }
935
1002
  });
936
1003
  }
937
- function analyzeSource(ast, options) {
1004
+ function analyzeSource(ast, options, handler) {
938
1005
  const jsTokenUpdater = new JsTokenUpdater();
939
1006
  const ignoredPaths = /* @__PURE__ */ new WeakSet();
940
1007
  const walker = new NodePathWalker(
@@ -951,6 +1018,8 @@ function analyzeSource(ast, options) {
951
1018
  const targetPaths = [];
952
1019
  const importDeclarations = /* @__PURE__ */ new Set();
953
1020
  const exportDeclarations = /* @__PURE__ */ new Set();
1021
+ const requireCallPaths = [];
1022
+ const evalHandler = _nullishCoalesce(handler, () => ( jsHandler));
954
1023
  const traverseOptions = {
955
1024
  StringLiteral: {
956
1025
  enter(p) {
@@ -981,9 +1050,19 @@ function analyzeSource(ast, options) {
981
1050
  CallExpression: {
982
1051
  enter(p) {
983
1052
  if (isEvalPath(p)) {
984
- walkEvalExpression(p, options, jsTokenUpdater);
1053
+ walkEvalExpression(p, options, jsTokenUpdater, evalHandler);
985
1054
  return;
986
1055
  }
1056
+ const calleePath = p.get("callee");
1057
+ if (calleePath.isIdentifier({ name: "require" }) && !p.scope.hasBinding("require")) {
1058
+ const args = p.get("arguments");
1059
+ if (Array.isArray(args) && args.length > 0) {
1060
+ const first = args[0];
1061
+ if (_optionalChain([first, 'optionalAccess', _18 => _18.isStringLiteral, 'call', _19 => _19()])) {
1062
+ requireCallPaths.push(first);
1063
+ }
1064
+ }
1065
+ }
987
1066
  walker.walkCallExpression(p);
988
1067
  }
989
1068
  },
@@ -1006,6 +1085,7 @@ function analyzeSource(ast, options) {
1006
1085
  targetPaths,
1007
1086
  importDeclarations,
1008
1087
  exportDeclarations,
1088
+ requireCallPaths,
1009
1089
  ignoredPaths
1010
1090
  };
1011
1091
  }
@@ -1028,6 +1108,11 @@ function processUpdatedSource(rawSource, options, analysis) {
1028
1108
  replacementTokens.push(token);
1029
1109
  }
1030
1110
  }
1111
+ if (options.moduleSpecifierReplacements) {
1112
+ replacementTokens.push(
1113
+ ...collectModuleSpecifierReplacementTokens(analysis, options.moduleSpecifierReplacements)
1114
+ );
1115
+ }
1031
1116
  jsTokenUpdater.push(...replacementTokens).filter((token) => !ignoredPaths.has(token.path)).updateMagicString(ms);
1032
1117
  return ms;
1033
1118
  }
@@ -1041,7 +1126,7 @@ function jsHandler(rawSource, options) {
1041
1126
  error
1042
1127
  };
1043
1128
  }
1044
- const analysis = analyzeSource(ast, options);
1129
+ const analysis = analyzeSource(ast, options, jsHandler);
1045
1130
  const ms = processUpdatedSource(rawSource, options, analysis);
1046
1131
  const result = {
1047
1132
  code: ms.toString(),
@@ -1080,7 +1165,8 @@ function createJsHandler(options) {
1080
1165
  babelParserOptions,
1081
1166
  ignoreCallExpressionIdentifiers,
1082
1167
  ignoreTaggedTemplateExpressionIdentifiers,
1083
- uniAppX
1168
+ uniAppX,
1169
+ moduleSpecifierReplacements
1084
1170
  } = options;
1085
1171
  function handler(rawSource, classNameSet, options2) {
1086
1172
  const overrideOptions = _nullishCoalesce(options2, () => ( {}));
@@ -1101,7 +1187,8 @@ function createJsHandler(options) {
1101
1187
  babelParserOptions,
1102
1188
  ignoreCallExpressionIdentifiers,
1103
1189
  ignoreTaggedTemplateExpressionIdentifiers,
1104
- uniAppX
1190
+ uniAppX,
1191
+ moduleSpecifierReplacements
1105
1192
  }
1106
1193
  );
1107
1194
  return jsHandler(rawSource, resolvedOptions);
@@ -1281,7 +1368,7 @@ function generateCode(match, options = {}) {
1281
1368
  if (t.isMemberExpression(path.parent)) {
1282
1369
  return;
1283
1370
  }
1284
- if (t.isBinaryExpression(path.parent) && (t.isConditionalExpression(_optionalChain([path, 'access', _18 => _18.parentPath, 'optionalAccess', _19 => _19.parent])) || t.isLogicalExpression(_optionalChain([path, 'access', _20 => _20.parentPath, 'optionalAccess', _21 => _21.parent])))) {
1371
+ if (t.isBinaryExpression(path.parent) && (t.isConditionalExpression(_optionalChain([path, 'access', _20 => _20.parentPath, 'optionalAccess', _21 => _21.parent])) || t.isLogicalExpression(_optionalChain([path, 'access', _22 => _22.parentPath, 'optionalAccess', _23 => _23.parent])))) {
1285
1372
  return;
1286
1373
  }
1287
1374
  jsTokenUpdater.addToken(
@@ -1514,6 +1601,20 @@ function createTemplateHandler(options = {}) {
1514
1601
  }
1515
1602
 
1516
1603
  // src/context/handlers.ts
1604
+ function resolveRuntimePackageReplacements(option) {
1605
+ if (!option) {
1606
+ return void 0;
1607
+ }
1608
+ const mapping = option === true ? DEFAULT_RUNTIME_PACKAGE_REPLACEMENTS : option;
1609
+ const normalized = {};
1610
+ for (const [from, to] of Object.entries(mapping)) {
1611
+ if (!from || typeof to !== "string" || to.length === 0) {
1612
+ continue;
1613
+ }
1614
+ normalized[from] = to;
1615
+ }
1616
+ return Object.keys(normalized).length > 0 ? normalized : void 0;
1617
+ }
1517
1618
  function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions) {
1518
1619
  const {
1519
1620
  cssPreflight,
@@ -1536,8 +1637,10 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
1536
1637
  ignoreCallExpressionIdentifiers,
1537
1638
  ignoreTaggedTemplateExpressionIdentifiers,
1538
1639
  inlineWxs,
1539
- disabledDefaultTemplateHandler
1640
+ disabledDefaultTemplateHandler,
1641
+ replaceRuntimePackages
1540
1642
  } = ctx;
1643
+ const moduleSpecifierReplacements = resolveRuntimePackageReplacements(replaceRuntimePackages);
1541
1644
  const styleHandler = _postcss.createStyleHandler.call(void 0, {
1542
1645
  cssPreflight,
1543
1646
  customRuleCallback,
@@ -1563,7 +1666,8 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
1563
1666
  babelParserOptions,
1564
1667
  ignoreCallExpressionIdentifiers,
1565
1668
  ignoreTaggedTemplateExpressionIdentifiers,
1566
- uniAppX
1669
+ uniAppX,
1670
+ moduleSpecifierReplacements
1567
1671
  });
1568
1672
  const templateHandler = createTemplateHandler({
1569
1673
  customAttributesEntities,
@@ -1592,58 +1696,72 @@ function applyLoggerLevel(logLevel) {
1592
1696
  }
1593
1697
 
1594
1698
  // src/context/index.ts
1595
- var DEFAULT_SPACING_VARIABLE = "--spacing";
1596
- function matchesSpacingToken(token) {
1597
- if (typeof token === "string") {
1598
- return token === DEFAULT_SPACING_VARIABLE;
1599
- }
1600
- token.lastIndex = 0;
1601
- return token.test(DEFAULT_SPACING_VARIABLE);
1699
+ var DEFAULT_CSS_CALC_CUSTOM_PROPERTIES = [];
1700
+ function includesToken(list, token) {
1701
+ return list.some((candidate) => {
1702
+ if (typeof token === "string") {
1703
+ if (typeof candidate === "string") {
1704
+ return candidate === token;
1705
+ }
1706
+ candidate.lastIndex = 0;
1707
+ return candidate.test(token);
1708
+ }
1709
+ if (typeof candidate === "string") {
1710
+ token.lastIndex = 0;
1711
+ return token.test(candidate);
1712
+ }
1713
+ return candidate.source === token.source && candidate.flags === token.flags;
1714
+ });
1602
1715
  }
1603
- function ensureSpacingIncluded(value) {
1716
+ function ensureDefaultsIncluded(value) {
1604
1717
  if (value === true) {
1605
1718
  return {
1606
- includeCustomProperties: [DEFAULT_SPACING_VARIABLE]
1719
+ includeCustomProperties: [...DEFAULT_CSS_CALC_CUSTOM_PROPERTIES]
1607
1720
  };
1608
1721
  }
1609
1722
  if (Array.isArray(value)) {
1610
- return value.some(matchesSpacingToken) ? value : [...value, DEFAULT_SPACING_VARIABLE];
1723
+ if (!DEFAULT_CSS_CALC_CUSTOM_PROPERTIES.length) {
1724
+ return value;
1725
+ }
1726
+ const missing = DEFAULT_CSS_CALC_CUSTOM_PROPERTIES.filter((token) => !includesToken(value, token));
1727
+ return missing.length > 0 ? [...value, ...missing] : value;
1611
1728
  }
1612
1729
  if (value && typeof value === "object") {
1613
1730
  const include = value.includeCustomProperties;
1614
- if (!Array.isArray(include) || include.length === 0) {
1731
+ if (!Array.isArray(include)) {
1615
1732
  return {
1616
1733
  ...value,
1617
- includeCustomProperties: [DEFAULT_SPACING_VARIABLE]
1734
+ includeCustomProperties: [...DEFAULT_CSS_CALC_CUSTOM_PROPERTIES]
1618
1735
  };
1619
1736
  }
1620
- if (include.some(matchesSpacingToken)) {
1737
+ if (!DEFAULT_CSS_CALC_CUSTOM_PROPERTIES.length) {
1621
1738
  return value;
1622
1739
  }
1623
- return {
1740
+ const missing = DEFAULT_CSS_CALC_CUSTOM_PROPERTIES.filter((token) => !includesToken(include, token));
1741
+ return missing.length > 0 ? {
1624
1742
  ...value,
1625
- includeCustomProperties: [...include, DEFAULT_SPACING_VARIABLE]
1626
- };
1743
+ includeCustomProperties: [...include, ...missing]
1744
+ } : value;
1627
1745
  }
1628
1746
  return value;
1629
1747
  }
1630
1748
  function getCompilerContext(opts) {
1631
1749
  const ctx = _chunkUW3WHSZ5js.defuOverrideArray.call(void 0,
1632
1750
  opts,
1633
- _chunkI7FYDXN6js.getDefaultOptions.call(void 0, ),
1751
+ _chunkLZ6L3UQOjs.getDefaultOptions.call(void 0, ),
1634
1752
  {}
1635
1753
  );
1636
1754
  ctx.escapeMap = ctx.customReplaceDictionary;
1637
1755
  applyLoggerLevel(ctx.logLevel);
1638
- const twPatcher = _chunkAXLRUW5Hjs.createTailwindcssPatcherFromContext.call(void 0, ctx);
1639
- if (_optionalChain([twPatcher, 'access', _22 => _22.packageInfo, 'optionalAccess', _23 => _23.version])) {
1756
+ const twPatcher = _chunkC3CG4UUYjs.createTailwindcssPatcherFromContext.call(void 0, ctx);
1757
+ if (_optionalChain([twPatcher, 'access', _24 => _24.packageInfo, 'optionalAccess', _25 => _25.version])) {
1640
1758
  _logger.logger.success(`\u5F53\u524D\u4F7F\u7528 ${_logger.pc.cyanBright("Tailwind CSS")} \u7248\u672C\u4E3A: ${_logger.pc.underline(_logger.pc.bold(_logger.pc.green(twPatcher.packageInfo.version)))}`);
1641
1759
  } else {
1642
1760
  _logger.logger.warn(`${_logger.pc.cyanBright("Tailwind CSS")} \u672A\u5B89\u88C5\uFF0C\u5DF2\u8DF3\u8FC7\u7248\u672C\u68C0\u6D4B\u4E0E\u8865\u4E01\u5E94\u7528\u3002`);
1643
1761
  }
1644
1762
  let cssCalcOptions = _nullishCoalesce(ctx.cssCalc, () => ( twPatcher.majorVersion === 4));
1645
1763
  if (twPatcher.majorVersion === 4 && cssCalcOptions) {
1646
- cssCalcOptions = ensureSpacingIncluded(cssCalcOptions);
1764
+ cssCalcOptions = ensureDefaultsIncluded(cssCalcOptions);
1647
1765
  }
1648
1766
  ctx.cssCalc = cssCalcOptions;
1649
1767
  const customAttributesEntities = toCustomAttributesEntities(ctx.customAttributes);
@@ -1663,4 +1781,7 @@ function getCompilerContext(opts) {
1663
1781
 
1664
1782
 
1665
1783
 
1666
- exports.generateCode = generateCode; exports.getCompilerContext = getCompilerContext;
1784
+
1785
+
1786
+
1787
+ exports.pluginName = pluginName; exports.vitePluginName = vitePluginName; exports.WEAPP_TW_REQUIRED_NODE_VERSION = WEAPP_TW_REQUIRED_NODE_VERSION; exports.generateCode = generateCode; exports.getCompilerContext = getCompilerContext;
package/dist/cli.js CHANGED
@@ -3,30 +3,28 @@
3
3
  var _chunkOXASK55Qjs = require('./chunk-OXASK55Q.js');
4
4
 
5
5
 
6
- var _chunkOGROHM4Ljs = require('./chunk-OGROHM4L.js');
7
6
 
8
-
9
- var _chunkOVDIACVKjs = require('./chunk-OVDIACVK.js');
7
+ var _chunkW3JU6K3Tjs = require('./chunk-W3JU6K3T.js');
10
8
  require('./chunk-DWAEHRHN.js');
11
- require('./chunk-AXLRUW5H.js');
12
- require('./chunk-I7FYDXN6.js');
9
+ require('./chunk-C3CG4UUY.js');
10
+ require('./chunk-LZ6L3UQO.js');
13
11
  require('./chunk-UW3WHSZ5.js');
14
- require('./chunk-E5PXIHDN.js');
12
+ require('./chunk-QXSBMK2W.js');
15
13
 
16
14
  // src/cli.ts
17
15
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
18
16
  var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);
19
17
  _process2.default.title = "node (weapp-tailwindcss)";
20
18
  var args = _process2.default.argv.slice(2);
21
- if (_semver2.default.lt(_process2.default.versions.node, _chunkOGROHM4Ljs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
19
+ if (_semver2.default.lt(_process2.default.versions.node, _chunkW3JU6K3Tjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
22
20
  _chunkOXASK55Qjs.logger.warn(
23
- `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkOGROHM4Ljs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
21
+ `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkW3JU6K3Tjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
24
22
  );
25
23
  }
26
24
  var command = args[0];
27
25
  async function run() {
28
26
  if (command === "patch") {
29
- const ctx = _chunkOVDIACVKjs.getCompilerContext.call(void 0, );
27
+ const ctx = _chunkW3JU6K3Tjs.getCompilerContext.call(void 0, );
30
28
  await ctx.twPatcher.patch();
31
29
  }
32
30
  }
package/dist/cli.mjs CHANGED
@@ -2,16 +2,14 @@ import {
2
2
  logger
3
3
  } from "./chunk-PMF2CCKK.mjs";
4
4
  import {
5
- WEAPP_TW_REQUIRED_NODE_VERSION
6
- } from "./chunk-CMUA5KCO.mjs";
7
- import {
5
+ WEAPP_TW_REQUIRED_NODE_VERSION,
8
6
  getCompilerContext
9
- } from "./chunk-7PGHZOTU.mjs";
7
+ } from "./chunk-7TKAJ3P6.mjs";
10
8
  import "./chunk-VSRDBMDB.mjs";
11
9
  import "./chunk-IY2OKZE6.mjs";
12
- import "./chunk-YLNOOPZL.mjs";
10
+ import "./chunk-NRG7N2Q7.mjs";
13
11
  import "./chunk-ZNKIYZRQ.mjs";
14
- import "./chunk-KHILYAA4.mjs";
12
+ import "./chunk-4EUTRMUC.mjs";
15
13
 
16
14
  // src/cli.ts
17
15
  import process from "process";
package/dist/core.js CHANGED
@@ -3,17 +3,17 @@
3
3
  var _chunkFB5P4TRHjs = require('./chunk-FB5P4TRH.js');
4
4
 
5
5
 
6
- var _chunkOVDIACVKjs = require('./chunk-OVDIACVK.js');
6
+ var _chunkW3JU6K3Tjs = require('./chunk-W3JU6K3T.js');
7
7
  require('./chunk-DWAEHRHN.js');
8
- require('./chunk-AXLRUW5H.js');
9
- require('./chunk-I7FYDXN6.js');
8
+ require('./chunk-C3CG4UUY.js');
9
+ require('./chunk-LZ6L3UQO.js');
10
10
  require('./chunk-UW3WHSZ5.js');
11
- require('./chunk-E5PXIHDN.js');
11
+ require('./chunk-QXSBMK2W.js');
12
12
 
13
13
  // src/core.ts
14
14
  var _shared = require('@weapp-tailwindcss/shared');
15
15
  function createContext(options = {}) {
16
- const opts = _chunkOVDIACVKjs.getCompilerContext.call(void 0, options);
16
+ const opts = _chunkW3JU6K3Tjs.getCompilerContext.call(void 0, options);
17
17
  const { templateHandler, styleHandler, jsHandler, twPatcher } = opts;
18
18
  let runtimeSet = /* @__PURE__ */ new Set();
19
19
  const patchPromise = Promise.resolve(twPatcher.patch());
package/dist/core.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  } from "./chunk-YPBRGP6K.mjs";
4
4
  import {
5
5
  getCompilerContext
6
- } from "./chunk-7PGHZOTU.mjs";
6
+ } from "./chunk-7TKAJ3P6.mjs";
7
7
  import "./chunk-VSRDBMDB.mjs";
8
8
  import "./chunk-IY2OKZE6.mjs";
9
- import "./chunk-YLNOOPZL.mjs";
9
+ import "./chunk-NRG7N2Q7.mjs";
10
10
  import "./chunk-ZNKIYZRQ.mjs";
11
- import "./chunk-KHILYAA4.mjs";
11
+ import "./chunk-4EUTRMUC.mjs";
12
12
 
13
13
  // src/core.ts
14
14
  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-E5PXIHDN.js');
6
+ require('../chunk-QXSBMK2W.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-KHILYAA4.mjs";
6
+ import "../chunk-4EUTRMUC.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-E5PXIHDN.js');
8
+ require('./chunk-QXSBMK2W.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-KHILYAA4.mjs";
8
+ import "./chunk-4EUTRMUC.mjs";
9
9
 
10
10
  // src/css-macro/index.ts
11
11
  import plugin from "tailwindcss/plugin";
package/dist/defaults.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkI7FYDXN6js = require('./chunk-I7FYDXN6.js');
3
+ var _chunkLZ6L3UQOjs = require('./chunk-LZ6L3UQO.js');
4
4
  require('./chunk-UW3WHSZ5.js');
5
- require('./chunk-E5PXIHDN.js');
5
+ require('./chunk-QXSBMK2W.js');
6
6
 
7
7
 
8
- exports.getDefaultOptions = _chunkI7FYDXN6js.getDefaultOptions;
8
+ exports.getDefaultOptions = _chunkLZ6L3UQOjs.getDefaultOptions;
package/dist/defaults.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getDefaultOptions
3
- } from "./chunk-YLNOOPZL.mjs";
3
+ } from "./chunk-NRG7N2Q7.mjs";
4
4
  import "./chunk-ZNKIYZRQ.mjs";
5
- import "./chunk-KHILYAA4.mjs";
5
+ import "./chunk-4EUTRMUC.mjs";
6
6
  export {
7
7
  getDefaultOptions
8
8
  };
package/dist/escape.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkDWAEHRHNjs = require('./chunk-DWAEHRHN.js');
4
- require('./chunk-E5PXIHDN.js');
4
+ require('./chunk-QXSBMK2W.js');
5
5
 
6
6
  // src/escape.ts
7
7
  var _escape = require('@weapp-core/escape');
package/dist/escape.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  replaceWxml
3
3
  } from "./chunk-VSRDBMDB.mjs";
4
- import "./chunk-KHILYAA4.mjs";
4
+ import "./chunk-4EUTRMUC.mjs";
5
5
 
6
6
  // src/escape.ts
7
7
  import { isAllowedClassName } from "@weapp-core/escape";
package/dist/gulp.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkM6DWZX4Hjs = require('./chunk-M6DWZX4H.js');
3
+ var _chunkQ5TPAJI4js = require('./chunk-Q5TPAJI4.js');
4
4
  require('./chunk-LTJQUORK.js');
5
5
  require('./chunk-FB5P4TRH.js');
6
- require('./chunk-OVDIACVK.js');
6
+ require('./chunk-W3JU6K3T.js');
7
7
  require('./chunk-DWAEHRHN.js');
8
- require('./chunk-AXLRUW5H.js');
9
- require('./chunk-I7FYDXN6.js');
8
+ require('./chunk-C3CG4UUY.js');
9
+ require('./chunk-LZ6L3UQO.js');
10
10
  require('./chunk-UW3WHSZ5.js');
11
- require('./chunk-E5PXIHDN.js');
11
+ require('./chunk-QXSBMK2W.js');
12
12
 
13
13
 
14
- exports.createPlugins = _chunkM6DWZX4Hjs.createPlugins;
14
+ exports.createPlugins = _chunkQ5TPAJI4js.createPlugins;
package/dist/gulp.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createPlugins
3
- } from "./chunk-JG5LBGLH.mjs";
3
+ } from "./chunk-BTOCLUJ4.mjs";
4
4
  import "./chunk-RRHPTTCP.mjs";
5
5
  import "./chunk-YPBRGP6K.mjs";
6
- import "./chunk-7PGHZOTU.mjs";
6
+ import "./chunk-7TKAJ3P6.mjs";
7
7
  import "./chunk-VSRDBMDB.mjs";
8
8
  import "./chunk-IY2OKZE6.mjs";
9
- import "./chunk-YLNOOPZL.mjs";
9
+ import "./chunk-NRG7N2Q7.mjs";
10
10
  import "./chunk-ZNKIYZRQ.mjs";
11
- import "./chunk-KHILYAA4.mjs";
11
+ import "./chunk-4EUTRMUC.mjs";
12
12
  export {
13
13
  createPlugins
14
14
  };
package/dist/index.js CHANGED
@@ -1,26 +1,25 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-O2IOQ3BD.js');
2
2
 
3
3
 
4
- var _chunk7CGHD2TIjs = require('./chunk-7CGHD2TI.js');
4
+ var _chunkCCMDCC3Njs = require('./chunk-CCMDCC3N.js');
5
5
  require('./chunk-6GP37C26.js');
6
6
 
7
7
 
8
- var _chunkM6DWZX4Hjs = require('./chunk-M6DWZX4H.js');
8
+ var _chunkQ5TPAJI4js = require('./chunk-Q5TPAJI4.js');
9
9
 
10
10
 
11
- var _chunkFVA7Y2YUjs = require('./chunk-FVA7Y2YU.js');
11
+ var _chunkBAXZHBSUjs = require('./chunk-BAXZHBSU.js');
12
12
  require('./chunk-WVKK6TBL.js');
13
13
  require('./chunk-LTJQUORK.js');
14
14
  require('./chunk-FB5P4TRH.js');
15
- require('./chunk-OGROHM4L.js');
16
- require('./chunk-OVDIACVK.js');
15
+ require('./chunk-W3JU6K3T.js');
17
16
  require('./chunk-DWAEHRHN.js');
18
- require('./chunk-AXLRUW5H.js');
19
- require('./chunk-I7FYDXN6.js');
17
+ require('./chunk-C3CG4UUY.js');
18
+ require('./chunk-LZ6L3UQO.js');
20
19
  require('./chunk-UW3WHSZ5.js');
21
- require('./chunk-E5PXIHDN.js');
20
+ require('./chunk-QXSBMK2W.js');
22
21
 
23
22
 
24
23
 
25
24
 
26
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkFVA7Y2YUjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk7CGHD2TIjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkM6DWZX4Hjs.createPlugins;
25
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkBAXZHBSUjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkCCMDCC3Njs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkQ5TPAJI4js.createPlugins;
package/dist/index.mjs CHANGED
@@ -1,24 +1,23 @@
1
1
  import "./chunk-YAN7TO2B.mjs";
2
2
  import {
3
3
  UnifiedWebpackPluginV5
4
- } from "./chunk-MXVUK23K.mjs";
4
+ } from "./chunk-D7SF52F6.mjs";
5
5
  import "./chunk-2F7HOQQY.mjs";
6
6
  import {
7
7
  createPlugins
8
- } from "./chunk-JG5LBGLH.mjs";
8
+ } from "./chunk-BTOCLUJ4.mjs";
9
9
  import {
10
10
  UnifiedViteWeappTailwindcssPlugin
11
- } from "./chunk-TTDQ4TK2.mjs";
11
+ } from "./chunk-KSXOBEXQ.mjs";
12
12
  import "./chunk-34T2BFTJ.mjs";
13
13
  import "./chunk-RRHPTTCP.mjs";
14
14
  import "./chunk-YPBRGP6K.mjs";
15
- import "./chunk-CMUA5KCO.mjs";
16
- import "./chunk-7PGHZOTU.mjs";
15
+ import "./chunk-7TKAJ3P6.mjs";
17
16
  import "./chunk-VSRDBMDB.mjs";
18
17
  import "./chunk-IY2OKZE6.mjs";
19
- import "./chunk-YLNOOPZL.mjs";
18
+ import "./chunk-NRG7N2Q7.mjs";
20
19
  import "./chunk-ZNKIYZRQ.mjs";
21
- import "./chunk-KHILYAA4.mjs";
20
+ import "./chunk-4EUTRMUC.mjs";
22
21
  export {
23
22
  UnifiedViteWeappTailwindcssPlugin,
24
23
  UnifiedWebpackPluginV5,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-E5PXIHDN.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-QXSBMK2W.js');
2
2
 
3
3
  // src/postcss-html-transform.ts
4
4
  var _htmltransform = require('@weapp-tailwindcss/postcss/html-transform'); var _htmltransform2 = _interopRequireDefault(_htmltransform);