Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix transform var #1772

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
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) || calcExp.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
Loading