@weapp-tailwindcss/postcss 3.3.4 → 3.3.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.
- package/README.md +10 -0
- package/README.zh-CN.md +6 -0
- package/dist/compat/author-selector.d.ts +2 -0
- package/dist/compat/index.d.ts +57 -0
- package/dist/compat/legacy-css/apply.d.ts +2 -0
- package/dist/compat/legacy-css/dedupe.d.ts +2 -0
- package/dist/compat/legacy-css/index.d.ts +4 -0
- package/dist/compat/legacy-css/selectors.d.ts +7 -0
- package/dist/compat/legacy-css/source-cleanup.d.ts +2 -0
- package/dist/compat/legacy-css/units.d.ts +1 -0
- package/dist/compat/mini-program-css/class-presence.d.ts +3 -0
- package/dist/compat/mini-program-css/content-init.d.ts +3 -0
- package/dist/compat/mini-program-css/empty-blocks.d.ts +3 -0
- package/dist/compat/mini-program-css/index.d.ts +2 -0
- package/dist/compat/mini-program-css/output-import-shell.d.ts +8 -0
- package/dist/compat/native/compile.d.ts +2 -0
- package/dist/compat/native/properties.d.ts +15 -0
- package/dist/compat/native/selectors.d.ts +8 -0
- package/dist/compat/native/types.d.ts +23 -0
- package/dist/compat/processed-css/cleanup.d.ts +4 -0
- package/dist/compat/processed-css/composition.d.ts +6 -0
- package/dist/compat/processed-css/entry-directives.d.ts +1 -0
- package/dist/compat/processed-css/imports.d.ts +8 -0
- package/dist/compat/scoped-css/cleanup.d.ts +4 -0
- package/dist/compat/scoped-css/coverage.d.ts +10 -0
- package/dist/compat/scoped-css/covered-rules.d.ts +4 -0
- package/dist/compat/scoped-css/predicates.d.ts +13 -0
- package/dist/compat/tailwind-directive-injection.d.ts +8 -0
- package/dist/compat/tailwindcss-v4/author-functions.d.ts +7 -0
- package/dist/compat/tailwindcss-v4/generated-output.d.ts +5 -0
- package/dist/compat/tailwindcss-v4/package-import-statements.d.ts +1 -0
- package/dist/compat/tailwindcss-v4/preflight-imports.d.ts +3 -0
- package/dist/compat/tailwindcss-v4/rpx-candidates.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/theme-injection.d.ts +1 -0
- package/dist/compat/tailwindcss-v4/theme-source.d.ts +9 -0
- package/dist/compat/tailwindcss-v4/user-css/apply-only.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/user-css/apply-reference.d.ts +4 -0
- package/dist/compat/tailwindcss-v4/user-css/at-rules.d.ts +3 -0
- package/dist/compat/tailwindcss-v4/user-css/class-selectors.d.ts +2 -0
- package/dist/compat/tailwindcss-v4/user-css/directives/entry-source.d.ts +9 -0
- package/dist/compat/tailwindcss-v4/user-css/directives/fallback.d.ts +11 -0
- package/dist/compat/tailwindcss-v4/user-css/directives/index.d.ts +2 -0
- package/dist/compat/tailwindcss-v4/user-css/directives/shared.d.ts +26 -0
- package/dist/compat/tailwindcss-v4/user-css/framework-composition.d.ts +2 -0
- package/dist/compat/tailwindcss-v4/user-css/framework-source.d.ts +1 -0
- package/dist/compat/tailwindcss-v4/user-css/generated-cleanup.d.ts +7 -0
- package/dist/compat/tailwindcss-v4/user-css/identity.d.ts +1 -0
- package/dist/compat/tailwindcss-v4/user-css/markers.d.ts +32 -0
- package/dist/compat/tailwindcss-v4/user-css/rule-deduplication.d.ts +1 -0
- package/dist/compat/tailwindcss-v4/user-css/scoped-rules.d.ts +4 -0
- package/dist/compat/tailwindcss-v4/user-css/source-fragments.d.ts +15 -0
- package/dist/compat/tailwindcss-v4/user-css/transform.d.ts +14 -0
- package/dist/compat/tailwindcss-v4/user-css/user-layer-order.d.ts +10 -0
- package/dist/compat/tailwindcss-v4/user-css/user-layers.d.ts +15 -0
- package/dist/compat/tailwindcss-v4.d.ts +1 -0
- package/dist/compat/uni-app-x/apply-source.d.ts +2 -0
- package/dist/compat/uni-app-x/harmony-apply.d.ts +2 -0
- package/dist/compat/uni-app-x/reference-paths.d.ts +2 -0
- package/dist/compat/uni-app-x-author-apply.d.ts +10 -0
- package/dist/compat/uni-app-x-border.d.ts +6 -0
- package/dist/compat/uni-app-x-style-value.d.ts +11 -0
- package/dist/compat/webpack-css/bare-selectors.d.ts +1 -0
- package/dist/compat/webpack-css/generated-cleanup.d.ts +4 -0
- package/dist/compat/webpack-css/identity.d.ts +5 -0
- package/dist/compat/webpack-css/preflight.d.ts +5 -0
- package/dist/compat/webpack-css/user-source.d.ts +6 -0
- package/dist/diagnostics/rpx-theme.d.ts +9 -0
- package/dist/directives-DTKFO5Hv.js +2630 -0
- package/dist/experimental/lightningcss/index.cjs +256 -0
- package/dist/experimental/lightningcss/index.d.ts +3 -0
- package/dist/experimental/lightningcss/index.js +245 -0
- package/dist/experimental/lightningcss/options.d.ts +3 -0
- package/dist/experimental/lightningcss/selector-transform.d.ts +10 -0
- package/dist/experimental/lightningcss/selector-utils.d.ts +10 -0
- package/dist/framework-pipeline.d.ts +4 -0
- package/dist/generator-plugin/config-directive.d.ts +5 -0
- package/dist/generator-plugin/local-imports.d.ts +6 -1
- package/dist/generator-plugin/source-files.d.ts +5 -5
- package/dist/generator-plugin/types.d.ts +5 -0
- package/dist/index.cjs +388 -7960
- package/dist/index.d.ts +2 -33
- package/dist/index.js +10 -7840
- package/dist/native.cjs +425 -0
- package/dist/native.d.ts +3 -0
- package/dist/native.js +419 -0
- package/dist/plugin-BWDgxMn5.cjs +194 -0
- package/dist/plugin-CpkRzMhp.js +185 -0
- package/dist/plugin.cjs +3 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +2 -0
- package/dist/plugins/applyConfiguredCssCalc.d.ts +9 -0
- package/dist/postcss-runtime-i5rHe_mj.js +2 -0
- package/dist/postcss-runtime.d.ts +1 -1
- package/dist/preflight-BTZL2nvC.cjs +21 -0
- package/dist/preflight-DVg4eehD.js +16 -0
- package/dist/resolve-DQiOQfoY.js +354 -0
- package/dist/resolve-EBh65bS8.cjs +3556 -0
- package/dist/rewrite-imports-CdZQE6CI.js +146 -0
- package/dist/selectorParser/utils.d.ts +1 -1
- package/dist/shared-CELzerNo.cjs +34 -0
- package/dist/shared-CfQUwapA.js +23 -0
- package/dist/source-scan/candidates.d.ts +4 -0
- package/dist/source-scan/description.d.ts +15 -0
- package/dist/source-scan/params.d.ts +5 -0
- package/dist/source-scan/resolve.d.ts +30 -0
- package/dist/source-scan/tailwind-v4/entry-source.d.ts +16 -0
- package/dist/source-scan/tailwind-v4/fingerprint.d.ts +5 -0
- package/dist/source-scan.d.ts +3 -24
- package/dist/syntax/css-import.d.ts +20 -0
- package/dist/syntax/index.d.ts +3 -0
- package/dist/syntax/location-dependencies.d.ts +2 -0
- package/dist/syntax/parse.d.ts +13 -0
- package/dist/syntax/rewrite-imports.d.ts +5 -0
- package/dist/syntax/runtime-signature.d.ts +2 -0
- package/dist/syntax/source-style.d.ts +1 -0
- package/dist/syntax.cjs +547 -0
- package/dist/syntax.d.ts +6 -0
- package/dist/syntax.js +3 -0
- package/dist/transform-Djx5HILQ.js +9239 -0
- package/dist/transform-Xb48e-Wk.cjs +10957 -0
- package/dist/transform.cjs +421 -0
- package/dist/transform.d.ts +40 -0
- package/dist/transform.js +10 -0
- package/dist/types.d.ts +1 -1
- package/dist/utils/apply-source.d.ts +11 -0
- package/dist/utils/css-source-trace.d.ts +6 -0
- package/dist/utils/custom-property-values.d.ts +4 -0
- package/dist/utils/generated-css-marker.d.ts +12 -0
- package/package.json +48 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/postcss",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.6",
|
|
5
5
|
"description": "PostCSS transforms that bring Tailwind CSS compatibility to every platform. 将 Tailwind CSS 兼容能力带到全端的 PostCSS 转换工具。",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,7 +37,32 @@
|
|
|
37
37
|
"import": "./dist/css-macro/postcss.js",
|
|
38
38
|
"require": "./dist/css-macro/postcss.cjs"
|
|
39
39
|
},
|
|
40
|
-
"./package.json": "./package.json"
|
|
40
|
+
"./package.json": "./package.json",
|
|
41
|
+
"./native": {
|
|
42
|
+
"types": "./dist/native.d.ts",
|
|
43
|
+
"import": "./dist/native.js",
|
|
44
|
+
"require": "./dist/native.cjs"
|
|
45
|
+
},
|
|
46
|
+
"./experimental/lightningcss": {
|
|
47
|
+
"types": "./dist/experimental/lightningcss/index.d.ts",
|
|
48
|
+
"import": "./dist/experimental/lightningcss/index.js",
|
|
49
|
+
"require": "./dist/experimental/lightningcss/index.cjs"
|
|
50
|
+
},
|
|
51
|
+
"./syntax": {
|
|
52
|
+
"types": "./dist/syntax.d.ts",
|
|
53
|
+
"import": "./dist/syntax.js",
|
|
54
|
+
"require": "./dist/syntax.cjs"
|
|
55
|
+
},
|
|
56
|
+
"./transform": {
|
|
57
|
+
"types": "./dist/transform.d.ts",
|
|
58
|
+
"import": "./dist/transform.js",
|
|
59
|
+
"require": "./dist/transform.cjs"
|
|
60
|
+
},
|
|
61
|
+
"./plugin": {
|
|
62
|
+
"types": "./dist/plugin.d.ts",
|
|
63
|
+
"import": "./dist/plugin.js",
|
|
64
|
+
"require": "./dist/plugin.cjs"
|
|
65
|
+
}
|
|
41
66
|
},
|
|
42
67
|
"main": "./dist/index.cjs",
|
|
43
68
|
"module": "./dist/index.js",
|
|
@@ -56,6 +81,12 @@
|
|
|
56
81
|
"*": [
|
|
57
82
|
"./dist/*",
|
|
58
83
|
"./dist/index.d.ts"
|
|
84
|
+
],
|
|
85
|
+
"native": [
|
|
86
|
+
"./dist/native.d.ts"
|
|
87
|
+
],
|
|
88
|
+
"experimental/lightningcss": [
|
|
89
|
+
"./dist/experimental/lightningcss/index.d.ts"
|
|
59
90
|
]
|
|
60
91
|
}
|
|
61
92
|
},
|
|
@@ -65,32 +96,41 @@
|
|
|
65
96
|
"engines": {
|
|
66
97
|
"node": "^20.19.0 || >=22.12.0"
|
|
67
98
|
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"lightningcss": "^1.33.0"
|
|
101
|
+
},
|
|
102
|
+
"peerDependenciesMeta": {
|
|
103
|
+
"lightningcss": {
|
|
104
|
+
"optional": true
|
|
105
|
+
}
|
|
106
|
+
},
|
|
68
107
|
"dependencies": {
|
|
69
|
-
"@csstools/css-color-parser": "^4.2.
|
|
108
|
+
"@csstools/css-color-parser": "^4.2.3",
|
|
70
109
|
"@csstools/css-parser-algorithms": "^4.0.0",
|
|
71
110
|
"@csstools/css-tokenizer": "^4.0.0",
|
|
72
|
-
"@tailwindcss-mangle/engine": "0.2.0",
|
|
73
111
|
"@weapp-core/escape": "~8.0.0",
|
|
112
|
+
"@weapp-tailwindcss/engine": "0.1.1",
|
|
74
113
|
"@weapp-tailwindcss/postcss-calc": "1.0.7",
|
|
75
114
|
"@weapp-tailwindcss/shared": "2.0.3",
|
|
76
|
-
"
|
|
115
|
+
"@weapp-tailwindcss/source-scan": "0.1.1",
|
|
116
|
+
"autoprefixer": "^10.6.0",
|
|
77
117
|
"es-toolkit": "^1.52.0",
|
|
78
118
|
"lru-cache": "11.5.2",
|
|
79
|
-
"micromatch": "^4.0.8",
|
|
80
119
|
"postcss": "^8.5.28",
|
|
81
120
|
"postcss-load-config": "^6.0.1",
|
|
82
|
-
"postcss-preset-env": "^11.5.
|
|
121
|
+
"postcss-preset-env": "^11.5.3",
|
|
83
122
|
"postcss-pxtrans": "^1.0.4",
|
|
84
123
|
"postcss-rem-to-responsive-pixel": "^7.0.5",
|
|
85
124
|
"postcss-rule-unit-converter": "^0.2.3",
|
|
86
125
|
"postcss-scss": "^4.0.9",
|
|
87
126
|
"postcss-selector-parser": "^7.1.6",
|
|
88
127
|
"postcss-value-parser": "^4.2.0",
|
|
89
|
-
"tailwindcss-config": "2.0.
|
|
128
|
+
"tailwindcss-config": "2.0.5"
|
|
90
129
|
},
|
|
91
130
|
"devDependencies": {
|
|
92
131
|
"@csstools/postcss-is-pseudo-class": "^6.0.0",
|
|
93
132
|
"fast-check": "^4.10.0",
|
|
133
|
+
"lightningcss": "^1.33.0",
|
|
94
134
|
"postcss-custom-properties": "^15.0.1"
|
|
95
135
|
},
|
|
96
136
|
"scripts": {
|