@weapp-tailwindcss/postcss 3.1.0 → 3.1.1
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.
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ node_path = require_html_transform.__toESM(node_path);
|
|
|
12
12
|
let node_process = require("node:process");
|
|
13
13
|
node_process = require_html_transform.__toESM(node_process);
|
|
14
14
|
let node_fs_promises = require("node:fs/promises");
|
|
15
|
+
let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
|
|
15
16
|
let tailwindcss_config = require("tailwindcss-config");
|
|
16
|
-
let tailwindcss_patch = require("tailwindcss-patch");
|
|
17
17
|
let node_fs = require("node:fs");
|
|
18
18
|
let micromatch = require("micromatch");
|
|
19
19
|
micromatch = require_html_transform.__toESM(micromatch);
|
|
@@ -9036,7 +9036,7 @@ async function expandTailwindSourceEntries(entries, options = {}) {
|
|
|
9036
9036
|
pattern: normalizeGlobPattern(pattern),
|
|
9037
9037
|
negated: true
|
|
9038
9038
|
}));
|
|
9039
|
-
const matched = await (0,
|
|
9039
|
+
const matched = await (0, _tailwindcss_mangle_engine.resolveProjectSourceFiles)({
|
|
9040
9040
|
cwd: base,
|
|
9041
9041
|
sources: group,
|
|
9042
9042
|
...ignoredSources === void 0 ? {} : { ignoredSources }
|
|
@@ -9095,7 +9095,7 @@ async function collectAutoTailwindCandidates(root, result, options) {
|
|
|
9095
9095
|
pattern: POSTCSS_SOURCE_PATTERN
|
|
9096
9096
|
});
|
|
9097
9097
|
sourceEntries.push(...await resolveCssSourceEntries(root, base, POSTCSS_SOURCE_PATTERN));
|
|
9098
|
-
const candidates = sourceEntries.length === 0 ? [] : await (0,
|
|
9098
|
+
const candidates = sourceEntries.length === 0 ? [] : await (0, _tailwindcss_mangle_engine.extractValidCandidates)({
|
|
9099
9099
|
base,
|
|
9100
9100
|
css: root.toString(),
|
|
9101
9101
|
cwd: projectRoot,
|
package/dist/index.mjs
CHANGED
|
@@ -7,8 +7,8 @@ import valueParser from "postcss-value-parser";
|
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
9
|
import { readFile, stat } from "node:fs/promises";
|
|
10
|
+
import { extractValidCandidates, resolveProjectSourceFiles } from "@tailwindcss-mangle/engine";
|
|
10
11
|
import { loadConfig } from "tailwindcss-config";
|
|
11
|
-
import { extractValidCandidates, resolveProjectSourceFiles } from "tailwindcss-patch";
|
|
12
12
|
import { realpathSync } from "node:fs";
|
|
13
13
|
import micromatch from "micromatch";
|
|
14
14
|
import { defu, defuOverrideArray, regExpTest } from "@weapp-tailwindcss/shared";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/postcss",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "@weapp-tailwindcss/postcss",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,8 +64,9 @@
|
|
|
64
64
|
"node": "^20.19.0 || >=22.12.0"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
+
"@tailwindcss-mangle/engine": "0.1.1",
|
|
67
68
|
"@weapp-core/escape": "~8.0.0",
|
|
68
|
-
"autoprefixer": "^10.5.
|
|
69
|
+
"autoprefixer": "^10.5.1",
|
|
69
70
|
"lru-cache": "11.5.1",
|
|
70
71
|
"micromatch": "^4.0.8",
|
|
71
72
|
"postcss": "^8.5.15",
|
|
@@ -75,10 +76,9 @@
|
|
|
75
76
|
"postcss-rule-unit-converter": "^0.2.2",
|
|
76
77
|
"postcss-selector-parser": "~7.1.4",
|
|
77
78
|
"postcss-value-parser": "^4.2.0",
|
|
78
|
-
"tailwindcss-patch": "9.5.0",
|
|
79
79
|
"@weapp-tailwindcss/postcss-calc": "^1.0.2",
|
|
80
|
-
"tailwindcss
|
|
81
|
-
"
|
|
80
|
+
"@weapp-tailwindcss/shared": "2.0.0",
|
|
81
|
+
"tailwindcss-config": "2.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@csstools/css-color-parser": "^4.1.8",
|