@weapp-tailwindcss/postcss 3.3.6 → 3.3.8
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/compat/mini-program-css/prune-generated.d.ts +3 -2
- package/dist/compat/uni-app-x-uvue.d.ts +1 -1
- package/dist/directives-Cr-gZPUc.js +8263 -0
- package/dist/fingerprint.d.ts +3 -0
- package/dist/index.cjs +6 -3
- package/dist/index.js +7 -7
- package/dist/mp.d.ts +5 -1
- package/dist/{plugin-CpkRzMhp.js → plugin-B-3Uojy6.js} +2 -2
- package/dist/{plugin-BWDgxMn5.cjs → plugin-BQGekI-c.cjs} +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugins/applyConfiguredCssCalc.d.ts +1 -1
- package/dist/plugins/applyConfiguredCssUnits.d.ts +4 -0
- package/dist/plugins/user-plugin-stage.d.ts +3 -0
- package/dist/processor-cache.d.ts +0 -1
- package/dist/resolve-CA9NfMTt.cjs +9999 -0
- package/dist/resolve-D-FbFBpF.js +1139 -0
- package/dist/{rewrite-imports-CdZQE6CI.js → rewrite-imports-Dk9TKKSF.js} +7 -8
- package/dist/syntax.cjs +638 -18
- package/dist/syntax.js +2 -2
- package/dist/{transform-Djx5HILQ.js → transform-D0hjc8vo.js} +330 -175
- package/dist/{transform-Xb48e-Wk.cjs → transform-D4J-AjP1.cjs} +351 -179
- package/dist/transform.cjs +5 -2
- package/dist/transform.d.ts +3 -0
- package/dist/transform.js +6 -6
- package/dist/types.d.ts +10 -0
- package/dist/utils/css-calc-context.d.ts +12 -0
- package/dist/utils/css-custom-property.d.ts +14 -0
- package/package.json +11 -10
- package/dist/directives-DTKFO5Hv.js +0 -2630
- package/dist/resolve-DQiOQfoY.js +0 -354
- package/dist/resolve-EBh65bS8.cjs +0 -3556
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { parseCssImportSpecifier, quoteCssImportSpecifier } from "./resolve-
|
|
1
|
+
import { parseCssImportSpecifier, quoteCssImportSpecifier, tokenizer, u } from "./resolve-D-FbFBpF.js";
|
|
2
2
|
import { postcss as postcss$1 } from "./postcss-runtime-i5rHe_mj.js";
|
|
3
3
|
import postcss from "postcss";
|
|
4
|
-
import { TokenType, tokenizer } from "@csstools/css-tokenizer";
|
|
5
4
|
import scss, { default as scssSyntax } from "postcss-scss";
|
|
6
5
|
//#region src/syntax/parse.ts
|
|
7
6
|
/** 解析标准 CSS;调用方负责处理非法输入。 */
|
|
@@ -103,17 +102,17 @@ function hasCssLocationDependencies(source) {
|
|
|
103
102
|
} });
|
|
104
103
|
const nextSignificant = () => {
|
|
105
104
|
let token = stream.nextToken();
|
|
106
|
-
while (token[0] ===
|
|
105
|
+
while (token[0] === u.Whitespace || token[0] === u.Comment) token = stream.nextToken();
|
|
107
106
|
return token;
|
|
108
107
|
};
|
|
109
108
|
while (!stream.endOfFile()) {
|
|
110
109
|
const token = stream.nextToken();
|
|
111
|
-
if (token[0] ===
|
|
112
|
-
if (token[0] ===
|
|
113
|
-
if (token[0] ===
|
|
110
|
+
if (token[0] === u.AtKeyword && token[4].value.toLowerCase() === "import") return true;
|
|
111
|
+
if (token[0] === u.URL && !isIndependentUrl(token[4].value)) return true;
|
|
112
|
+
if (token[0] === u.Function && token[4].value.toLowerCase() === "url") {
|
|
114
113
|
const value = nextSignificant();
|
|
115
|
-
if (value[0] !==
|
|
116
|
-
if (nextSignificant()[0] !==
|
|
114
|
+
if (value[0] !== u.String || !isIndependentUrl(value[4].value)) return true;
|
|
115
|
+
if (nextSignificant()[0] !== u.CloseParen) return true;
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
return malformed;
|