weapp-tailwindcss 4.7.5-alpha.1 → 4.7.6

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 (44) hide show
  1. package/dist/{chunk-E5LRICST.js → chunk-36GNZBVS.js} +35 -59
  2. package/dist/{chunk-R7GWRQDJ.js → chunk-3AAVIURI.js} +1 -1
  3. package/dist/{chunk-SJV6DCNZ.js → chunk-6WB6H5P4.js} +6 -6
  4. package/dist/{chunk-SCOGAO45.mjs → chunk-EGX7MMTE.mjs} +1 -1
  5. package/dist/{chunk-PUFKPENL.mjs → chunk-G4SYITSG.mjs} +5 -12
  6. package/dist/{chunk-24ADBRZN.js → chunk-JISOHATJ.js} +10 -10
  7. package/dist/{chunk-42FXROX4.mjs → chunk-MEX4EXZX.mjs} +2 -2
  8. package/dist/{chunk-GGD75A34.js → chunk-RTOKUKLA.js} +4 -4
  9. package/dist/{chunk-RLWIDWTA.js → chunk-SXYSWJRO.js} +14 -21
  10. package/dist/{chunk-TK5LOBHZ.mjs → chunk-UB5UEGVL.mjs} +1 -1
  11. package/dist/{chunk-WXBFAARR.js → chunk-USAH2CX5.js} +1 -1
  12. package/dist/{chunk-XEQBYGBX.mjs → chunk-VL24RIGE.mjs} +9 -33
  13. package/dist/{chunk-KZJLIZIK.mjs → chunk-XVJBQIVY.mjs} +1 -1
  14. package/dist/cli.js +10 -10
  15. package/dist/cli.mjs +3 -3
  16. package/dist/core.js +10 -10
  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 -8
  29. package/dist/index.mjs +6 -6
  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 +10 -11
  35. package/dist/types.d.ts +10 -11
  36. package/dist/types.js +1 -1
  37. package/dist/types.mjs +1 -1
  38. package/dist/vite.js +6 -6
  39. package/dist/vite.mjs +4 -4
  40. package/dist/webpack.js +6 -6
  41. package/dist/webpack.mjs +4 -4
  42. package/dist/webpack4.js +13 -13
  43. package/dist/webpack4.mjs +3 -3
  44. package/package.json +7 -7
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-SHMBWMDV.mjs";
7
7
  import {
8
8
  getDefaultOptions
9
- } from "./chunk-KZJLIZIK.mjs";
9
+ } from "./chunk-XVJBQIVY.mjs";
10
10
  import {
11
11
  defuOverrideArray,
12
12
  isMap
@@ -109,26 +109,6 @@ function tryGetRuntimeClassSetSync(twPatcher) {
109
109
  return void 0;
110
110
  }
111
111
  }
112
- async function mergeContentTokensIntoSet(twPatcher, target) {
113
- if (typeof twPatcher.collectContentTokens !== "function") {
114
- return;
115
- }
116
- try {
117
- const report = await twPatcher.collectContentTokens();
118
- const entries = report?.entries;
119
- if (!Array.isArray(entries)) {
120
- return;
121
- }
122
- for (const entry of entries) {
123
- const candidate = entry?.rawCandidate;
124
- if (typeof candidate === "string" && candidate.length > 0) {
125
- target.add(candidate);
126
- }
127
- }
128
- } catch (error) {
129
- debug("collectContentTokens() failed, continuing without merged tokens: %O", error);
130
- }
131
- }
132
112
  async function collectRuntimeClassSet(twPatcher, options = {}) {
133
113
  let activePatcher = twPatcher;
134
114
  if (options.force && !options.skipRefresh) {
@@ -146,7 +126,6 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
146
126
  }
147
127
  const entry = getCacheEntry(activePatcher);
148
128
  const signature = getTailwindConfigSignature(activePatcher);
149
- const shouldAugmentWithTokens = options.force || !entry.value;
150
129
  if (!options.force) {
151
130
  if (entry.value && entry.signature === signature) {
152
131
  return entry.value;
@@ -184,9 +163,6 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
184
163
  entry.signature = signature;
185
164
  try {
186
165
  const resolved = await task;
187
- if (shouldAugmentWithTokens) {
188
- await mergeContentTokensIntoSet(activePatcher, resolved);
189
- }
190
166
  entry.value = resolved;
191
167
  entry.promise = void 0;
192
168
  entry.signature = signature;
@@ -1628,21 +1604,21 @@ function createAttributeMatcher(entities) {
1628
1604
  // src/wxml/whitespace.ts
1629
1605
  var WHITESPACE_CODES = /* @__PURE__ */ new Set([
1630
1606
  9,
1631
- // \t
1607
+ // 制表符 \t
1632
1608
  10,
1633
- // \n
1609
+ // 换行符 \n
1634
1610
  11,
1635
- // \v
1611
+ // 垂直制表符 \v
1636
1612
  12,
1637
- // \f
1613
+ // 换页符 \f
1638
1614
  13,
1639
- // \r
1615
+ // 回车符 \r
1640
1616
  32,
1641
- // space
1617
+ // 空格
1642
1618
  160,
1643
- // \u00A0
1619
+ // 不间断空格 \u00A0
1644
1620
  65279
1645
- // \uFEFF
1621
+ // 零宽无断行空格 \uFEFF
1646
1622
  ]);
1647
1623
  function isWhitespace(char) {
1648
1624
  if (char.length === 0) {
@@ -59,7 +59,7 @@ function getDefaultOptions() {
59
59
  },
60
60
  mainCssChunkMatcher: createMainCssChunkMatcher(),
61
61
  wxsMatcher: alwaysFalse,
62
- // https://tailwindcss.com/docs/preflight#border-styles-are-reset-globally
62
+ // 参考:https://tailwindcss.com/docs/preflight#border-styles-are-reset-globally
63
63
  cssPreflight: {
64
64
  "box-sizing": "border-box",
65
65
  "border-width": "0",
package/dist/cli.js CHANGED
@@ -4,17 +4,17 @@ var _chunkOXASK55Qjs = require('./chunk-OXASK55Q.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkE5LRICSTjs = require('./chunk-E5LRICST.js');
7
+ var _chunk36GNZBVSjs = require('./chunk-36GNZBVS.js');
8
8
  require('./chunk-DWAEHRHN.js');
9
- require('./chunk-GGD75A34.js');
10
- require('./chunk-WXBFAARR.js');
9
+ require('./chunk-RTOKUKLA.js');
10
+ require('./chunk-USAH2CX5.js');
11
11
 
12
12
 
13
13
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkR7GWRQDJjs = require('./chunk-R7GWRQDJ.js');
17
+ var _chunk3AAVIURIjs = require('./chunk-3AAVIURI.js');
18
18
 
19
19
  // src/cli.ts
20
20
  var _promises = require('fs/promises');
@@ -32,12 +32,12 @@ function getNodeRequire() {
32
32
  if (cachedRequire) {
33
33
  return cachedRequire;
34
34
  }
35
- if (typeof _chunkR7GWRQDJjs.__require === "function") {
36
- cachedRequire = _chunkR7GWRQDJjs.__require;
35
+ if (typeof _chunk3AAVIURIjs.__require === "function") {
36
+ cachedRequire = _chunk3AAVIURIjs.__require;
37
37
  return cachedRequire;
38
38
  }
39
39
  try {
40
- cachedRequire = _module.createRequire.call(void 0, _chunkR7GWRQDJjs.importMetaUrl);
40
+ cachedRequire = _module.createRequire.call(void 0, _chunk3AAVIURIjs.importMetaUrl);
41
41
  } catch (e) {
42
42
  cachedRequire = void 0;
43
43
  }
@@ -122,7 +122,7 @@ function createCliContext(overrides, resolvedCwd) {
122
122
  current
123
123
  );
124
124
  }
125
- return _chunkE5LRICSTjs.getCompilerContext.call(void 0, userOptions);
125
+ return _chunk36GNZBVSjs.getCompilerContext.call(void 0, userOptions);
126
126
  }
127
127
  function formatOutputPath(target, baseDir) {
128
128
  const root = _nullishCoalesce(baseDir, () => ( _process2.default.cwd()));
@@ -287,9 +287,9 @@ function logTokenPreview(report, format, groupKey) {
287
287
 
288
288
  // src/cli.ts
289
289
  _process2.default.title = "node (weapp-tailwindcss)";
290
- if (_semver2.default.lt(_process2.default.versions.node, _chunkE5LRICSTjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
290
+ if (_semver2.default.lt(_process2.default.versions.node, _chunk36GNZBVSjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
291
291
  _chunkOXASK55Qjs.logger.warn(
292
- `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkE5LRICSTjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
292
+ `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunk36GNZBVSjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
293
293
  );
294
294
  }
295
295
  var cli = _cac2.default.call(void 0, "weapp-tailwindcss");
package/dist/cli.mjs CHANGED
@@ -4,16 +4,16 @@ import {
4
4
  import {
5
5
  WEAPP_TW_REQUIRED_NODE_VERSION,
6
6
  getCompilerContext
7
- } from "./chunk-XEQBYGBX.mjs";
7
+ } from "./chunk-VL24RIGE.mjs";
8
8
  import "./chunk-VSRDBMDB.mjs";
9
9
  import "./chunk-SHMBWMDV.mjs";
10
- import "./chunk-KZJLIZIK.mjs";
10
+ import "./chunk-XVJBQIVY.mjs";
11
11
  import {
12
12
  defuOverrideArray
13
13
  } from "./chunk-ZNKIYZRQ.mjs";
14
14
  import {
15
15
  __require
16
- } from "./chunk-SCOGAO45.mjs";
16
+ } from "./chunk-EGX7MMTE.mjs";
17
17
 
18
18
  // src/cli.ts
19
19
  import { writeFile } from "fs/promises";
package/dist/core.js CHANGED
@@ -3,26 +3,26 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkE5LRICSTjs = require('./chunk-E5LRICST.js');
6
+ var _chunk36GNZBVSjs = require('./chunk-36GNZBVS.js');
7
7
  require('./chunk-DWAEHRHN.js');
8
- require('./chunk-GGD75A34.js');
9
- require('./chunk-WXBFAARR.js');
8
+ require('./chunk-RTOKUKLA.js');
9
+ require('./chunk-USAH2CX5.js');
10
10
  require('./chunk-UW3WHSZ5.js');
11
- require('./chunk-R7GWRQDJ.js');
11
+ require('./chunk-3AAVIURI.js');
12
12
 
13
13
  // src/core.ts
14
14
  var _shared = require('@weapp-tailwindcss/shared');
15
15
  function createContext(options = {}) {
16
- const opts = _chunkE5LRICSTjs.getCompilerContext.call(void 0, options);
16
+ const opts = _chunk36GNZBVSjs.getCompilerContext.call(void 0, options);
17
17
  const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
18
18
  let runtimeSet = /* @__PURE__ */ new Set();
19
19
  const runtimeState = {
20
20
  twPatcher: initialTwPatcher,
21
- patchPromise: _chunkE5LRICSTjs.createTailwindPatchPromise.call(void 0, initialTwPatcher),
21
+ patchPromise: _chunk36GNZBVSjs.createTailwindPatchPromise.call(void 0, initialTwPatcher),
22
22
  refreshTailwindcssPatcher
23
23
  };
24
24
  async function refreshRuntimeState(force) {
25
- await _chunkE5LRICSTjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
25
+ await _chunk36GNZBVSjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
26
26
  }
27
27
  async function transformWxss(rawCss, options2) {
28
28
  await runtimeState.patchPromise;
@@ -31,7 +31,7 @@ function createContext(options = {}) {
31
31
  }));
32
32
  await refreshRuntimeState(true);
33
33
  await runtimeState.patchPromise;
34
- runtimeSet = await _chunkE5LRICSTjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
34
+ runtimeSet = await _chunk36GNZBVSjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
35
35
  return result;
36
36
  }
37
37
  async function transformJs(rawJs, options2 = {}) {
@@ -41,7 +41,7 @@ function createContext(options = {}) {
41
41
  } else {
42
42
  await refreshRuntimeState(true);
43
43
  await runtimeState.patchPromise;
44
- runtimeSet = await _chunkE5LRICSTjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
44
+ runtimeSet = await _chunk36GNZBVSjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
45
45
  }
46
46
  return await jsHandler(rawJs, runtimeSet, options2);
47
47
  }
@@ -50,7 +50,7 @@ function createContext(options = {}) {
50
50
  if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
51
51
  await refreshRuntimeState(true);
52
52
  await runtimeState.patchPromise;
53
- runtimeSet = await _chunkE5LRICSTjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
53
+ runtimeSet = await _chunk36GNZBVSjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
54
54
  }
55
55
  return templateHandler(rawWxml, _shared.defuOverrideArray.call(void 0, options2, {
56
56
  runtimeSet
package/dist/core.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  createTailwindPatchPromise,
4
4
  getCompilerContext,
5
5
  refreshTailwindRuntimeState
6
- } from "./chunk-XEQBYGBX.mjs";
6
+ } from "./chunk-VL24RIGE.mjs";
7
7
  import "./chunk-VSRDBMDB.mjs";
8
8
  import "./chunk-SHMBWMDV.mjs";
9
- import "./chunk-KZJLIZIK.mjs";
9
+ import "./chunk-XVJBQIVY.mjs";
10
10
  import "./chunk-ZNKIYZRQ.mjs";
11
- import "./chunk-SCOGAO45.mjs";
11
+ import "./chunk-EGX7MMTE.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-R7GWRQDJ.js');
6
+ require('../chunk-3AAVIURI.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-SCOGAO45.mjs";
6
+ import "../chunk-EGX7MMTE.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-R7GWRQDJ.js');
8
+ require('./chunk-3AAVIURI.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-SCOGAO45.mjs";
8
+ import "./chunk-EGX7MMTE.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 _chunkWXBFAARRjs = require('./chunk-WXBFAARR.js');
3
+ var _chunkUSAH2CX5js = require('./chunk-USAH2CX5.js');
4
4
  require('./chunk-UW3WHSZ5.js');
5
- require('./chunk-R7GWRQDJ.js');
5
+ require('./chunk-3AAVIURI.js');
6
6
 
7
7
 
8
- exports.getDefaultOptions = _chunkWXBFAARRjs.getDefaultOptions;
8
+ exports.getDefaultOptions = _chunkUSAH2CX5js.getDefaultOptions;
package/dist/defaults.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getDefaultOptions
3
- } from "./chunk-KZJLIZIK.mjs";
3
+ } from "./chunk-XVJBQIVY.mjs";
4
4
  import "./chunk-ZNKIYZRQ.mjs";
5
- import "./chunk-SCOGAO45.mjs";
5
+ import "./chunk-EGX7MMTE.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-R7GWRQDJ.js');
4
+ require('./chunk-3AAVIURI.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-SCOGAO45.mjs";
4
+ import "./chunk-EGX7MMTE.mjs";
5
5
 
6
6
  // src/escape.ts
7
7
  import { isAllowedClassName } from "@weapp-core/escape";
package/dist/gulp.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSJV6DCNZjs = require('./chunk-SJV6DCNZ.js');
3
+ var _chunk6WB6H5P4js = require('./chunk-6WB6H5P4.js');
4
4
  require('./chunk-LTJQUORK.js');
5
- require('./chunk-E5LRICST.js');
5
+ require('./chunk-36GNZBVS.js');
6
6
  require('./chunk-DWAEHRHN.js');
7
- require('./chunk-GGD75A34.js');
8
- require('./chunk-WXBFAARR.js');
7
+ require('./chunk-RTOKUKLA.js');
8
+ require('./chunk-USAH2CX5.js');
9
9
  require('./chunk-UW3WHSZ5.js');
10
- require('./chunk-R7GWRQDJ.js');
10
+ require('./chunk-3AAVIURI.js');
11
11
 
12
12
 
13
- exports.createPlugins = _chunkSJV6DCNZjs.createPlugins;
13
+ exports.createPlugins = _chunk6WB6H5P4js.createPlugins;
package/dist/gulp.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createPlugins
3
- } from "./chunk-TK5LOBHZ.mjs";
3
+ } from "./chunk-UB5UEGVL.mjs";
4
4
  import "./chunk-RRHPTTCP.mjs";
5
- import "./chunk-XEQBYGBX.mjs";
5
+ import "./chunk-VL24RIGE.mjs";
6
6
  import "./chunk-VSRDBMDB.mjs";
7
7
  import "./chunk-SHMBWMDV.mjs";
8
- import "./chunk-KZJLIZIK.mjs";
8
+ import "./chunk-XVJBQIVY.mjs";
9
9
  import "./chunk-ZNKIYZRQ.mjs";
10
- import "./chunk-SCOGAO45.mjs";
10
+ import "./chunk-EGX7MMTE.mjs";
11
11
  export {
12
12
  createPlugins
13
13
  };
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-O2IOQ3BD.js');
2
2
 
3
3
 
4
- var _chunk24ADBRZNjs = require('./chunk-24ADBRZN.js');
4
+ var _chunkJISOHATJjs = require('./chunk-JISOHATJ.js');
5
5
  require('./chunk-6GP37C26.js');
6
6
 
7
7
 
8
- var _chunkSJV6DCNZjs = require('./chunk-SJV6DCNZ.js');
8
+ var _chunk6WB6H5P4js = require('./chunk-6WB6H5P4.js');
9
9
 
10
10
 
11
- var _chunkRLWIDWTAjs = require('./chunk-RLWIDWTA.js');
11
+ var _chunkSXYSWJROjs = require('./chunk-SXYSWJRO.js');
12
12
  require('./chunk-W7BVY5S5.js');
13
13
  require('./chunk-LTJQUORK.js');
14
- require('./chunk-E5LRICST.js');
14
+ require('./chunk-36GNZBVS.js');
15
15
  require('./chunk-DWAEHRHN.js');
16
- require('./chunk-GGD75A34.js');
17
- require('./chunk-WXBFAARR.js');
16
+ require('./chunk-RTOKUKLA.js');
17
+ require('./chunk-USAH2CX5.js');
18
18
  require('./chunk-UW3WHSZ5.js');
19
- require('./chunk-R7GWRQDJ.js');
19
+ require('./chunk-3AAVIURI.js');
20
20
 
21
21
 
22
22
 
23
23
 
24
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkRLWIDWTAjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk24ADBRZNjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkSJV6DCNZjs.createPlugins;
24
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkSXYSWJROjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkJISOHATJjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunk6WB6H5P4js.createPlugins;
package/dist/index.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  import "./chunk-YAN7TO2B.mjs";
2
2
  import {
3
3
  UnifiedWebpackPluginV5
4
- } from "./chunk-42FXROX4.mjs";
4
+ } from "./chunk-MEX4EXZX.mjs";
5
5
  import "./chunk-2F7HOQQY.mjs";
6
6
  import {
7
7
  createPlugins
8
- } from "./chunk-TK5LOBHZ.mjs";
8
+ } from "./chunk-UB5UEGVL.mjs";
9
9
  import {
10
10
  UnifiedViteWeappTailwindcssPlugin
11
- } from "./chunk-PUFKPENL.mjs";
11
+ } from "./chunk-G4SYITSG.mjs";
12
12
  import "./chunk-KZUIVLPP.mjs";
13
13
  import "./chunk-RRHPTTCP.mjs";
14
- import "./chunk-XEQBYGBX.mjs";
14
+ import "./chunk-VL24RIGE.mjs";
15
15
  import "./chunk-VSRDBMDB.mjs";
16
16
  import "./chunk-SHMBWMDV.mjs";
17
- import "./chunk-KZJLIZIK.mjs";
17
+ import "./chunk-XVJBQIVY.mjs";
18
18
  import "./chunk-ZNKIYZRQ.mjs";
19
- import "./chunk-SCOGAO45.mjs";
19
+ import "./chunk-EGX7MMTE.mjs";
20
20
  export {
21
21
  UnifiedViteWeappTailwindcssPlugin,
22
22
  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-R7GWRQDJ.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-3AAVIURI.js');
2
2
 
3
3
  // src/postcss-html-transform.ts
4
4
  var _htmltransform = require('@weapp-tailwindcss/postcss/html-transform'); var _htmltransform2 = _interopRequireDefault(_htmltransform);
@@ -1,4 +1,4 @@
1
- import "./chunk-SCOGAO45.mjs";
1
+ import "./chunk-EGX7MMTE.mjs";
2
2
 
3
3
  // src/postcss-html-transform.ts
4
4
  import postcssHtmlTransform from "@weapp-tailwindcss/postcss/html-transform";
package/dist/presets.js CHANGED
@@ -3,11 +3,11 @@
3
3
  var _chunkOXASK55Qjs = require('./chunk-OXASK55Q.js');
4
4
 
5
5
 
6
- var _chunkGGD75A34js = require('./chunk-GGD75A34.js');
6
+ var _chunkRTOKUKLAjs = require('./chunk-RTOKUKLA.js');
7
7
 
8
8
 
9
9
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
10
- require('./chunk-R7GWRQDJ.js');
10
+ require('./chunk-3AAVIURI.js');
11
11
 
12
12
  // src/presets.ts
13
13
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
@@ -57,7 +57,7 @@ function toCssEntries(entries) {
57
57
  return Array.isArray(entries) ? entries : [entries];
58
58
  }
59
59
  function hbuilderx(options = {}) {
60
- const baseDir = _chunkGGD75A34js.resolveTailwindcssBasedir.call(void 0, options.base);
60
+ const baseDir = _chunkRTOKUKLAjs.resolveTailwindcssBasedir.call(void 0, options.base);
61
61
  const cssEntries = toCssEntries(options.cssEntries);
62
62
  const tailwindConfig = {
63
63
  v2: {
package/dist/presets.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  defuOverrideArray
9
9
  } from "./chunk-ZNKIYZRQ.mjs";
10
- import "./chunk-SCOGAO45.mjs";
10
+ import "./chunk-EGX7MMTE.mjs";
11
11
 
12
12
  // src/presets.ts
13
13
  import process from "process";
package/dist/types.d.mts CHANGED
@@ -525,8 +525,7 @@ interface JsHandlerResult {
525
525
  map?: SourceMap;
526
526
  error?: ParseError;
527
527
  /**
528
- * Additional modules transformed because of cross-file analysis.
529
- * Keyed by absolute filename.
528
+ * 因跨文件分析而被转换的额外模块,使用绝对文件路径作为键。
530
529
  */
531
530
  linked?: Record<string, LinkedJsModuleResult>;
532
531
  }
@@ -565,17 +564,17 @@ interface IJsHandlerOptions {
565
564
  uniAppX?: boolean;
566
565
  moduleSpecifierReplacements?: Record<string, string>;
567
566
  /**
568
- * When true, the handler treats the input as a standalone expression instead of a full program.
569
- * Useful for template bindings such as `:class="{ 'foo bar': cond }"`.
567
+ * `true` 时将输入视作独立表达式,而非完整的程序。
568
+ * 适用于 `:class="{ 'foo bar': cond }"` 等模板绑定场景。
570
569
  */
571
570
  wrapExpression?: boolean;
572
571
  /**
573
- * Absolute path of the module currently being transformed.
574
- * Required when enabling cross-file analysis.
572
+ * 当前正在转换的模块绝对路径。
573
+ * 启用跨文件分析时必须提供。
575
574
  */
576
575
  filename?: string;
577
576
  /**
578
- * Configure cross-file module graph analysis.
577
+ * 配置跨文件模块图分析行为。
579
578
  */
580
579
  moduleGraph?: JsModuleGraphOptions;
581
580
  }
@@ -642,19 +641,19 @@ interface InternalPatchResult {
642
641
  type CreateJsHandlerOptions = Omit<IJsHandlerOptions, 'classNameSet'>;
643
642
  interface JsModuleGraphOptions {
644
643
  /**
645
- * Resolve an import specifier to an absolute file path.
644
+ * 将导入的标识符解析为绝对文件路径。
646
645
  */
647
646
  resolve: (specifier: string, importer: string) => string | undefined;
648
647
  /**
649
- * Load module source synchronously.
648
+ * 同步加载模块源码。
650
649
  */
651
650
  load: (id: string) => string | undefined;
652
651
  /**
653
- * Optional filter to skip modules.
652
+ * 可选过滤器,用于跳过特定模块。
654
653
  */
655
654
  filter?: (id: string, specifier: string, importer: string) => boolean;
656
655
  /**
657
- * Maximum traversal depth. Defaults to `Infinity`.
656
+ * 最大遍历深度,默认无限制(`Infinity`)。
658
657
  */
659
658
  maxDepth?: number;
660
659
  }
package/dist/types.d.ts CHANGED
@@ -525,8 +525,7 @@ interface JsHandlerResult {
525
525
  map?: SourceMap;
526
526
  error?: ParseError;
527
527
  /**
528
- * Additional modules transformed because of cross-file analysis.
529
- * Keyed by absolute filename.
528
+ * 因跨文件分析而被转换的额外模块,使用绝对文件路径作为键。
530
529
  */
531
530
  linked?: Record<string, LinkedJsModuleResult>;
532
531
  }
@@ -565,17 +564,17 @@ interface IJsHandlerOptions {
565
564
  uniAppX?: boolean;
566
565
  moduleSpecifierReplacements?: Record<string, string>;
567
566
  /**
568
- * When true, the handler treats the input as a standalone expression instead of a full program.
569
- * Useful for template bindings such as `:class="{ 'foo bar': cond }"`.
567
+ * `true` 时将输入视作独立表达式,而非完整的程序。
568
+ * 适用于 `:class="{ 'foo bar': cond }"` 等模板绑定场景。
570
569
  */
571
570
  wrapExpression?: boolean;
572
571
  /**
573
- * Absolute path of the module currently being transformed.
574
- * Required when enabling cross-file analysis.
572
+ * 当前正在转换的模块绝对路径。
573
+ * 启用跨文件分析时必须提供。
575
574
  */
576
575
  filename?: string;
577
576
  /**
578
- * Configure cross-file module graph analysis.
577
+ * 配置跨文件模块图分析行为。
579
578
  */
580
579
  moduleGraph?: JsModuleGraphOptions;
581
580
  }
@@ -642,19 +641,19 @@ interface InternalPatchResult {
642
641
  type CreateJsHandlerOptions = Omit<IJsHandlerOptions, 'classNameSet'>;
643
642
  interface JsModuleGraphOptions {
644
643
  /**
645
- * Resolve an import specifier to an absolute file path.
644
+ * 将导入的标识符解析为绝对文件路径。
646
645
  */
647
646
  resolve: (specifier: string, importer: string) => string | undefined;
648
647
  /**
649
- * Load module source synchronously.
648
+ * 同步加载模块源码。
650
649
  */
651
650
  load: (id: string) => string | undefined;
652
651
  /**
653
- * Optional filter to skip modules.
652
+ * 可选过滤器,用于跳过特定模块。
654
653
  */
655
654
  filter?: (id: string, specifier: string, importer: string) => boolean;
656
655
  /**
657
- * Maximum traversal depth. Defaults to `Infinity`.
656
+ * 最大遍历深度,默认无限制(`Infinity`)。
658
657
  */
659
658
  maxDepth?: number;
660
659
  }
package/dist/types.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use strict";require('./chunk-O2IOQ3BD.js');
2
- require('./chunk-R7GWRQDJ.js');
2
+ require('./chunk-3AAVIURI.js');
package/dist/types.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  import "./chunk-YAN7TO2B.mjs";
2
- import "./chunk-SCOGAO45.mjs";
2
+ import "./chunk-EGX7MMTE.mjs";
package/dist/vite.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRLWIDWTAjs = require('./chunk-RLWIDWTA.js');
3
+ var _chunkSXYSWJROjs = require('./chunk-SXYSWJRO.js');
4
4
  require('./chunk-W7BVY5S5.js');
5
5
  require('./chunk-LTJQUORK.js');
6
- require('./chunk-E5LRICST.js');
6
+ require('./chunk-36GNZBVS.js');
7
7
  require('./chunk-DWAEHRHN.js');
8
- require('./chunk-GGD75A34.js');
9
- require('./chunk-WXBFAARR.js');
8
+ require('./chunk-RTOKUKLA.js');
9
+ require('./chunk-USAH2CX5.js');
10
10
  require('./chunk-UW3WHSZ5.js');
11
- require('./chunk-R7GWRQDJ.js');
11
+ require('./chunk-3AAVIURI.js');
12
12
 
13
13
 
14
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkRLWIDWTAjs.UnifiedViteWeappTailwindcssPlugin;
14
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkSXYSWJROjs.UnifiedViteWeappTailwindcssPlugin;