weapp-tailwindcss 4.8.3 → 4.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/{chunk-UCA2DMVN.js → chunk-47NJZTIW.js} +5 -5
  2. package/dist/{chunk-W5Z3I3S2.js → chunk-5P342MNS.js} +21 -21
  3. package/dist/{chunk-26ZRX6OH.js → chunk-6EATUPTN.js} +19 -19
  4. package/dist/{chunk-PLV4QGF4.js → chunk-AXEKXGG7.js} +3 -3
  5. package/dist/{chunk-E3GZQTOH.mjs → chunk-IHJU6M6B.mjs} +1 -1
  6. package/dist/chunk-JMYADIPN.mjs +10 -0
  7. package/dist/{chunk-H34KPZQW.js → chunk-K234IGOT.js} +2 -2
  8. package/dist/{chunk-N2ZUYGKA.js → chunk-MG4O3AGN.js} +6 -6
  9. package/dist/chunk-WGLBMNPG.js +7 -0
  10. package/dist/{chunk-2ZEOKKVA.js → chunk-ZXU4EYKV.js} +4 -4
  11. package/dist/cli.js +73 -311
  12. package/dist/cli.mjs +69 -306
  13. package/dist/core.js +9 -9
  14. package/dist/core.mjs +1 -1
  15. package/dist/css-macro/postcss.js +1 -1
  16. package/dist/css-macro/postcss.mjs +1 -1
  17. package/dist/css-macro.js +1 -1
  18. package/dist/css-macro.mjs +1 -1
  19. package/dist/defaults.js +1 -1
  20. package/dist/defaults.mjs +1 -1
  21. package/dist/gulp.js +5 -5
  22. package/dist/gulp.mjs +1 -1
  23. package/dist/index.js +9 -9
  24. package/dist/index.mjs +2 -2
  25. package/dist/postcss-html-transform.js +1 -1
  26. package/dist/postcss-html-transform.mjs +1 -1
  27. package/dist/presets.js +3 -3
  28. package/dist/presets.mjs +1 -1
  29. package/dist/types.js +1 -1
  30. package/dist/types.mjs +1 -1
  31. package/dist/vite.js +6 -6
  32. package/dist/vite.mjs +1 -1
  33. package/dist/webpack.js +7 -7
  34. package/dist/webpack.mjs +2 -2
  35. package/dist/webpack4.js +21 -21
  36. package/dist/webpack4.mjs +1 -1
  37. package/package.json +4 -4
  38. package/dist/chunk-QGH4JZRW.mjs +0 -18
  39. package/dist/chunk-UJIUFWXE.js +0 -15
@@ -1,9 +1,9 @@
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
- var _chunkH34KPZQWjs = require('./chunk-H34KPZQW.js');
3
+ var _chunkK234IGOTjs = require('./chunk-K234IGOT.js');
4
4
 
5
5
 
6
- var _chunkPLV4QGF4js = require('./chunk-PLV4QGF4.js');
6
+ var _chunkAXEKXGG7js = require('./chunk-AXEKXGG7.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;
@@ -33,7 +33,7 @@ function rewriteTailwindcssRequestForCss(data, pkgDir) {
33
33
  if (!CSS_EXT_RE.test(normalizedIssuer)) {
34
34
  return;
35
35
  }
36
- const resolved = _chunkH34KPZQWjs.resolveTailwindcssImport.call(void 0, request, pkgDir);
36
+ const resolved = _chunkK234IGOTjs.resolveTailwindcssImport.call(void 0, request, pkgDir);
37
37
  if (!resolved) {
38
38
  return;
39
39
  }
@@ -43,8 +43,8 @@ function applyTailwindcssCssImportRewrite(compiler, options) {
43
43
  if (!options.enabled) {
44
44
  return;
45
45
  }
46
- compiler.hooks.normalModuleFactory.tap(_chunkPLV4QGF4js.pluginName, (factory) => {
47
- factory.hooks.beforeResolve.tap(_chunkPLV4QGF4js.pluginName, (data) => {
46
+ compiler.hooks.normalModuleFactory.tap(_chunkAXEKXGG7js.pluginName, (factory) => {
47
+ factory.hooks.beforeResolve.tap(_chunkAXEKXGG7js.pluginName, (data) => {
48
48
  rewriteTailwindcssRequestForCss(data, options.pkgDir);
49
49
  });
50
50
  });
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkH34KPZQWjs = require('./chunk-H34KPZQW.js');
8
+ var _chunkK234IGOTjs = require('./chunk-K234IGOT.js');
9
9
 
10
10
 
11
11
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
@@ -20,7 +20,7 @@ var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkPLV4QGF4js = require('./chunk-PLV4QGF4.js');
23
+ var _chunkAXEKXGG7js = require('./chunk-AXEKXGG7.js');
24
24
 
25
25
 
26
26
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
@@ -52,7 +52,7 @@ function updateStaticAttribute(ms, prop) {
52
52
  const start = prop.value.loc.start.offset + 1;
53
53
  const end = prop.value.loc.end.offset - 1;
54
54
  if (start < end) {
55
- ms.update(start, end, _chunkPLV4QGF4js.replaceWxml.call(void 0, prop.value.content));
55
+ ms.update(start, end, _chunkAXEKXGG7js.replaceWxml.call(void 0, prop.value.content));
56
56
  }
57
57
  }
58
58
  function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
@@ -64,7 +64,7 @@ function updateDirectiveExpression(ms, prop, jsHandler, runtimeSet) {
64
64
  if (start >= end) {
65
65
  return;
66
66
  }
67
- const generated = _chunkPLV4QGF4js.generateCode.call(void 0, prop.exp.content, {
67
+ const generated = _chunkAXEKXGG7js.generateCode.call(void 0, prop.exp.content, {
68
68
  jsHandler,
69
69
  runtimeSet,
70
70
  wrapExpression: true
@@ -93,7 +93,7 @@ function transformUVue(code, id, jsHandler, runtimeSet, options = {}) {
93
93
  return;
94
94
  }
95
95
  const { customAttributesEntities, disabledDefaultTemplateHandler = false } = options;
96
- const matchCustomAttribute = _chunkPLV4QGF4js.createAttributeMatcher.call(void 0, customAttributesEntities);
96
+ const matchCustomAttribute = _chunkAXEKXGG7js.createAttributeMatcher.call(void 0, customAttributesEntities);
97
97
  const ms = new (0, _magicstring2.default)(code);
98
98
  const { descriptor, errors } = _compilersfc.parse.call(void 0, code);
99
99
  if (errors.length === 0) {
@@ -216,8 +216,8 @@ async function formatPostcssSourceMap(rawMap, file) {
216
216
  }
217
217
 
218
218
  // src/bundlers/vite/index.ts
219
- var debug = _chunkPLV4QGF4js.createDebug.call(void 0, );
220
- var weappTailwindcssPackageDir = _chunkH34KPZQWjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
219
+ var debug = _chunkAXEKXGG7js.createDebug.call(void 0, );
220
+ var weappTailwindcssPackageDir = _chunkK234IGOTjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
221
221
  var weappTailwindcssDirPosix = slash(weappTailwindcssPackageDir);
222
222
  function joinPosixPath(base, subpath) {
223
223
  if (base.endsWith("/")) {
@@ -261,7 +261,7 @@ function isJavaScriptEntry(entry) {
261
261
  function createBundleModuleGraphOptions(outputDir, entries) {
262
262
  return {
263
263
  resolve(specifier, importer) {
264
- return _chunkH34KPZQWjs.resolveOutputSpecifier.call(void 0, specifier, importer, outputDir, (candidate) => entries.has(candidate));
264
+ return _chunkK234IGOTjs.resolveOutputSpecifier.call(void 0, specifier, importer, outputDir, (candidate) => entries.has(candidate));
265
265
  },
266
266
  load(id) {
267
267
  const entry = entries.get(id);
@@ -299,7 +299,7 @@ function applyLinkedResults(linked, entries, onLinkedUpdate, onApplied) {
299
299
  }
300
300
  function UnifiedViteWeappTailwindcssPlugin(options = {}) {
301
301
  const rewriteCssImportsSpecified = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
302
- const opts = _chunkPLV4QGF4js.getCompilerContext.call(void 0, options);
302
+ const opts = _chunkAXEKXGG7js.getCompilerContext.call(void 0, options);
303
303
  const {
304
304
  disabled,
305
305
  customAttributes,
@@ -321,17 +321,17 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
321
321
  if (disabled) {
322
322
  return;
323
323
  }
324
- const customAttributesEntities = _chunkPLV4QGF4js.toCustomAttributesEntities.call(void 0, customAttributes);
324
+ const customAttributesEntities = _chunkAXEKXGG7js.toCustomAttributesEntities.call(void 0, customAttributes);
325
325
  const runtimeState = {
326
326
  twPatcher: initialTwPatcher,
327
- patchPromise: _chunkPLV4QGF4js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
327
+ patchPromise: _chunkAXEKXGG7js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
328
328
  refreshTailwindcssPatcher
329
329
  };
330
330
  let runtimeSet;
331
331
  let runtimeSetPromise;
332
332
  let resolvedConfig;
333
333
  async function refreshRuntimeState(force) {
334
- const refreshed = await _chunkPLV4QGF4js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
334
+ const refreshed = await _chunkAXEKXGG7js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
335
335
  if (refreshed) {
336
336
  runtimeSet = void 0;
337
337
  runtimeSetPromise = void 0;
@@ -344,7 +344,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
344
344
  return runtimeSet;
345
345
  }
346
346
  if (force || !runtimeSetPromise) {
347
- const task2 = _chunkPLV4QGF4js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
347
+ const task2 = _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, {
348
348
  force: force || !runtimeSet,
349
349
  skipRefresh: force
350
350
  });
@@ -364,10 +364,10 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
364
364
  const shouldRewriteCssImports = opts.rewriteCssImports !== false && (rewriteCssImportsSpecified || (_nullishCoalesce(runtimeState.twPatcher.majorVersion, () => ( 0))) >= 4);
365
365
  const rewritePlugins = !shouldRewriteCssImports ? [] : [
366
366
  {
367
- name: `${_chunkPLV4QGF4js.vitePluginName}:rewrite-css-imports`,
367
+ name: `${_chunkAXEKXGG7js.vitePluginName}:rewrite-css-imports`,
368
368
  enforce: "pre",
369
369
  resolveId(id, importer) {
370
- const replacement = _chunkH34KPZQWjs.resolveTailwindcssImport.call(void 0, id, weappTailwindcssDirPosix, { join: joinPosixPath });
370
+ const replacement = _chunkK234IGOTjs.resolveTailwindcssImport.call(void 0, id, weappTailwindcssDirPosix, { join: joinPosixPath });
371
371
  if (!replacement) {
372
372
  return null;
373
373
  }
@@ -380,7 +380,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
380
380
  if (!isCSSRequest(id)) {
381
381
  return null;
382
382
  }
383
- const rewritten = _chunkH34KPZQWjs.rewriteTailwindcssImportsInCode.call(void 0, code, weappTailwindcssDirPosix, { join: joinPosixPath });
383
+ const rewritten = _chunkK234IGOTjs.rewriteTailwindcssImportsInCode.call(void 0, code, weappTailwindcssDirPosix, { join: joinPosixPath });
384
384
  if (!rewritten) {
385
385
  return null;
386
386
  }
@@ -394,7 +394,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
394
394
  const plugins = [
395
395
  ...rewritePlugins,
396
396
  {
397
- name: `${_chunkPLV4QGF4js.vitePluginName}:post`,
397
+ name: `${_chunkAXEKXGG7js.vitePluginName}:post`,
398
398
  enforce: "post",
399
399
  configResolved(config) {
400
400
  resolvedConfig = config;
@@ -420,7 +420,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
420
420
  for (const [fileName, output] of entries) {
421
421
  const entry = { fileName, output };
422
422
  if (isJavaScriptEntry(entry)) {
423
- const absolute = _chunkH34KPZQWjs.toAbsoluteOutputPath.call(void 0, fileName, outDir);
423
+ const absolute = _chunkK234IGOTjs.toAbsoluteOutputPath.call(void 0, fileName, outDir);
424
424
  jsEntries.set(absolute, entry);
425
425
  }
426
426
  }
@@ -484,7 +484,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
484
484
  if (Array.isArray(groupedEntries.js)) {
485
485
  for (const [file, originalSource] of groupedEntries.js) {
486
486
  if (originalSource.type === "chunk") {
487
- const absoluteFile = _chunkH34KPZQWjs.toAbsoluteOutputPath.call(void 0, file, outDir);
487
+ const absoluteFile = _chunkK234IGOTjs.toAbsoluteOutputPath.call(void 0, file, outDir);
488
488
  const initialRawSource = originalSource.code;
489
489
  jsTaskFactories.push(async () => {
490
490
  await _chunkLTJQUORKjs.processCachedTask.call(void 0, {
@@ -510,7 +510,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
510
510
  });
511
511
  });
512
512
  } else if (uniAppX && originalSource.type === "asset") {
513
- const absoluteFile = _chunkH34KPZQWjs.toAbsoluteOutputPath.call(void 0, file, outDir);
513
+ const absoluteFile = _chunkK234IGOTjs.toAbsoluteOutputPath.call(void 0, file, outDir);
514
514
  const rawSource = originalSource.source.toString();
515
515
  jsTaskFactories.push(async () => {
516
516
  await _chunkLTJQUORKjs.processCachedTask.call(void 0, {
@@ -581,7 +581,7 @@ function UnifiedViteWeappTailwindcssPlugin(options = {}) {
581
581
  );
582
582
  }
583
583
  }
584
- _chunkH34KPZQWjs.pushConcurrentTaskFactories.call(void 0, tasks, jsTaskFactories);
584
+ _chunkK234IGOTjs.pushConcurrentTaskFactories.call(void 0, tasks, jsTaskFactories);
585
585
  await Promise.all(tasks);
586
586
  for (const apply of pendingLinkedUpdates) {
587
587
  apply();
@@ -1,13 +1,13 @@
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 _chunkUCA2DMVNjs = require('./chunk-UCA2DMVN.js');
4
+ var _chunk47NJZTIWjs = require('./chunk-47NJZTIW.js');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkH34KPZQWjs = require('./chunk-H34KPZQW.js');
10
+ var _chunkK234IGOTjs = require('./chunk-K234IGOT.js');
11
11
 
12
12
 
13
13
  var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
@@ -18,7 +18,7 @@ var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkPLV4QGF4js = require('./chunk-PLV4QGF4.js');
21
+ var _chunkAXEKXGG7js = require('./chunk-AXEKXGG7.js');
22
22
 
23
23
 
24
24
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
@@ -27,11 +27,11 @@ var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
27
27
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
28
28
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
29
29
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
30
- var debug = _chunkPLV4QGF4js.createDebug.call(void 0, );
31
- var weappTailwindcssPackageDir = _chunkH34KPZQWjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
30
+ var debug = _chunkAXEKXGG7js.createDebug.call(void 0, );
31
+ var weappTailwindcssPackageDir = _chunkK234IGOTjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
32
32
  var UnifiedWebpackPluginV5 = class {
33
33
  constructor(options = {}) {
34
- this.options = _chunkPLV4QGF4js.getCompilerContext.call(void 0, options);
34
+ this.options = _chunkAXEKXGG7js.getCompilerContext.call(void 0, options);
35
35
  this.userSpecifiedRewriteCssImports = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
36
36
  this.appType = this.options.appType;
37
37
  }
@@ -56,25 +56,25 @@ var UnifiedWebpackPluginV5 = class {
56
56
  }
57
57
  const shouldRewriteCssImports = this.options.rewriteCssImports !== false && (this.userSpecifiedRewriteCssImports || (_nullishCoalesce(initialTwPatcher.majorVersion, () => ( 0))) >= 4);
58
58
  if (shouldRewriteCssImports) {
59
- _chunkUCA2DMVNjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
59
+ _chunk47NJZTIWjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
60
60
  pkgDir: weappTailwindcssPackageDir,
61
61
  enabled: true
62
62
  });
63
63
  }
64
64
  const runtimeState = {
65
65
  twPatcher: initialTwPatcher,
66
- patchPromise: _chunkPLV4QGF4js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
66
+ patchPromise: _chunkAXEKXGG7js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
67
67
  refreshTailwindcssPatcher
68
68
  };
69
69
  const refreshRuntimeState = async (force) => {
70
- await _chunkPLV4QGF4js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
70
+ await _chunkAXEKXGG7js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
71
71
  };
72
72
  const { Compilation, sources, NormalModule } = compiler.webpack;
73
73
  const { ConcatSource } = sources;
74
74
  async function getClassSetInLoader() {
75
75
  await refreshRuntimeState(true);
76
76
  await runtimeState.patchPromise;
77
- await _chunkPLV4QGF4js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
77
+ await _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
78
78
  }
79
79
  onLoad();
80
80
  const loader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-loader.js")));
@@ -92,8 +92,8 @@ var UnifiedWebpackPluginV5 = class {
92
92
  ident: null,
93
93
  type: null
94
94
  });
95
- compiler.hooks.compilation.tap(_chunkPLV4QGF4js.pluginName, (compilation) => {
96
- NormalModule.getCompilationHooks(compilation).loader.tap(_chunkPLV4QGF4js.pluginName, (_loaderContext, module) => {
95
+ compiler.hooks.compilation.tap(_chunkAXEKXGG7js.pluginName, (compilation) => {
96
+ NormalModule.getCompilationHooks(compilation).loader.tap(_chunkAXEKXGG7js.pluginName, (_loaderContext, module) => {
97
97
  if (isExisted) {
98
98
  const idx = module.loaders.findIndex((x) => x.loader.includes("postcss-loader"));
99
99
  const runtimeLoaderEntry = createRuntimeLoaderEntry();
@@ -106,7 +106,7 @@ var UnifiedWebpackPluginV5 = class {
106
106
  });
107
107
  compilation.hooks.processAssets.tapPromise(
108
108
  {
109
- name: _chunkPLV4QGF4js.pluginName,
109
+ name: _chunkAXEKXGG7js.pluginName,
110
110
  stage: Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE
111
111
  },
112
112
  async (assets) => {
@@ -124,13 +124,13 @@ var UnifiedWebpackPluginV5 = class {
124
124
  const jsAssets = /* @__PURE__ */ new Map();
125
125
  for (const [file] of entries) {
126
126
  if (this.options.jsMatcher(file) || this.options.wxsMatcher(file)) {
127
- const absolute = _chunkH34KPZQWjs.toAbsoluteOutputPath.call(void 0, file, outputDir);
127
+ const absolute = _chunkK234IGOTjs.toAbsoluteOutputPath.call(void 0, file, outputDir);
128
128
  jsAssets.set(absolute, file);
129
129
  }
130
130
  }
131
131
  const moduleGraphOptions = {
132
132
  resolve(specifier, importer) {
133
- return _chunkH34KPZQWjs.resolveOutputSpecifier.call(void 0, specifier, importer, outputDir, (candidate) => jsAssets.has(candidate));
133
+ return _chunkK234IGOTjs.resolveOutputSpecifier.call(void 0, specifier, importer, outputDir, (candidate) => jsAssets.has(candidate));
134
134
  },
135
135
  load: (id) => {
136
136
  const assetName = jsAssets.get(id);
@@ -175,7 +175,7 @@ var UnifiedWebpackPluginV5 = class {
175
175
  const groupedEntries = _chunkUW3WHSZ5js.getGroupedEntries.call(void 0, entries, this.options);
176
176
  await refreshRuntimeState(true);
177
177
  await runtimeState.patchPromise;
178
- const runtimeSet = await _chunkPLV4QGF4js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
178
+ const runtimeSet = await _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
179
179
  debug("get runtimeSet, class count: %d", runtimeSet.size);
180
180
  const tasks = [];
181
181
  if (Array.isArray(groupedEntries.html)) {
@@ -212,12 +212,12 @@ var UnifiedWebpackPluginV5 = class {
212
212
  const jsTaskFactories = [];
213
213
  if (Array.isArray(groupedEntries.js)) {
214
214
  for (const [file] of groupedEntries.js) {
215
- const cacheKey = _chunkUCA2DMVNjs.getCacheKey.call(void 0, file);
215
+ const cacheKey = _chunk47NJZTIWjs.getCacheKey.call(void 0, file);
216
216
  const asset = compilation.getAsset(file);
217
217
  if (!asset) {
218
218
  continue;
219
219
  }
220
- const absoluteFile = _chunkH34KPZQWjs.toAbsoluteOutputPath.call(void 0, file, outputDir);
220
+ const absoluteFile = _chunkK234IGOTjs.toAbsoluteOutputPath.call(void 0, file, outputDir);
221
221
  const initialSource = asset.source.source();
222
222
  const initialRawSource = typeof initialSource === "string" ? initialSource : initialSource.toString();
223
223
  jsTaskFactories.push(async () => {
@@ -292,7 +292,7 @@ var UnifiedWebpackPluginV5 = class {
292
292
  );
293
293
  }
294
294
  }
295
- _chunkH34KPZQWjs.pushConcurrentTaskFactories.call(void 0, tasks, jsTaskFactories);
295
+ _chunkK234IGOTjs.pushConcurrentTaskFactories.call(void 0, tasks, jsTaskFactories);
296
296
  await Promise.all(tasks);
297
297
  debug("end");
298
298
  onEnd();
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunk2ZEOKKVAjs = require('./chunk-2ZEOKKVA.js');
3
+ var _chunkZXU4EYKVjs = require('./chunk-ZXU4EYKV.js');
4
4
 
5
5
 
6
6
  var _chunkZSTF2AENjs = require('./chunk-ZSTF2AEN.js');
@@ -2524,7 +2524,7 @@ function createInternalCompilerContext(opts) {
2524
2524
  );
2525
2525
  ctx.escapeMap = ctx.customReplaceDictionary;
2526
2526
  applyLoggerLevel(ctx.logLevel);
2527
- const twPatcher = _chunk2ZEOKKVAjs.createTailwindcssPatcherFromContext.call(void 0, ctx);
2527
+ const twPatcher = _chunkZXU4EYKVjs.createTailwindcssPatcherFromContext.call(void 0, ctx);
2528
2528
  logTailwindcssTarget("runtime", twPatcher, ctx.tailwindcssBasedir);
2529
2529
  if (_optionalChain([twPatcher, 'access', _84 => _84.packageInfo, 'optionalAccess', _85 => _85.version])) {
2530
2530
  _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)))}`);
@@ -2554,7 +2554,7 @@ function createInternalCompilerContext(opts) {
2554
2554
  await clearTailwindcssPatcherCache(previousPatcher);
2555
2555
  }
2556
2556
  invalidateRuntimeClassSet(previousPatcher);
2557
- const nextPatcher = _chunk2ZEOKKVAjs.createTailwindcssPatcherFromContext.call(void 0, ctx);
2557
+ const nextPatcher = _chunkZXU4EYKVjs.createTailwindcssPatcherFromContext.call(void 0, ctx);
2558
2558
  Object.assign(previousPatcher, nextPatcher);
2559
2559
  ctx.twPatcher = previousPatcher;
2560
2560
  return previousPatcher;
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-ZNKIYZRQ.mjs";
25
25
  import {
26
26
  __dirname
27
- } from "./chunk-QGH4JZRW.mjs";
27
+ } from "./chunk-JMYADIPN.mjs";
28
28
 
29
29
  // src/bundlers/webpack/BaseUnifiedPlugin/v5.ts
30
30
  import fs from "fs";
@@ -0,0 +1,10 @@
1
+ // ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.53.1_@types+node@24.10.1__@swc+core@1.15.3_@swc+h_9054a2496b61d5cb5fe8cf4fe2f0b0d1/node_modules/tsup/assets/esm_shims.js
2
+ import path from "path";
3
+ import { fileURLToPath } from "url";
4
+ var getFilename = () => fileURLToPath(import.meta.url);
5
+ var getDirname = () => path.dirname(getFilename());
6
+ var __dirname = /* @__PURE__ */ getDirname();
7
+
8
+ export {
9
+ __dirname
10
+ };
@@ -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 _chunkUJIUFWXEjs = require('./chunk-UJIUFWXE.js');
3
+ var _chunkWGLBMNPGjs = require('./chunk-WGLBMNPG.js');
4
4
 
5
5
  // src/utils/resolve-package.ts
6
6
  var _module = require('module');
7
7
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
8
- var require2 = _module.createRequire.call(void 0, _chunkUJIUFWXEjs.importMetaUrl);
8
+ var require2 = _module.createRequire.call(void 0, _chunkWGLBMNPGjs.importMetaUrl);
9
9
  function resolvePackageDir(name) {
10
10
  const pkgPath = require2.resolve(`${name}/package.json`);
11
11
  return _path2.default.dirname(pkgPath);
@@ -7,7 +7,7 @@ var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkPLV4QGF4js = require('./chunk-PLV4QGF4.js');
10
+ var _chunkAXEKXGG7js = require('./chunk-AXEKXGG7.js');
11
11
 
12
12
  // src/bundlers/gulp/index.ts
13
13
  var _buffer = require('buffer');
@@ -15,21 +15,21 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
15
15
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
16
16
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
17
17
  var _stream = require('stream'); var _stream2 = _interopRequireDefault(_stream);
18
- var debug = _chunkPLV4QGF4js.createDebug.call(void 0, );
18
+ var debug = _chunkAXEKXGG7js.createDebug.call(void 0, );
19
19
  var Transform = _stream2.default.Transform;
20
20
  function createPlugins(options = {}) {
21
- const opts = _chunkPLV4QGF4js.getCompilerContext.call(void 0, options);
21
+ const opts = _chunkAXEKXGG7js.getCompilerContext.call(void 0, options);
22
22
  const { templateHandler, styleHandler, jsHandler, cache, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
23
23
  let runtimeSet = /* @__PURE__ */ new Set();
24
24
  const runtimeState = {
25
25
  twPatcher: initialTwPatcher,
26
- patchPromise: _chunkPLV4QGF4js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
26
+ patchPromise: _chunkAXEKXGG7js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
27
27
  refreshTailwindcssPatcher
28
28
  };
29
29
  const MODULE_EXTENSIONS = [".js", ".mjs", ".cjs", ".ts", ".tsx", ".jsx"];
30
30
  let runtimeSetInitialized = false;
31
31
  async function refreshRuntimeState(force) {
32
- await _chunkPLV4QGF4js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
32
+ await _chunkAXEKXGG7js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
33
33
  }
34
34
  async function refreshRuntimeSet(force = false) {
35
35
  await refreshRuntimeState(force);
@@ -37,7 +37,7 @@ function createPlugins(options = {}) {
37
37
  if (!force && runtimeSetInitialized && runtimeSet.size > 0) {
38
38
  return runtimeSet;
39
39
  }
40
- runtimeSet = await _chunkPLV4QGF4js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force, skipRefresh: force });
40
+ runtimeSet = await _chunkAXEKXGG7js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force, skipRefresh: force });
41
41
  runtimeSetInitialized = true;
42
42
  return runtimeSet;
43
43
  }
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.53.1_@types+node@24.10.1__@swc+core@1.15.3_@swc+h_9054a2496b61d5cb5fe8cf4fe2f0b0d1/node_modules/tsup/assets/cjs_shims.js
2
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
3
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
4
+
5
+
6
+
7
+ exports.importMetaUrl = importMetaUrl;
@@ -3,7 +3,7 @@
3
3
  var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
4
4
 
5
5
 
6
- var _chunkUJIUFWXEjs = require('./chunk-UJIUFWXE.js');
6
+ var _chunkWGLBMNPGjs = require('./chunk-WGLBMNPG.js');
7
7
 
8
8
  // src/context/tailwindcss.ts
9
9
  var _fs = require('fs');
@@ -114,7 +114,7 @@ function resolveModuleFromPaths(specifier, paths) {
114
114
  return void 0;
115
115
  }
116
116
  try {
117
- const req = _module.createRequire.call(void 0, _chunkUJIUFWXEjs.importMetaUrl);
117
+ const req = _module.createRequire.call(void 0, _chunkWGLBMNPGjs.importMetaUrl);
118
118
  return req.resolve(specifier, { paths });
119
119
  } catch (e3) {
120
120
  return void 0;
@@ -231,11 +231,11 @@ function createDefaultResolvePaths(basedir) {
231
231
  const cwd = _process2.default.cwd();
232
232
  appendNodeModules(paths, cwd);
233
233
  try {
234
- const modulePath = _url.fileURLToPath.call(void 0, _chunkUJIUFWXEjs.importMetaUrl);
234
+ const modulePath = _url.fileURLToPath.call(void 0, _chunkWGLBMNPGjs.importMetaUrl);
235
235
  const candidate = _fs.existsSync.call(void 0, modulePath) && !_path2.default.extname(modulePath) ? modulePath : _path2.default.dirname(modulePath);
236
236
  paths.add(candidate);
237
237
  } catch (e4) {
238
- paths.add(_chunkUJIUFWXEjs.importMetaUrl);
238
+ paths.add(_chunkWGLBMNPGjs.importMetaUrl);
239
239
  }
240
240
  if (paths.size === 0) {
241
241
  fallbackCandidates = fallbackCandidates.filter(Boolean);