weapp-tailwindcss 4.8.5 → 4.8.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.
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-RRHPTTCP.mjs";
12
12
  import {
13
13
  setupPatchRecorder
14
- } from "./chunk-SFQCTDJA.mjs";
14
+ } from "./chunk-SR4OOLTF.mjs";
15
15
  import {
16
16
  collectRuntimeClassSet,
17
17
  createAttributeMatcher,
@@ -22,7 +22,7 @@ import {
22
22
  replaceWxml,
23
23
  toCustomAttributesEntities,
24
24
  vitePluginName
25
- } from "./chunk-K62QTSOE.mjs";
25
+ } from "./chunk-B2IA5GC7.mjs";
26
26
  import {
27
27
  getGroupedEntries
28
28
  } from "./chunk-ZNKIYZRQ.mjs";
@@ -181,7 +181,7 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
181
181
  // package.json
182
182
  var package_default = {
183
183
  name: "weapp-tailwindcss",
184
- version: "4.8.5",
184
+ version: "4.8.6",
185
185
  description: "\u628A tailwindcss \u539F\u5B50\u5316\u6837\u5F0F\u601D\u60F3\uFF0C\u5E26\u7ED9\u5C0F\u7A0B\u5E8F\u5F00\u53D1\u8005\u4EEC! bring tailwindcss to miniprogram developers!",
186
186
  author: "ice breaker <1324318532@qq.com>",
187
187
  license: "MIT",
@@ -371,8 +371,8 @@ var package_default = {
371
371
  "@babel/traverse": "~7.28.5",
372
372
  "@babel/types": "~7.28.5",
373
373
  "@tailwindcss-mangle/config": "^6.1.0",
374
- "@vue/compiler-dom": "^3.5.24",
375
- "@vue/compiler-sfc": "^3.5.24",
374
+ "@vue/compiler-dom": "catalog:vue3",
375
+ "@vue/compiler-sfc": "catalog:vue3",
376
376
  "@weapp-core/escape": "~5.0.1",
377
377
  "@weapp-core/regex": "~1.0.1",
378
378
  "@weapp-tailwindcss/logger": "workspace:*",
@@ -11,7 +11,7 @@ var _chunkAB45L5FPjs = require('./chunk-AB45L5FP.js');
11
11
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
12
12
 
13
13
 
14
- var _chunkFVSKLXO5js = require('./chunk-FVSKLXO5.js');
14
+ var _chunkM4KLNEHTjs = require('./chunk-M4KLNEHT.js');
15
15
 
16
16
 
17
17
 
@@ -22,7 +22,7 @@ var _chunkFVSKLXO5js = require('./chunk-FVSKLXO5.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
25
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
26
26
 
27
27
 
28
28
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
@@ -54,7 +54,7 @@ function updateStaticAttribute(ms, prop) {
54
54
  const start = prop.value.loc.start.offset + 1;
55
55
  const end = prop.value.loc.end.offset - 1;
56
56
  if (start < end) {
57
- ms.update(start, end, _chunkP6ACVBPQjs.replaceWxml.call(void 0, prop.value.content));
57
+ ms.update(start, end, _chunkYUMLYTPNjs.replaceWxml.call(void 0, prop.value.content));
58
58
  }
59
59
  }
60
60
  function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
@@ -66,7 +66,7 @@ function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
66
66
  if (start >= end) {
67
67
  return;
68
68
  }
69
- const generated = _chunkP6ACVBPQjs.generateCode.call(void 0, prop.exp.content, {
69
+ const generated = _chunkYUMLYTPNjs.generateCode.call(void 0, prop.exp.content, {
70
70
  jsHandler,
71
71
  runtimeSet,
72
72
  wrapExpression: true
@@ -95,7 +95,7 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
95
95
  return;
96
96
  }
97
97
  const { customAttributesEntities, disabledDefaultTemplateHandler = false } = options;
98
- const matchCustomAttribute = _chunkP6ACVBPQjs.createAttributeMatcher.call(void 0, customAttributesEntities);
98
+ const matchCustomAttribute = _chunkYUMLYTPNjs.createAttributeMatcher.call(void 0, customAttributesEntities);
99
99
  const ms = new (0, _magicstring2.default)(code);
100
100
  const { descriptor, errors } = _compilersfc.parse.call(void 0, code);
101
101
  if (errors.length === 0) {
@@ -218,7 +218,7 @@ async function formatPostcssSourceMap(rawMap, file) {
218
218
  }
219
219
 
220
220
  // src/bundlers/vite/index.ts
221
- var debug = _chunkP6ACVBPQjs.createDebug.call(void 0, );
221
+ var debug = _chunkYUMLYTPNjs.createDebug.call(void 0, );
222
222
  var weappTailwindcssPackageDir = _chunkAB45L5FPjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
223
223
  var weappTailwindcssDirPosix = slash(weappTailwindcssPackageDir);
224
224
  function joinPosixPath(base, subpath) {
@@ -301,7 +301,7 @@ function applyLinkedResults(linked, entries, onLinkedUpdate, onApplied) {
301
301
  }
302
302
  function UnifiedViteWeappTailwindcssPlugin(options = {}) {
303
303
  const rewriteCssImportsSpecified = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
304
- const opts = _chunkP6ACVBPQjs.getCompilerContext.call(void 0, options);
304
+ const opts = _chunkYUMLYTPNjs.getCompilerContext.call(void 0, options);
305
305
  const {
306
306
  disabled,
307
307
  customAttributes,
@@ -323,8 +323,8 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
323
323
  if (disabled) {
324
324
  return;
325
325
  }
326
- const customAttributesEntities = _chunkP6ACVBPQjs.toCustomAttributesEntities.call(void 0, customAttributes);
327
- const patchRecorderState = _chunkFVSKLXO5js.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
326
+ const customAttributesEntities = _chunkYUMLYTPNjs.toCustomAttributesEntities.call(void 0, customAttributes);
327
+ const patchRecorderState = _chunkM4KLNEHTjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
328
328
  source: "runtime",
329
329
  cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
330
330
  });
@@ -338,7 +338,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
338
338
  let runtimeSetPromise;
339
339
  let resolvedConfig;
340
340
  async function refreshRuntimeState(force) {
341
- const refreshed = await _chunkP6ACVBPQjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
341
+ const refreshed = await _chunkYUMLYTPNjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
342
342
  if (refreshed) {
343
343
  runtimeSet = void 0;
344
344
  runtimeSetPromise = void 0;
@@ -351,7 +351,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
351
351
  return runtimeSet;
352
352
  }
353
353
  if (force || !runtimeSetPromise) {
354
- const task2 = _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
354
+ const task2 = _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
355
355
  force: force || !runtimeSet,
356
356
  skipRefresh: force
357
357
  });
@@ -371,7 +371,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
371
371
  const shouldRewriteCssImports = opts.rewriteCssImports !== false && (rewriteCssImportsSpecified || (_nullishCoalesce(runtimeState.twPatcher.majorVersion, () => ( 0))) >= 4);
372
372
  const rewritePlugins = !shouldRewriteCssImports ? [] : [
373
373
  {
374
- name: `${_chunkP6ACVBPQjs.vitePluginName}:rewrite-css-imports`,
374
+ name: `${_chunkYUMLYTPNjs.vitePluginName}:rewrite-css-imports`,
375
375
  enforce: "pre",
376
376
  resolveId: {
377
377
  order: "pre",
@@ -407,7 +407,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
407
407
  const plugins = [
408
408
  ...rewritePlugins,
409
409
  {
410
- name: `${_chunkP6ACVBPQjs.vitePluginName}:post`,
410
+ name: `${_chunkYUMLYTPNjs.vitePluginName}:post`,
411
411
  enforce: "post",
412
412
  configResolved(config) {
413
413
  resolvedConfig = config;
@@ -3,7 +3,7 @@
3
3
  var _chunkAB45L5FPjs = require('./chunk-AB45L5FP.js');
4
4
 
5
5
 
6
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
6
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
7
7
 
8
8
  // src/bundlers/webpack/shared/css-imports.ts
9
9
  var CSS_EXT_RE = /\.(?:css|scss|sass|less|styl|pcss)$/i;
@@ -43,8 +43,8 @@ function applyTailwindcssCssImportRewrite(compiler, options) {
43
43
  if (!options.enabled) {
44
44
  return;
45
45
  }
46
- compiler.hooks.normalModuleFactory.tap(_chunkP6ACVBPQjs.pluginName, (factory) => {
47
- factory.hooks.beforeResolve.tap(_chunkP6ACVBPQjs.pluginName, (data) => {
46
+ compiler.hooks.normalModuleFactory.tap(_chunkYUMLYTPNjs.pluginName, (factory) => {
47
+ factory.hooks.beforeResolve.tap(_chunkYUMLYTPNjs.pluginName, (data) => {
48
48
  rewriteTailwindcssRequestForCss(data, options.pkgDir);
49
49
  });
50
50
  });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyTailwindcssCssImportRewrite,
3
3
  getCacheKey
4
- } from "./chunk-PSYJXCQJ.mjs";
4
+ } from "./chunk-NQS4LYVY.mjs";
5
5
  import {
6
6
  pushConcurrentTaskFactories,
7
7
  resolveOutputSpecifier,
@@ -13,14 +13,14 @@ import {
13
13
  } from "./chunk-RRHPTTCP.mjs";
14
14
  import {
15
15
  setupPatchRecorder
16
- } from "./chunk-SFQCTDJA.mjs";
16
+ } from "./chunk-SR4OOLTF.mjs";
17
17
  import {
18
18
  collectRuntimeClassSet,
19
19
  createDebug,
20
20
  getCompilerContext,
21
21
  pluginName,
22
22
  refreshTailwindRuntimeState
23
- } from "./chunk-K62QTSOE.mjs";
23
+ } from "./chunk-B2IA5GC7.mjs";
24
24
  import {
25
25
  getGroupedEntries
26
26
  } from "./chunk-ZNKIYZRQ.mjs";
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
4
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
5
5
 
6
6
 
7
7
  var _chunkRJRLVYVJjs = require('./chunk-RJRLVYVJ.js');
8
8
 
9
9
  // src/tailwindcss/recorder.ts
10
10
  function setupPatchRecorder(patcher, baseDir, options) {
11
- const recorder = _chunkP6ACVBPQjs.createPatchTargetRecorder.call(void 0, baseDir, patcher, options);
11
+ const recorder = _chunkYUMLYTPNjs.createPatchTargetRecorder.call(void 0, baseDir, patcher, options);
12
12
  if (_optionalChain([recorder, 'optionalAccess', _ => _.message]) && _optionalChain([options, 'optionalAccess', _2 => _2.logMessage]) !== false) {
13
13
  const prefix = _optionalChain([options, 'optionalAccess', _3 => _3.messagePrefix]) ? `${options.messagePrefix} ` : "";
14
14
  _chunkRJRLVYVJjs.logger.info("%s%s", prefix, recorder.message);
@@ -16,7 +16,7 @@ function setupPatchRecorder(patcher, baseDir, options) {
16
16
  const onPatchCompleted = _optionalChain([recorder, 'optionalAccess', _4 => _4.onPatched]) ? async () => {
17
17
  await recorder.onPatched();
18
18
  } : void 0;
19
- const patchPromise = patcher ? _chunkP6ACVBPQjs.createTailwindPatchPromise.call(void 0, patcher, onPatchCompleted) : Promise.resolve();
19
+ const patchPromise = patcher ? _chunkYUMLYTPNjs.createTailwindPatchPromise.call(void 0, patcher, onPatchCompleted) : Promise.resolve();
20
20
  return {
21
21
  recorder,
22
22
  patchPromise,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-JW7P34IH.mjs";
4
4
  import {
5
5
  pluginName
6
- } from "./chunk-K62QTSOE.mjs";
6
+ } from "./chunk-B2IA5GC7.mjs";
7
7
 
8
8
  // src/bundlers/webpack/shared/css-imports.ts
9
9
  var CSS_EXT_RE = /\.(?:css|scss|sass|less|styl|pcss)$/i;
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-RRHPTTCP.mjs";
4
4
  import {
5
5
  setupPatchRecorder
6
- } from "./chunk-SFQCTDJA.mjs";
6
+ } from "./chunk-SR4OOLTF.mjs";
7
7
  import {
8
8
  collectRuntimeClassSet,
9
9
  createDebug,
10
10
  getCompilerContext,
11
11
  refreshTailwindRuntimeState
12
- } from "./chunk-K62QTSOE.mjs";
12
+ } from "./chunk-B2IA5GC7.mjs";
13
13
 
14
14
  // src/bundlers/gulp/index.ts
15
15
  import { Buffer } from "buffer";
@@ -3,13 +3,13 @@
3
3
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
4
4
 
5
5
 
6
- var _chunkFVSKLXO5js = require('./chunk-FVSKLXO5.js');
6
+ var _chunkM4KLNEHTjs = require('./chunk-M4KLNEHT.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
12
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
13
13
 
14
14
  // src/bundlers/gulp/index.ts
15
15
  var _buffer = require('buffer');
@@ -17,12 +17,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
17
17
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
18
18
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
19
19
  var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
20
- var debug = _chunkP6ACVBPQjs.createDebug.call(void 0, );
20
+ var debug = _chunkYUMLYTPNjs.createDebug.call(void 0, );
21
21
  var Transform = _stream2.default.Transform;
22
22
  function createPlugins(options = {}) {
23
- const opts = _chunkP6ACVBPQjs.getCompilerContext.call(void 0, options);
23
+ const opts = _chunkYUMLYTPNjs.getCompilerContext.call(void 0, options);
24
24
  const { templateHandler, styleHandler, jsHandler, cache, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
25
- const patchRecorderState = _chunkFVSKLXO5js.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
25
+ const patchRecorderState = _chunkM4KLNEHTjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
26
26
  source: "runtime",
27
27
  cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
28
28
  });
@@ -36,7 +36,7 @@ function createPlugins(options = {}) {
36
36
  const MODULE_EXTENSIONS = [".js", ".mjs", ".cjs", ".ts", ".tsx", ".jsx"];
37
37
  let runtimeSetInitialized = false;
38
38
  async function refreshRuntimeState(force) {
39
- await _chunkP6ACVBPQjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
39
+ await _chunkYUMLYTPNjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
40
40
  }
41
41
  async function refreshRuntimeSet(force = false) {
42
42
  await refreshRuntimeState(force);
@@ -44,7 +44,7 @@ function createPlugins(options = {}) {
44
44
  if (!force && runtimeSetInitialized && runtimeSet.size > 0) {
45
45
  return runtimeSet;
46
46
  }
47
- runtimeSet = await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force, skipRefresh: force });
47
+ runtimeSet = await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force, skipRefresh: force });
48
48
  runtimeSetInitialized = true;
49
49
  return runtimeSet;
50
50
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPatchTargetRecorder,
3
3
  createTailwindPatchPromise
4
- } from "./chunk-K62QTSOE.mjs";
4
+ } from "./chunk-B2IA5GC7.mjs";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-3XGTIDA6.mjs";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkTWBCI2I3js = require('./chunk-TWBCI2I3.js');
4
+ var _chunkEK7ECLBWjs = require('./chunk-EK7ECLBW.js');
5
5
 
6
6
 
7
7
 
@@ -13,14 +13,14 @@ var _chunkAB45L5FPjs = require('./chunk-AB45L5FP.js');
13
13
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
14
14
 
15
15
 
16
- var _chunkFVSKLXO5js = require('./chunk-FVSKLXO5.js');
16
+ var _chunkM4KLNEHTjs = require('./chunk-M4KLNEHT.js');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
23
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
24
24
 
25
25
 
26
26
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
@@ -29,11 +29,11 @@ var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
29
29
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
30
30
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
31
31
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
32
- var debug = _chunkP6ACVBPQjs.createDebug.call(void 0, );
32
+ var debug = _chunkYUMLYTPNjs.createDebug.call(void 0, );
33
33
  var weappTailwindcssPackageDir = _chunkAB45L5FPjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
34
34
  var UnifiedWebpackPluginV5 = class {
35
35
  constructor(options = {}) {
36
- this.options = _chunkP6ACVBPQjs.getCompilerContext.call(void 0, options);
36
+ this.options = _chunkYUMLYTPNjs.getCompilerContext.call(void 0, options);
37
37
  this.userSpecifiedRewriteCssImports = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
38
38
  this.appType = this.options.appType;
39
39
  }
@@ -58,12 +58,12 @@ var UnifiedWebpackPluginV5 = class {
58
58
  }
59
59
  const shouldRewriteCssImports = this.options.rewriteCssImports !== false && (this.userSpecifiedRewriteCssImports || (_nullishCoalesce(initialTwPatcher.majorVersion, () => ( 0))) >= 4);
60
60
  if (shouldRewriteCssImports) {
61
- _chunkTWBCI2I3js.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
61
+ _chunkEK7ECLBWjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
62
62
  pkgDir: weappTailwindcssPackageDir,
63
63
  enabled: true
64
64
  });
65
65
  }
66
- const patchRecorderState = _chunkFVSKLXO5js.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
66
+ const patchRecorderState = _chunkM4KLNEHTjs.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
67
67
  source: "runtime",
68
68
  cwd: _nullishCoalesce(this.options.tailwindcssBasedir, () => ( _process2.default.cwd()))
69
69
  });
@@ -74,14 +74,14 @@ var UnifiedWebpackPluginV5 = class {
74
74
  onPatchCompleted: patchRecorderState.onPatchCompleted
75
75
  };
76
76
  const refreshRuntimeState = async (force) => {
77
- await _chunkP6ACVBPQjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
77
+ await _chunkYUMLYTPNjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
78
78
  };
79
79
  const { Compilation, sources, NormalModule } = compiler.webpack;
80
80
  const { ConcatSource } = sources;
81
81
  async function getClassSetInLoader() {
82
82
  await refreshRuntimeState(true);
83
83
  await runtimeState.patchPromise;
84
- await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
84
+ await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
85
85
  }
86
86
  onLoad();
87
87
  const loader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-loader.js")));
@@ -99,8 +99,8 @@ var UnifiedWebpackPluginV5 = class {
99
99
  ident: null,
100
100
  type: null
101
101
  });
102
- compiler.hooks.compilation.tap(_chunkP6ACVBPQjs.pluginName, (compilation) => {
103
- NormalModule.getCompilationHooks(compilation).loader.tap(_chunkP6ACVBPQjs.pluginName, (_loaderContext, module) => {
102
+ compiler.hooks.compilation.tap(_chunkYUMLYTPNjs.pluginName, (compilation) => {
103
+ NormalModule.getCompilationHooks(compilation).loader.tap(_chunkYUMLYTPNjs.pluginName, (_loaderContext, module) => {
104
104
  if (isExisted) {
105
105
  const idx = module.loaders.findIndex((x) => x.loader.includes("postcss-loader"));
106
106
  const runtimeLoaderEntry = createRuntimeLoaderEntry();
@@ -113,7 +113,7 @@ var UnifiedWebpackPluginV5 = class {
113
113
  });
114
114
  compilation.hooks.processAssets.tapPromise(
115
115
  {
116
- name: _chunkP6ACVBPQjs.pluginName,
116
+ name: _chunkYUMLYTPNjs.pluginName,
117
117
  stage: Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE
118
118
  },
119
119
  async (assets) => {
@@ -182,7 +182,7 @@ var UnifiedWebpackPluginV5 = class {
182
182
  const groupedEntries = _chunkUW3WHSZ5js.getGroupedEntries.call(void 0, entries, this.options);
183
183
  await refreshRuntimeState(true);
184
184
  await runtimeState.patchPromise;
185
- const runtimeSet = await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
185
+ const runtimeSet = await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
186
186
  debug("get runtimeSet, class count: %d", runtimeSet.size);
187
187
  const tasks = [];
188
188
  if (Array.isArray(groupedEntries.html)) {
@@ -219,7 +219,7 @@ var UnifiedWebpackPluginV5 = class {
219
219
  const jsTaskFactories = [];
220
220
  if (Array.isArray(groupedEntries.js)) {
221
221
  for (const [file] of groupedEntries.js) {
222
- const cacheKey = _chunkTWBCI2I3js.getCacheKey.call(void 0, file);
222
+ const cacheKey = _chunkEK7ECLBWjs.getCacheKey.call(void 0, file);
223
223
  const asset = compilation.getAsset(file);
224
224
  if (!asset) {
225
225
  continue;
@@ -181,7 +181,7 @@ async function collectRuntimeClassSet(twPatcher, options = {}) {
181
181
  // package.json
182
182
  var package_default = {
183
183
  name: "weapp-tailwindcss",
184
- version: "4.8.5",
184
+ version: "4.8.6",
185
185
  description: "\u628A tailwindcss \u539F\u5B50\u5316\u6837\u5F0F\u601D\u60F3\uFF0C\u5E26\u7ED9\u5C0F\u7A0B\u5E8F\u5F00\u53D1\u8005\u4EEC! bring tailwindcss to miniprogram developers!",
186
186
  author: "ice breaker <1324318532@qq.com>",
187
187
  license: "MIT",
@@ -371,8 +371,8 @@ var package_default = {
371
371
  "@babel/traverse": "~7.28.5",
372
372
  "@babel/types": "~7.28.5",
373
373
  "@tailwindcss-mangle/config": "^6.1.0",
374
- "@vue/compiler-dom": "^3.5.24",
375
- "@vue/compiler-sfc": "^3.5.24",
374
+ "@vue/compiler-dom": "catalog:vue3",
375
+ "@vue/compiler-sfc": "catalog:vue3",
376
376
  "@weapp-core/escape": "~5.0.1",
377
377
  "@weapp-core/regex": "~1.0.1",
378
378
  "@weapp-tailwindcss/logger": "workspace:*",
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
6
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
7
7
 
8
8
 
9
9
 
@@ -370,9 +370,9 @@ async function patchWorkspace(options) {
370
370
  try {
371
371
  const patcher = createWorkspacePatcher(dir);
372
372
  if (options.clearCache) {
373
- await _chunkP6ACVBPQjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
373
+ await _chunkYUMLYTPNjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
374
374
  }
375
- const recorder = _chunkP6ACVBPQjs.createPatchTargetRecorder.call(void 0, dir, patcher, {
375
+ const recorder = _chunkYUMLYTPNjs.createPatchTargetRecorder.call(void 0, dir, patcher, {
376
376
  source: "cli",
377
377
  cwd: dir,
378
378
  recordTarget: options.recordTarget !== false,
@@ -381,7 +381,7 @@ async function patchWorkspace(options) {
381
381
  if (_optionalChain([recorder, 'optionalAccess', _9 => _9.message])) {
382
382
  _chunkRJRLVYVJjs.logger.info("[workspace] %s %s", displayName, recorder.message);
383
383
  }
384
- _chunkP6ACVBPQjs.logTailwindcssTarget.call(void 0, "cli", patcher, dir);
384
+ _chunkYUMLYTPNjs.logTailwindcssTarget.call(void 0, "cli", patcher, dir);
385
385
  await patcher.patch();
386
386
  if (_optionalChain([recorder, 'optionalAccess', _10 => _10.onPatched])) {
387
387
  await recorder.onPatched();
@@ -471,9 +471,9 @@ var mountOptions = {
471
471
  }
472
472
  const patcher = await ctx.createPatcher();
473
473
  if (shouldClearCache) {
474
- await _chunkP6ACVBPQjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
474
+ await _chunkYUMLYTPNjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
475
475
  }
476
- const recorder = _chunkP6ACVBPQjs.createPatchTargetRecorder.call(void 0, ctx.cwd, patcher, {
476
+ const recorder = _chunkYUMLYTPNjs.createPatchTargetRecorder.call(void 0, ctx.cwd, patcher, {
477
477
  source: "cli",
478
478
  cwd: ctx.cwd,
479
479
  recordTarget: shouldRecordTarget,
@@ -482,7 +482,7 @@ var mountOptions = {
482
482
  if (_optionalChain([recorder, 'optionalAccess', _13 => _13.message])) {
483
483
  _chunkRJRLVYVJjs.logger.info(recorder.message);
484
484
  }
485
- _chunkP6ACVBPQjs.logTailwindcssTarget.call(void 0, "cli", patcher, ctx.cwd);
485
+ _chunkYUMLYTPNjs.logTailwindcssTarget.call(void 0, "cli", patcher, ctx.cwd);
486
486
  await patcher.patch();
487
487
  if (_optionalChain([recorder, 'optionalAccess', _14 => _14.onPatched])) {
488
488
  const recordPath = await recorder.onPatched();
@@ -498,9 +498,9 @@ var mountOptions = {
498
498
  }
499
499
  };
500
500
  _process2.default.title = "node (weapp-tailwindcss)";
501
- if (_semver2.default.lt(_process2.default.versions.node, _chunkP6ACVBPQjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
501
+ if (_semver2.default.lt(_process2.default.versions.node, _chunkYUMLYTPNjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
502
502
  _chunkRJRLVYVJjs.logger.warn(
503
- `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkP6ACVBPQjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
503
+ `You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkYUMLYTPNjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
504
504
  );
505
505
  }
506
506
  var cli = _tailwindcsspatch.createTailwindcssPatchCli.call(void 0, {
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  clearTailwindcssPatcherCache,
4
4
  createPatchTargetRecorder,
5
5
  logTailwindcssTarget
6
- } from "./chunk-K62QTSOE.mjs";
6
+ } from "./chunk-B2IA5GC7.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getTailwindcssPackageInfo,
package/dist/core.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkFVSKLXO5js = require('./chunk-FVSKLXO5.js');
3
+ var _chunkM4KLNEHTjs = require('./chunk-M4KLNEHT.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
8
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
9
9
  require('./chunk-RJRLVYVJ.js');
10
10
  require('./chunk-ZSTF2AEN.js');
11
11
  require('./chunk-UW3WHSZ5.js');
@@ -15,9 +15,9 @@ require('./chunk-UTZLVU3M.js');
15
15
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
16
16
  var _shared = require('@weapp-tailwindcss/shared');
17
17
  function createContext(options = {}) {
18
- const opts = _chunkP6ACVBPQjs.getCompilerContext.call(void 0, options);
18
+ const opts = _chunkYUMLYTPNjs.getCompilerContext.call(void 0, options);
19
19
  const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
20
- const patchRecorderState = _chunkFVSKLXO5js.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
20
+ const patchRecorderState = _chunkM4KLNEHTjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
21
21
  source: "runtime",
22
22
  cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
23
23
  });
@@ -29,7 +29,7 @@ function createContext(options = {}) {
29
29
  onPatchCompleted: patchRecorderState.onPatchCompleted
30
30
  };
31
31
  async function refreshRuntimeState(force) {
32
- await _chunkP6ACVBPQjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
32
+ await _chunkYUMLYTPNjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
33
33
  }
34
34
  async function transformWxss(rawCss, options2) {
35
35
  await runtimeState.patchPromise;
@@ -38,7 +38,7 @@ function createContext(options = {}) {
38
38
  }));
39
39
  await refreshRuntimeState(true);
40
40
  await runtimeState.patchPromise;
41
- runtimeSet = await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
41
+ runtimeSet = await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
42
42
  return result;
43
43
  }
44
44
  async function transformJs(rawJs, options2 = {}) {
@@ -48,7 +48,7 @@ function createContext(options = {}) {
48
48
  } else {
49
49
  await refreshRuntimeState(true);
50
50
  await runtimeState.patchPromise;
51
- runtimeSet = await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
51
+ runtimeSet = await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
52
52
  }
53
53
  return await jsHandler(rawJs, runtimeSet, options2);
54
54
  }
@@ -57,7 +57,7 @@ function createContext(options = {}) {
57
57
  if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
58
58
  await refreshRuntimeState(true);
59
59
  await runtimeState.patchPromise;
60
- runtimeSet = await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
60
+ runtimeSet = await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
61
61
  }
62
62
  return templateHandler(rawWxml, _shared.defuOverrideArray.call(void 0, options2, {
63
63
  runtimeSet
package/dist/core.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  setupPatchRecorder
3
- } from "./chunk-SFQCTDJA.mjs";
3
+ } from "./chunk-SR4OOLTF.mjs";
4
4
  import {
5
5
  collectRuntimeClassSet,
6
6
  getCompilerContext,
7
7
  refreshTailwindRuntimeState
8
- } from "./chunk-K62QTSOE.mjs";
8
+ } from "./chunk-B2IA5GC7.mjs";
9
9
  import "./chunk-3XGTIDA6.mjs";
10
10
  import "./chunk-DKPIYG24.mjs";
11
11
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/gulp.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRA4QKEFUjs = require('./chunk-RA4QKEFU.js');
3
+ var _chunkPMCA6PRQjs = require('./chunk-PMCA6PRQ.js');
4
4
  require('./chunk-LTJQUORK.js');
5
- require('./chunk-FVSKLXO5.js');
6
- require('./chunk-P6ACVBPQ.js');
5
+ require('./chunk-M4KLNEHT.js');
6
+ require('./chunk-YUMLYTPN.js');
7
7
  require('./chunk-RJRLVYVJ.js');
8
8
  require('./chunk-ZSTF2AEN.js');
9
9
  require('./chunk-UW3WHSZ5.js');
10
10
  require('./chunk-UTZLVU3M.js');
11
11
 
12
12
 
13
- exports.createPlugins = _chunkRA4QKEFUjs.createPlugins;
13
+ exports.createPlugins = _chunkPMCA6PRQjs.createPlugins;
package/dist/gulp.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createPlugins
3
- } from "./chunk-OKBZMEXY.mjs";
3
+ } from "./chunk-OPM3REFF.mjs";
4
4
  import "./chunk-RRHPTTCP.mjs";
5
- import "./chunk-SFQCTDJA.mjs";
6
- import "./chunk-K62QTSOE.mjs";
5
+ import "./chunk-SR4OOLTF.mjs";
6
+ import "./chunk-B2IA5GC7.mjs";
7
7
  import "./chunk-3XGTIDA6.mjs";
8
8
  import "./chunk-DKPIYG24.mjs";
9
9
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/index.js CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk6CS6EPEPjs = require('./chunk-6CS6EPEP.js');
6
- require('./chunk-TWBCI2I3.js');
5
+ var _chunkUUHV4D5Bjs = require('./chunk-UUHV4D5B.js');
6
+ require('./chunk-EK7ECLBW.js');
7
7
 
8
8
 
9
- var _chunkRA4QKEFUjs = require('./chunk-RA4QKEFU.js');
9
+ var _chunkPMCA6PRQjs = require('./chunk-PMCA6PRQ.js');
10
10
 
11
11
 
12
- var _chunkRXCVTHDOjs = require('./chunk-RXCVTHDO.js');
12
+ var _chunkBWKCXQQHjs = require('./chunk-BWKCXQQH.js');
13
13
  require('./chunk-AB45L5FP.js');
14
14
  require('./chunk-LTJQUORK.js');
15
- require('./chunk-FVSKLXO5.js');
16
- require('./chunk-P6ACVBPQ.js');
15
+ require('./chunk-M4KLNEHT.js');
16
+ require('./chunk-YUMLYTPN.js');
17
17
  require('./chunk-RJRLVYVJ.js');
18
18
  require('./chunk-ZSTF2AEN.js');
19
19
  require('./chunk-UW3WHSZ5.js');
@@ -23,4 +23,4 @@ require('./chunk-UTZLVU3M.js');
23
23
 
24
24
 
25
25
 
26
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkRXCVTHDOjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk6CS6EPEPjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkRA4QKEFUjs.createPlugins; exports.weappTailwindcssPackageDir = _chunk6CS6EPEPjs.weappTailwindcssPackageDir;
26
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkBWKCXQQHjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkUUHV4D5Bjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkPMCA6PRQjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkUUHV4D5Bjs.weappTailwindcssPackageDir;
package/dist/index.mjs CHANGED
@@ -2,18 +2,18 @@ import "./chunk-YAN7TO2B.mjs";
2
2
  import {
3
3
  UnifiedWebpackPluginV5,
4
4
  weappTailwindcssPackageDir
5
- } from "./chunk-FE63QKGM.mjs";
6
- import "./chunk-PSYJXCQJ.mjs";
5
+ } from "./chunk-KWRRSLTH.mjs";
6
+ import "./chunk-NQS4LYVY.mjs";
7
7
  import {
8
8
  createPlugins
9
- } from "./chunk-OKBZMEXY.mjs";
9
+ } from "./chunk-OPM3REFF.mjs";
10
10
  import {
11
11
  UnifiedViteWeappTailwindcssPlugin
12
- } from "./chunk-WSMJXGQQ.mjs";
12
+ } from "./chunk-AUKQJILC.mjs";
13
13
  import "./chunk-JW7P34IH.mjs";
14
14
  import "./chunk-RRHPTTCP.mjs";
15
- import "./chunk-SFQCTDJA.mjs";
16
- import "./chunk-K62QTSOE.mjs";
15
+ import "./chunk-SR4OOLTF.mjs";
16
+ import "./chunk-B2IA5GC7.mjs";
17
17
  import "./chunk-3XGTIDA6.mjs";
18
18
  import "./chunk-DKPIYG24.mjs";
19
19
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/vite.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRXCVTHDOjs = require('./chunk-RXCVTHDO.js');
3
+ var _chunkBWKCXQQHjs = require('./chunk-BWKCXQQH.js');
4
4
  require('./chunk-AB45L5FP.js');
5
5
  require('./chunk-LTJQUORK.js');
6
- require('./chunk-FVSKLXO5.js');
7
- require('./chunk-P6ACVBPQ.js');
6
+ require('./chunk-M4KLNEHT.js');
7
+ require('./chunk-YUMLYTPN.js');
8
8
  require('./chunk-RJRLVYVJ.js');
9
9
  require('./chunk-ZSTF2AEN.js');
10
10
  require('./chunk-UW3WHSZ5.js');
11
11
  require('./chunk-UTZLVU3M.js');
12
12
 
13
13
 
14
- exports.UnifiedViteWeappTailwindcssPlugin = _chunkRXCVTHDOjs.UnifiedViteWeappTailwindcssPlugin;
14
+ exports.UnifiedViteWeappTailwindcssPlugin = _chunkBWKCXQQHjs.UnifiedViteWeappTailwindcssPlugin;
package/dist/vite.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  UnifiedViteWeappTailwindcssPlugin
3
- } from "./chunk-WSMJXGQQ.mjs";
3
+ } from "./chunk-AUKQJILC.mjs";
4
4
  import "./chunk-JW7P34IH.mjs";
5
5
  import "./chunk-RRHPTTCP.mjs";
6
- import "./chunk-SFQCTDJA.mjs";
7
- import "./chunk-K62QTSOE.mjs";
6
+ import "./chunk-SR4OOLTF.mjs";
7
+ import "./chunk-B2IA5GC7.mjs";
8
8
  import "./chunk-3XGTIDA6.mjs";
9
9
  import "./chunk-DKPIYG24.mjs";
10
10
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/webpack.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6CS6EPEPjs = require('./chunk-6CS6EPEP.js');
5
- require('./chunk-TWBCI2I3.js');
4
+ var _chunkUUHV4D5Bjs = require('./chunk-UUHV4D5B.js');
5
+ require('./chunk-EK7ECLBW.js');
6
6
  require('./chunk-AB45L5FP.js');
7
7
  require('./chunk-LTJQUORK.js');
8
- require('./chunk-FVSKLXO5.js');
9
- require('./chunk-P6ACVBPQ.js');
8
+ require('./chunk-M4KLNEHT.js');
9
+ require('./chunk-YUMLYTPN.js');
10
10
  require('./chunk-RJRLVYVJ.js');
11
11
  require('./chunk-ZSTF2AEN.js');
12
12
  require('./chunk-UW3WHSZ5.js');
@@ -14,4 +14,4 @@ require('./chunk-UTZLVU3M.js');
14
14
 
15
15
 
16
16
 
17
- exports.UnifiedWebpackPluginV5 = _chunk6CS6EPEPjs.UnifiedWebpackPluginV5; exports.weappTailwindcssPackageDir = _chunk6CS6EPEPjs.weappTailwindcssPackageDir;
17
+ exports.UnifiedWebpackPluginV5 = _chunkUUHV4D5Bjs.UnifiedWebpackPluginV5; exports.weappTailwindcssPackageDir = _chunkUUHV4D5Bjs.weappTailwindcssPackageDir;
package/dist/webpack.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  UnifiedWebpackPluginV5,
3
3
  weappTailwindcssPackageDir
4
- } from "./chunk-FE63QKGM.mjs";
5
- import "./chunk-PSYJXCQJ.mjs";
4
+ } from "./chunk-KWRRSLTH.mjs";
5
+ import "./chunk-NQS4LYVY.mjs";
6
6
  import "./chunk-JW7P34IH.mjs";
7
7
  import "./chunk-RRHPTTCP.mjs";
8
- import "./chunk-SFQCTDJA.mjs";
9
- import "./chunk-K62QTSOE.mjs";
8
+ import "./chunk-SR4OOLTF.mjs";
9
+ import "./chunk-B2IA5GC7.mjs";
10
10
  import "./chunk-3XGTIDA6.mjs";
11
11
  import "./chunk-DKPIYG24.mjs";
12
12
  import "./chunk-ZNKIYZRQ.mjs";
package/dist/webpack4.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkTWBCI2I3js = require('./chunk-TWBCI2I3.js');
4
+ var _chunkEK7ECLBWjs = require('./chunk-EK7ECLBW.js');
5
5
 
6
6
 
7
7
 
@@ -13,14 +13,14 @@ var _chunkAB45L5FPjs = require('./chunk-AB45L5FP.js');
13
13
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
14
14
 
15
15
 
16
- var _chunkFVSKLXO5js = require('./chunk-FVSKLXO5.js');
16
+ var _chunkM4KLNEHTjs = require('./chunk-M4KLNEHT.js');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkP6ACVBPQjs = require('./chunk-P6ACVBPQ.js');
23
+ var _chunkYUMLYTPNjs = require('./chunk-YUMLYTPN.js');
24
24
  require('./chunk-RJRLVYVJ.js');
25
25
  require('./chunk-ZSTF2AEN.js');
26
26
 
@@ -33,11 +33,11 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
33
33
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
34
34
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
35
35
  var _webpacksources = require('webpack-sources');
36
- var debug = _chunkP6ACVBPQjs.createDebug.call(void 0, );
36
+ var debug = _chunkYUMLYTPNjs.createDebug.call(void 0, );
37
37
  var weappTailwindcssPackageDir = _chunkAB45L5FPjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
38
38
  var UnifiedWebpackPluginV4 = class {
39
39
  constructor(options = {}) {
40
- this.options = _chunkP6ACVBPQjs.getCompilerContext.call(void 0, options);
40
+ this.options = _chunkYUMLYTPNjs.getCompilerContext.call(void 0, options);
41
41
  this.userSpecifiedRewriteCssImports = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
42
42
  this.appType = this.options.appType;
43
43
  }
@@ -62,12 +62,12 @@ var UnifiedWebpackPluginV4 = class {
62
62
  }
63
63
  const shouldRewriteCssImports = this.options.rewriteCssImports !== false && (this.userSpecifiedRewriteCssImports || (_nullishCoalesce(initialTwPatcher.majorVersion, () => ( 0))) >= 4);
64
64
  if (shouldRewriteCssImports) {
65
- _chunkTWBCI2I3js.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
65
+ _chunkEK7ECLBWjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
66
66
  pkgDir: weappTailwindcssPackageDir,
67
67
  enabled: true
68
68
  });
69
69
  }
70
- const patchRecorderState = _chunkFVSKLXO5js.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
70
+ const patchRecorderState = _chunkM4KLNEHTjs.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
71
71
  source: "runtime",
72
72
  cwd: _nullishCoalesce(this.options.tailwindcssBasedir, () => ( _process2.default.cwd()))
73
73
  });
@@ -78,12 +78,12 @@ var UnifiedWebpackPluginV4 = class {
78
78
  onPatchCompleted: patchRecorderState.onPatchCompleted
79
79
  };
80
80
  const refreshRuntimeState = async (force) => {
81
- await _chunkP6ACVBPQjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
81
+ await _chunkYUMLYTPNjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
82
82
  };
83
83
  async function getClassSetInLoader() {
84
84
  await refreshRuntimeState(true);
85
85
  await runtimeState.patchPromise;
86
- await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
86
+ await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
87
87
  }
88
88
  onLoad();
89
89
  const loader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-loader.js")));
@@ -101,8 +101,8 @@ var UnifiedWebpackPluginV4 = class {
101
101
  ident: null,
102
102
  type: null
103
103
  });
104
- compiler.hooks.compilation.tap(_chunkP6ACVBPQjs.pluginName, (compilation) => {
105
- compilation.hooks.normalModuleLoader.tap(_chunkP6ACVBPQjs.pluginName, (_loaderContext, module) => {
104
+ compiler.hooks.compilation.tap(_chunkYUMLYTPNjs.pluginName, (compilation) => {
105
+ compilation.hooks.normalModuleLoader.tap(_chunkYUMLYTPNjs.pluginName, (_loaderContext, module) => {
106
106
  if (isExisted) {
107
107
  const idx = module.loaders.findIndex((x) => x.loader.includes("postcss-loader"));
108
108
  if (idx > -1) {
@@ -113,7 +113,7 @@ var UnifiedWebpackPluginV4 = class {
113
113
  }
114
114
  });
115
115
  });
116
- compiler.hooks.emit.tapPromise(_chunkP6ACVBPQjs.pluginName, async (compilation) => {
116
+ compiler.hooks.emit.tapPromise(_chunkYUMLYTPNjs.pluginName, async (compilation) => {
117
117
  await runtimeState.patchPromise;
118
118
  onStart();
119
119
  debug("start");
@@ -179,7 +179,7 @@ var UnifiedWebpackPluginV4 = class {
179
179
  const groupedEntries = _chunkUW3WHSZ5js.getGroupedEntries.call(void 0, entries, this.options);
180
180
  await refreshRuntimeState(true);
181
181
  await runtimeState.patchPromise;
182
- const runtimeSet = await _chunkP6ACVBPQjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
182
+ const runtimeSet = await _chunkYUMLYTPNjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
183
183
  debug("get runtimeSet, class count: %d", runtimeSet.size);
184
184
  const tasks = [];
185
185
  if (Array.isArray(groupedEntries.html)) {
@@ -216,7 +216,7 @@ var UnifiedWebpackPluginV4 = class {
216
216
  const jsTaskFactories = [];
217
217
  if (Array.isArray(groupedEntries.js)) {
218
218
  for (const [file] of groupedEntries.js) {
219
- const cacheKey = _chunkTWBCI2I3js.getCacheKey.call(void 0, file);
219
+ const cacheKey = _chunkEK7ECLBWjs.getCacheKey.call(void 0, file);
220
220
  const assetSource = compilation.assets[file];
221
221
  if (!assetSource) {
222
222
  continue;
package/dist/webpack4.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyTailwindcssCssImportRewrite,
3
3
  getCacheKey
4
- } from "./chunk-PSYJXCQJ.mjs";
4
+ } from "./chunk-NQS4LYVY.mjs";
5
5
  import {
6
6
  pushConcurrentTaskFactories,
7
7
  resolveOutputSpecifier,
@@ -13,14 +13,14 @@ import {
13
13
  } from "./chunk-RRHPTTCP.mjs";
14
14
  import {
15
15
  setupPatchRecorder
16
- } from "./chunk-SFQCTDJA.mjs";
16
+ } from "./chunk-SR4OOLTF.mjs";
17
17
  import {
18
18
  collectRuntimeClassSet,
19
19
  createDebug,
20
20
  getCompilerContext,
21
21
  pluginName,
22
22
  refreshTailwindRuntimeState
23
- } from "./chunk-K62QTSOE.mjs";
23
+ } from "./chunk-B2IA5GC7.mjs";
24
24
  import "./chunk-3XGTIDA6.mjs";
25
25
  import "./chunk-DKPIYG24.mjs";
26
26
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "4.8.5",
3
+ "version": "4.8.6",
4
4
  "description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -181,12 +181,12 @@
181
181
  "lru-cache": "10.4.3",
182
182
  "magic-string": "0.30.21",
183
183
  "semver": "~7.7.3",
184
- "tailwindcss-patch": "^8.4.1",
184
+ "tailwindcss-patch": "^8.4.2",
185
185
  "webpack-sources": "3.3.3",
186
186
  "yaml": "^2.8.1",
187
187
  "@weapp-tailwindcss/logger": "1.1.0",
188
- "@weapp-tailwindcss/postcss": "2.0.4",
189
- "@weapp-tailwindcss/shared": "1.1.1"
188
+ "@weapp-tailwindcss/shared": "1.1.1",
189
+ "@weapp-tailwindcss/postcss": "2.0.4"
190
190
  },
191
191
  "scripts": {
192
192
  "dev": "tsup --watch --sourcemap",