postcss-pxtrans@1.0.0
·
68 commits
to main
since this release
Major Changes
524f957Thanks @sonofmagic! - 优化 pxtrans 性能:缓存默认 rootValue 计算、复用正则与选择器黑名单匹配结果,减少每次声明的重复开销,并记录新的基准数据。
Patch Changes
-
a93567cThanks @sonofmagic! - Extract common utilities intopostcss-plugin-sharedand refactor related plugins to reuse them. -
92f38a5Thanks @sonofmagic! - 提炼并统一多个插件的公共能力到postcss-plugin-shared:- 新增
createUnitRegex(可配置单位/跳过规则)并用其生成默认的pxRegex/remRegex - 新增
createAdvancedPropListMatcher支持 pxtrans 的高级propList语法(包含/排除、前后缀、contains) - 新增
maybeBlacklistedSelector(非字符串 selector 返回undefined) - 新增
createConfigGetter用于构建getConfig(基于mergeOptions,数组覆盖而非合并)
- 新增
-
Updated dependencies [
a93567c,92f38a5]:- postcss-plugin-shared@1.0.0