tailwindcss-patch 8.4.1 → 8.4.3

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.
@@ -1,4 +1,4 @@
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; } var _class;// ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
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; } var _class;// ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/cjs_shims.js
2
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
3
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
4
4
 
@@ -8,6 +8,7 @@ var logger = _consola.createConsola.call(void 0, );
8
8
  var logger_default = logger;
9
9
 
10
10
  // src/cache/store.ts
11
+ var _process = require('process'); var _process2 = _interopRequireDefault(_process);
11
12
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
12
13
  function isErrnoException(error) {
13
14
  return error instanceof Error && typeof error.code === "string";
@@ -22,15 +23,70 @@ var CacheStore = class {
22
23
  ensureDirSync() {
23
24
  _fsextra2.default.ensureDirSync(this.options.dir);
24
25
  }
26
+ createTempPath() {
27
+ const uniqueSuffix = `${_process2.default.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
28
+ return `${this.options.path}.${uniqueSuffix}.tmp`;
29
+ }
30
+ async replaceCacheFile(tempPath) {
31
+ try {
32
+ await _fsextra2.default.rename(tempPath, this.options.path);
33
+ } catch (error) {
34
+ if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
35
+ try {
36
+ await _fsextra2.default.remove(this.options.path);
37
+ } catch (removeError) {
38
+ if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
39
+ throw removeError;
40
+ }
41
+ }
42
+ await _fsextra2.default.rename(tempPath, this.options.path);
43
+ return;
44
+ }
45
+ throw error;
46
+ }
47
+ }
48
+ replaceCacheFileSync(tempPath) {
49
+ try {
50
+ _fsextra2.default.renameSync(tempPath, this.options.path);
51
+ } catch (error) {
52
+ if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
53
+ try {
54
+ _fsextra2.default.removeSync(this.options.path);
55
+ } catch (removeError) {
56
+ if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
57
+ throw removeError;
58
+ }
59
+ }
60
+ _fsextra2.default.renameSync(tempPath, this.options.path);
61
+ return;
62
+ }
63
+ throw error;
64
+ }
65
+ }
66
+ async cleanupTempFile(tempPath) {
67
+ try {
68
+ await _fsextra2.default.remove(tempPath);
69
+ } catch (e2) {
70
+ }
71
+ }
72
+ cleanupTempFileSync(tempPath) {
73
+ try {
74
+ _fsextra2.default.removeSync(tempPath);
75
+ } catch (e3) {
76
+ }
77
+ }
25
78
  async write(data) {
26
79
  if (!this.options.enabled) {
27
80
  return void 0;
28
81
  }
82
+ const tempPath = this.createTempPath();
29
83
  try {
30
84
  await this.ensureDir();
31
- await _fsextra2.default.writeJSON(this.options.path, Array.from(data));
85
+ await _fsextra2.default.writeJSON(tempPath, Array.from(data));
86
+ await this.replaceCacheFile(tempPath);
32
87
  return this.options.path;
33
88
  } catch (error) {
89
+ await this.cleanupTempFile(tempPath);
34
90
  logger_default.error("Unable to persist Tailwind class cache", error);
35
91
  return void 0;
36
92
  }
@@ -39,11 +95,14 @@ var CacheStore = class {
39
95
  if (!this.options.enabled) {
40
96
  return void 0;
41
97
  }
98
+ const tempPath = this.createTempPath();
42
99
  try {
43
100
  this.ensureDirSync();
44
- _fsextra2.default.writeJSONSync(this.options.path, Array.from(data));
101
+ _fsextra2.default.writeJSONSync(tempPath, Array.from(data));
102
+ this.replaceCacheFileSync(tempPath);
45
103
  return this.options.path;
46
104
  } catch (error) {
105
+ this.cleanupTempFileSync(tempPath);
47
106
  logger_default.error("Unable to persist Tailwind class cache", error);
48
107
  return void 0;
49
108
  }
@@ -104,7 +163,7 @@ var CacheStore = class {
104
163
 
105
164
  // src/extraction/candidate-extractor.ts
106
165
  var _fs = require('fs');
107
- var _process = require('process'); var _process2 = _interopRequireDefault(_process);
166
+
108
167
  var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);
109
168
  async function importNode() {
110
169
  return Promise.resolve().then(() => _interopRequireWildcard(require("@tailwindcss/node")));
@@ -1464,13 +1523,6 @@ var TailwindcssPatcher = (_class = class {
1464
1523
  const contexts = this.getContexts();
1465
1524
  return collectClassesFromContexts(contexts, this.options.filter);
1466
1525
  }
1467
- collectClassSetSync() {
1468
- if (this.majorVersion === 4) {
1469
- throw new Error("getClassSetSync is not supported for Tailwind CSS v4 projects. Use getClassSet instead.");
1470
- }
1471
- const contexts = this.getContexts();
1472
- return collectClassesFromContexts(contexts, this.options.filter);
1473
- }
1474
1526
  async mergeWithCache(set) {
1475
1527
  if (!this.options.cache.enabled) {
1476
1528
  return set;
@@ -1515,8 +1567,16 @@ var TailwindcssPatcher = (_class = class {
1515
1567
  return this.mergeWithCache(set);
1516
1568
  }
1517
1569
  getClassSetSync() {
1518
- const set = this.collectClassSetSync();
1519
- return this.mergeWithCacheSync(set);
1570
+ if (this.majorVersion === 4) {
1571
+ throw new Error("getClassSetSync is not supported for Tailwind CSS v4 projects. Use getClassSet instead.");
1572
+ }
1573
+ const contexts = this.getContexts();
1574
+ const set = collectClassesFromContexts(contexts, this.options.filter);
1575
+ const merged = this.mergeWithCacheSync(set);
1576
+ if (contexts.length === 0 && merged.size === 0) {
1577
+ return void 0;
1578
+ }
1579
+ return merged;
1520
1580
  }
1521
1581
  async extract(options) {
1522
1582
  const shouldWrite = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _68 => _68.write]), () => ( this.options.output.enabled));
@@ -4,6 +4,7 @@ var logger = createConsola();
4
4
  var logger_default = logger;
5
5
 
6
6
  // src/cache/store.ts
7
+ import process from "process";
7
8
  import fs from "fs-extra";
8
9
  function isErrnoException(error) {
9
10
  return error instanceof Error && typeof error.code === "string";
@@ -18,15 +19,70 @@ var CacheStore = class {
18
19
  ensureDirSync() {
19
20
  fs.ensureDirSync(this.options.dir);
20
21
  }
22
+ createTempPath() {
23
+ const uniqueSuffix = `${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
24
+ return `${this.options.path}.${uniqueSuffix}.tmp`;
25
+ }
26
+ async replaceCacheFile(tempPath) {
27
+ try {
28
+ await fs.rename(tempPath, this.options.path);
29
+ } catch (error) {
30
+ if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
31
+ try {
32
+ await fs.remove(this.options.path);
33
+ } catch (removeError) {
34
+ if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
35
+ throw removeError;
36
+ }
37
+ }
38
+ await fs.rename(tempPath, this.options.path);
39
+ return;
40
+ }
41
+ throw error;
42
+ }
43
+ }
44
+ replaceCacheFileSync(tempPath) {
45
+ try {
46
+ fs.renameSync(tempPath, this.options.path);
47
+ } catch (error) {
48
+ if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
49
+ try {
50
+ fs.removeSync(this.options.path);
51
+ } catch (removeError) {
52
+ if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
53
+ throw removeError;
54
+ }
55
+ }
56
+ fs.renameSync(tempPath, this.options.path);
57
+ return;
58
+ }
59
+ throw error;
60
+ }
61
+ }
62
+ async cleanupTempFile(tempPath) {
63
+ try {
64
+ await fs.remove(tempPath);
65
+ } catch {
66
+ }
67
+ }
68
+ cleanupTempFileSync(tempPath) {
69
+ try {
70
+ fs.removeSync(tempPath);
71
+ } catch {
72
+ }
73
+ }
21
74
  async write(data) {
22
75
  if (!this.options.enabled) {
23
76
  return void 0;
24
77
  }
78
+ const tempPath = this.createTempPath();
25
79
  try {
26
80
  await this.ensureDir();
27
- await fs.writeJSON(this.options.path, Array.from(data));
81
+ await fs.writeJSON(tempPath, Array.from(data));
82
+ await this.replaceCacheFile(tempPath);
28
83
  return this.options.path;
29
84
  } catch (error) {
85
+ await this.cleanupTempFile(tempPath);
30
86
  logger_default.error("Unable to persist Tailwind class cache", error);
31
87
  return void 0;
32
88
  }
@@ -35,11 +91,14 @@ var CacheStore = class {
35
91
  if (!this.options.enabled) {
36
92
  return void 0;
37
93
  }
94
+ const tempPath = this.createTempPath();
38
95
  try {
39
96
  this.ensureDirSync();
40
- fs.writeJSONSync(this.options.path, Array.from(data));
97
+ fs.writeJSONSync(tempPath, Array.from(data));
98
+ this.replaceCacheFileSync(tempPath);
41
99
  return this.options.path;
42
100
  } catch (error) {
101
+ this.cleanupTempFileSync(tempPath);
43
102
  logger_default.error("Unable to persist Tailwind class cache", error);
44
103
  return void 0;
45
104
  }
@@ -100,7 +159,7 @@ var CacheStore = class {
100
159
 
101
160
  // src/extraction/candidate-extractor.ts
102
161
  import { promises as fs2 } from "fs";
103
- import process from "process";
162
+ import process2 from "process";
104
163
  import path from "pathe";
105
164
  async function importNode() {
106
165
  return import("@tailwindcss/node");
@@ -127,7 +186,7 @@ async function extractRawCandidates(sources) {
127
186
  }
128
187
  async function extractValidCandidates(options) {
129
188
  const providedOptions = options ?? {};
130
- const defaultCwd = providedOptions.cwd ?? process.cwd();
189
+ const defaultCwd = providedOptions.cwd ?? process2.cwd();
131
190
  const base = providedOptions.base ?? defaultCwd;
132
191
  const css = providedOptions.css ?? '@import "tailwindcss";';
133
192
  const sources = (providedOptions.sources ?? [
@@ -223,7 +282,7 @@ function toRelativeFile(cwd, filename) {
223
282
  return relative === "" ? path.basename(filename) : relative;
224
283
  }
225
284
  async function extractProjectCandidatesWithPositions(options) {
226
- const cwd = options?.cwd ? path.resolve(options.cwd) : process.cwd();
285
+ const cwd = options?.cwd ? path.resolve(options.cwd) : process2.cwd();
227
286
  const normalizedSources = normalizeSources(options?.sources, cwd);
228
287
  const { Scanner } = await importOxide();
229
288
  const scanner = new Scanner({
@@ -295,7 +354,7 @@ function groupTokensByFile(report, options) {
295
354
  }
296
355
 
297
356
  // src/options/normalize.ts
298
- import process2 from "process";
357
+ import process3 from "process";
299
358
  import path2 from "pathe";
300
359
 
301
360
  // src/constants.ts
@@ -431,7 +490,7 @@ function normalizeTailwindOptions(tailwind, projectRoot) {
431
490
  };
432
491
  }
433
492
  function normalizeOptions(options = {}) {
434
- const projectRoot = options.cwd ? path2.resolve(options.cwd) : process2.cwd();
493
+ const projectRoot = options.cwd ? path2.resolve(options.cwd) : process3.cwd();
435
494
  const overwrite = options.overwrite ?? true;
436
495
  const output = normalizeOutputOptions(options.output);
437
496
  const cache = normalizeCacheOptions(options.cache, projectRoot);
@@ -462,7 +521,7 @@ function normalizeOptions(options = {}) {
462
521
  }
463
522
 
464
523
  // src/runtime/class-collector.ts
465
- import process3 from "process";
524
+ import process4 from "process";
466
525
  import fs3 from "fs-extra";
467
526
  import path3 from "pathe";
468
527
 
@@ -520,7 +579,7 @@ async function collectClassesFromTailwindV4(options) {
520
579
  return path3.isAbsolute(value) ? value : path3.resolve(options.projectRoot, value);
521
580
  };
522
581
  const resolvedConfiguredBase = toAbsolute(v4Options.configuredBase);
523
- const resolvedDefaultBase = toAbsolute(v4Options.base) ?? process3.cwd();
582
+ const resolvedDefaultBase = toAbsolute(v4Options.base) ?? process4.cwd();
524
583
  const resolveSources = (base) => {
525
584
  if (!v4Options.sources?.length) {
526
585
  return void 0;
@@ -658,7 +717,7 @@ async function runTailwindBuild(options) {
658
717
  }
659
718
 
660
719
  // src/api/tailwindcss-patcher.ts
661
- import process4 from "process";
720
+ import process5 from "process";
662
721
  import fs7 from "fs-extra";
663
722
  import { getPackageInfoSync } from "local-pkg";
664
723
  import path8 from "pathe";
@@ -1460,13 +1519,6 @@ var TailwindcssPatcher = class {
1460
1519
  const contexts = this.getContexts();
1461
1520
  return collectClassesFromContexts(contexts, this.options.filter);
1462
1521
  }
1463
- collectClassSetSync() {
1464
- if (this.majorVersion === 4) {
1465
- throw new Error("getClassSetSync is not supported for Tailwind CSS v4 projects. Use getClassSet instead.");
1466
- }
1467
- const contexts = this.getContexts();
1468
- return collectClassesFromContexts(contexts, this.options.filter);
1469
- }
1470
1522
  async mergeWithCache(set) {
1471
1523
  if (!this.options.cache.enabled) {
1472
1524
  return set;
@@ -1511,8 +1563,16 @@ var TailwindcssPatcher = class {
1511
1563
  return this.mergeWithCache(set);
1512
1564
  }
1513
1565
  getClassSetSync() {
1514
- const set = this.collectClassSetSync();
1515
- return this.mergeWithCacheSync(set);
1566
+ if (this.majorVersion === 4) {
1567
+ throw new Error("getClassSetSync is not supported for Tailwind CSS v4 projects. Use getClassSet instead.");
1568
+ }
1569
+ const contexts = this.getContexts();
1570
+ const set = collectClassesFromContexts(contexts, this.options.filter);
1571
+ const merged = this.mergeWithCacheSync(set);
1572
+ if (contexts.length === 0 && merged.size === 0) {
1573
+ return void 0;
1574
+ }
1575
+ return merged;
1516
1576
  }
1517
1577
  async extract(options) {
1518
1578
  const shouldWrite = options?.write ?? this.options.output.enabled;
@@ -1534,7 +1594,7 @@ var TailwindcssPatcher = class {
1534
1594
  await fs7.writeFile(target, `${classList.join("\n")}
1535
1595
  `, "utf8");
1536
1596
  }
1537
- logger_default.success(`Tailwind CSS class list saved to ${target.replace(process4.cwd(), ".")}`);
1597
+ logger_default.success(`Tailwind CSS class list saved to ${target.replace(process5.cwd(), ".")}`);
1538
1598
  return {
1539
1599
  ...result,
1540
1600
  filename: target
@@ -1561,7 +1621,7 @@ var TailwindcssPatcher = class {
1561
1621
  };
1562
1622
 
1563
1623
  // src/cli/commands.ts
1564
- import process5 from "process";
1624
+ import process6 from "process";
1565
1625
  import { CONFIG_NAME, getConfig, initConfig } from "@tailwindcss-mangle/config";
1566
1626
 
1567
1627
  // ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
@@ -1682,7 +1742,7 @@ function formatGroupedPreview(map, limit = 3) {
1682
1742
  }
1683
1743
  function resolveCwd(rawCwd) {
1684
1744
  if (!rawCwd) {
1685
- return process5.cwd();
1745
+ return process6.cwd();
1686
1746
  }
1687
1747
  return path9.resolve(rawCwd);
1688
1748
  }
@@ -1746,7 +1806,7 @@ function createCwdOptionDefinition(description = "Working directory") {
1746
1806
  return {
1747
1807
  flags: "--cwd <dir>",
1748
1808
  description,
1749
- config: { default: process5.cwd() }
1809
+ config: { default: process6.cwd() }
1750
1810
  };
1751
1811
  }
1752
1812
  function buildDefaultCommandDefinitions() {
@@ -1900,7 +1960,7 @@ async function tokensCommandDefaultHandler(ctx) {
1900
1960
  await fs8.writeFile(target, `${lines.join("\n")}
1901
1961
  `, "utf8");
1902
1962
  }
1903
- logger_default.success(`Collected ${report.entries.length} tokens (${format}) \u2192 ${target.replace(process5.cwd(), ".")}`);
1963
+ logger_default.success(`Collected ${report.entries.length} tokens (${format}) \u2192 ${target.replace(process6.cwd(), ".")}`);
1904
1964
  } else {
1905
1965
  logger_default.success(`Collected ${report.entries.length} tokens from ${report.filesScanned} files.`);
1906
1966
  if (format === "lines") {
package/dist/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _chunkFKEOVCUSjs = require('./chunk-FKEOVCUS.js');
3
+ var _chunkFLS2Y3CSjs = require('./chunk-FLS2Y3CS.js');
4
4
 
5
5
  // src/cli.ts
6
- var cli = _chunkFKEOVCUSjs.createTailwindcssPatchCli.call(void 0, );
6
+ var cli = _chunkFLS2Y3CSjs.createTailwindcssPatchCli.call(void 0, );
7
7
  cli.help();
8
8
  cli.parse();
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createTailwindcssPatchCli
3
- } from "./chunk-C3YPPFE6.mjs";
3
+ } from "./chunk-LV6YDLJ7.mjs";
4
4
 
5
5
  // src/cli.ts
6
6
  var cli = createTailwindcssPatchCli();
package/dist/index.d.mts CHANGED
@@ -391,11 +391,10 @@ declare class TailwindcssPatcher {
391
391
  getContexts(): TailwindcssRuntimeContext[];
392
392
  private runTailwindBuildIfNeeded;
393
393
  private collectClassSet;
394
- private collectClassSetSync;
395
394
  private mergeWithCache;
396
395
  private mergeWithCacheSync;
397
396
  getClassSet(): Promise<Set<string>>;
398
- getClassSetSync(): Set<string>;
397
+ getClassSetSync(): Set<string> | undefined;
399
398
  extract(options?: {
400
399
  write?: boolean;
401
400
  }): Promise<ExtractResult>;
@@ -417,6 +416,11 @@ declare class CacheStore {
417
416
  constructor(options: NormalizedCacheOptions);
418
417
  private ensureDir;
419
418
  private ensureDirSync;
419
+ private createTempPath;
420
+ private replaceCacheFile;
421
+ private replaceCacheFileSync;
422
+ private cleanupTempFile;
423
+ private cleanupTempFileSync;
420
424
  write(data: Set<string>): Promise<string | undefined>;
421
425
  writeSync(data: Set<string>): string | undefined;
422
426
  read(): Promise<Set<string>>;
package/dist/index.d.ts CHANGED
@@ -391,11 +391,10 @@ declare class TailwindcssPatcher {
391
391
  getContexts(): TailwindcssRuntimeContext[];
392
392
  private runTailwindBuildIfNeeded;
393
393
  private collectClassSet;
394
- private collectClassSetSync;
395
394
  private mergeWithCache;
396
395
  private mergeWithCacheSync;
397
396
  getClassSet(): Promise<Set<string>>;
398
- getClassSetSync(): Set<string>;
397
+ getClassSetSync(): Set<string> | undefined;
399
398
  extract(options?: {
400
399
  write?: boolean;
401
400
  }): Promise<ExtractResult>;
@@ -417,6 +416,11 @@ declare class CacheStore {
417
416
  constructor(options: NormalizedCacheOptions);
418
417
  private ensureDir;
419
418
  private ensureDirSync;
419
+ private createTempPath;
420
+ private replaceCacheFile;
421
+ private replaceCacheFileSync;
422
+ private cleanupTempFile;
423
+ private cleanupTempFileSync;
420
424
  write(data: Set<string>): Promise<string | undefined>;
421
425
  writeSync(data: Set<string>): string | undefined;
422
426
  read(): Promise<Set<string>>;
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
 
18
- var _chunkFKEOVCUSjs = require('./chunk-FKEOVCUS.js');
18
+ var _chunkFLS2Y3CSjs = require('./chunk-FLS2Y3CS.js');
19
19
 
20
20
  // src/index.ts
21
21
  var _config = require('@tailwindcss-mangle/config');
@@ -37,4 +37,4 @@ var _config = require('@tailwindcss-mangle/config');
37
37
 
38
38
 
39
39
 
40
- exports.CacheStore = _chunkFKEOVCUSjs.CacheStore; exports.TailwindcssPatcher = _chunkFKEOVCUSjs.TailwindcssPatcher; exports.collectClassesFromContexts = _chunkFKEOVCUSjs.collectClassesFromContexts; exports.collectClassesFromTailwindV4 = _chunkFKEOVCUSjs.collectClassesFromTailwindV4; exports.createTailwindcssPatchCli = _chunkFKEOVCUSjs.createTailwindcssPatchCli; exports.defineConfig = _config.defineConfig; exports.extractProjectCandidatesWithPositions = _chunkFKEOVCUSjs.extractProjectCandidatesWithPositions; exports.extractRawCandidates = _chunkFKEOVCUSjs.extractRawCandidates; exports.extractRawCandidatesWithPositions = _chunkFKEOVCUSjs.extractRawCandidatesWithPositions; exports.extractValidCandidates = _chunkFKEOVCUSjs.extractValidCandidates; exports.groupTokensByFile = _chunkFKEOVCUSjs.groupTokensByFile; exports.loadRuntimeContexts = _chunkFKEOVCUSjs.loadRuntimeContexts; exports.logger = _chunkFKEOVCUSjs.logger_default; exports.mountTailwindcssPatchCommands = _chunkFKEOVCUSjs.mountTailwindcssPatchCommands; exports.normalizeOptions = _chunkFKEOVCUSjs.normalizeOptions; exports.runTailwindBuild = _chunkFKEOVCUSjs.runTailwindBuild; exports.tailwindcssPatchCommands = _chunkFKEOVCUSjs.tailwindcssPatchCommands;
40
+ exports.CacheStore = _chunkFLS2Y3CSjs.CacheStore; exports.TailwindcssPatcher = _chunkFLS2Y3CSjs.TailwindcssPatcher; exports.collectClassesFromContexts = _chunkFLS2Y3CSjs.collectClassesFromContexts; exports.collectClassesFromTailwindV4 = _chunkFLS2Y3CSjs.collectClassesFromTailwindV4; exports.createTailwindcssPatchCli = _chunkFLS2Y3CSjs.createTailwindcssPatchCli; exports.defineConfig = _config.defineConfig; exports.extractProjectCandidatesWithPositions = _chunkFLS2Y3CSjs.extractProjectCandidatesWithPositions; exports.extractRawCandidates = _chunkFLS2Y3CSjs.extractRawCandidates; exports.extractRawCandidatesWithPositions = _chunkFLS2Y3CSjs.extractRawCandidatesWithPositions; exports.extractValidCandidates = _chunkFLS2Y3CSjs.extractValidCandidates; exports.groupTokensByFile = _chunkFLS2Y3CSjs.groupTokensByFile; exports.loadRuntimeContexts = _chunkFLS2Y3CSjs.loadRuntimeContexts; exports.logger = _chunkFLS2Y3CSjs.logger_default; exports.mountTailwindcssPatchCommands = _chunkFLS2Y3CSjs.mountTailwindcssPatchCommands; exports.normalizeOptions = _chunkFLS2Y3CSjs.normalizeOptions; exports.runTailwindBuild = _chunkFLS2Y3CSjs.runTailwindBuild; exports.tailwindcssPatchCommands = _chunkFLS2Y3CSjs.tailwindcssPatchCommands;
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  normalizeOptions,
16
16
  runTailwindBuild,
17
17
  tailwindcssPatchCommands
18
- } from "./chunk-C3YPPFE6.mjs";
18
+ } from "./chunk-LV6YDLJ7.mjs";
19
19
 
20
20
  // src/index.ts
21
21
  import { defineConfig } from "@tailwindcss-mangle/config";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss-patch",
3
- "version": "8.4.1",
3
+ "version": "8.4.3",
4
4
  "description": "patch tailwindcss for exposing context and extract classes",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "pathe": "^2.0.3",
63
63
  "postcss": "^8.5.6",
64
64
  "semver": "^7.7.3",
65
- "tailwindcss-config": "^1.1.2",
65
+ "tailwindcss-config": "^1.1.3",
66
66
  "@tailwindcss-mangle/config": "6.1.0"
67
67
  },
68
68
  "devDependencies": {