Skip to content

Commit

Permalink
add cssVariableExp
Browse files Browse the repository at this point in the history
  • Loading branch information
wenwenhua committed Dec 23, 2024
1 parent 5326576 commit b6f616c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/platform/style/wx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ module.exports = function getSpec ({ warn, error }) {
// transform 转换
const formatTransform = ({ prop, value, selector }, { mode }) => {
// css var & 数组直接返回
if (Array.isArray(value) || cssVariableExp.test(value)) return { prop, value }
if (Array.isArray(value) || cssVariableExp.test(value) || calcExp.test(value)) return { prop, value }
const values = parseValues(value)
const transform = []
values.forEach(item => {
Expand Down

0 comments on commit b6f616c

Please sign in to comment.