@dcloudio/uni-nvue-styler
Advanced tools
Comparing version 3.0.0-4000820240401001 to 3.0.0-4010420240430001
@@ -172,2 +172,8 @@ 'use strict'; | ||
/** | ||
* @vue/shared v3.4.21 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**/ | ||
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {}; | ||
@@ -961,2 +967,3 @@ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : []; | ||
return (v, options, declInfo) => { | ||
// platform 未定义时候忽略 | ||
const currentPlatform = options.platform; | ||
@@ -1060,3 +1067,5 @@ const supportedPlatforms = getSupportedPlatforms(uniPlatform); | ||
.join(','); | ||
if (v.split(/\s*,\s*/).every((p) => !!getNormalizeMap(options)[p])) { | ||
if (v.split(/\s*,\s*/).every((p) => { | ||
return !!getNormalizeMap(options)[p]; | ||
})) { | ||
return { value: v }; | ||
@@ -1586,3 +1595,10 @@ } | ||
} | ||
return { code: JSON.stringify(obj), messages }; | ||
let code = JSON.stringify(obj); | ||
if (options.type === 'uvue') { | ||
// TODO 暂时仅简易转换 CSS 变量 | ||
code = code.replace(/\:\s*"(.+?)"/g, function (str, p1) { | ||
return isExpr(p1) ? `:${p1}` : str; | ||
}); | ||
} | ||
return { code, messages }; | ||
} | ||
@@ -1589,0 +1605,0 @@ function mapToInitStringChunk(map, ts = false, isRoot = false, mapOf = '', chunk = 0) { |
@@ -1,6 +0,6 @@ | ||
import { Container } from 'postcss'; | ||
import { Document as Document_2 } from 'postcss'; | ||
import type { Container } from 'postcss'; | ||
import type { Document as Document_2 } from 'postcss'; | ||
import type { Plugin as Plugin_2 } from 'postcss'; | ||
import postcss from 'postcss'; | ||
import { Root } from 'postcss'; | ||
import type { Root } from 'postcss'; | ||
@@ -7,0 +7,0 @@ export declare function expand(options: NormalizeOptions): Plugin_2; |
{ | ||
"name": "@dcloudio/uni-nvue-styler", | ||
"version": "3.0.0-4000820240401001", | ||
"version": "3.0.0-4010420240430001", | ||
"description": "uni-nvue-styler", | ||
@@ -22,4 +22,4 @@ "main": "./dist/uni-nvue-styler.cjs.js", | ||
"parse-css-font": "^4.0.0", | ||
"postcss": "^8.4.23" | ||
"postcss": "^8.4.35" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
235227
9473
Updatedpostcss@^8.4.35