Open
Conversation
2539f63 to
e9ccf03
Compare
9c035d5 to
4019d50
Compare
|
4019d50 to
62b0021
Compare
400ea84 to
e428c53
Compare
e428c53 to
fc0dea6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@weapp-tailwindcss/merge@2.2.0-next.0
Minor Changes
/slim和/lite子路径入口,优化小程序场景下 tailwind-merge 的包体积。acc3907by @sonofmagic/slim:内置精简版冲突分组配置,覆盖小程序常用的布局、Flexbox、Grid、间距、尺寸、排版、背景、边框、效果、变换等类别,开箱即用,体积约 20-23KB。/lite:不包含任何默认配置,仅导出createTailwindMerge、twJoin、mergeConfigs等工厂函数,用户自行提供配置,体积最小(<1KB + tailwind-merge 核心算法)。.)行为完全不变,向后兼容。@weapp-tailwindcss/merge-v3@0.2.0-next.0
Minor Changes
/slim和/lite子路径入口,优化小程序场景下 tailwind-merge 的包体积。acc3907by @sonofmagic/slim:内置精简版冲突分组配置,覆盖小程序常用的布局、Flexbox、Grid、间距、尺寸、排版、背景、边框、效果、变换等类别,开箱即用,体积约 20-23KB。/lite:不包含任何默认配置,仅导出createTailwindMerge、twJoin、mergeConfigs等工厂函数,用户自行提供配置,体积最小(<1KB + tailwind-merge 核心算法)。.)行为完全不变,向后兼容。@weapp-tailwindcss/postcss@2.2.0-next.0
Minor Changes
✨ 新增 CSS 处理结果 LRU 缓存,对相同内容和配置的 CSS 直接返回缓存结果,跳过 PostCSS 处理流程。
e6d7e8cby @sonofmagiccreateStyleHandler内部新增基于 LRU 的结果缓存(最大 256 条目),缓存键由选项指纹 + 内容探测信号 + 内容哈希组成。✨ 新增 PostCSS 流水线按需裁剪能力,通过轻量级 CSS 内容探测自动跳过不必要的插件。
9a4a836by @sonofmagiccontent-probe模块,使用正则/字符串匹配快速探测 CSS 内容特征(现代颜色函数、preset-env 特征等)。createStylePipeline支持可选的FeatureSignal参数,根据信号按需跳过postcss-preset-env和color-functional-fallback插件。StyleProcessorCache将特征信号纳入缓存键计算,确保不同内容特征组合使用正确的处理器。createStyleHandler自动执行内容探测并传递信号,对外 API 签名不变,零配置即可获得优化。Patch Changes
uni-app x的uvue/nvue样式目标会输出宿主不支持 CSS 的问题。a835a94by @sonofmagicuvue目标下过滤非 class selector,避免继续输出space-x-*、space-y-*这类组合器选择器。uvue目标下过滤不兼容声明,例如display: block、display: inline-flex、display: grid、grid-template-columns、gap、min-height: 100vh。uniAppX.uvueUnsupported配置,支持error | warn | silent,默认warn。warn时,跳过不兼容 utility 并输出包含 class 名与来源文件的警告,避免 HBuilderX 因非法 CSS 直接报错。weapp-tailwindcss@4.12.0-next.0
Minor Changes
✨ 优化 JS Handler 结果缓存策略,提升 HMR 和 Bundler 场景下的缓存命中率。
790bc9fby @sonofmagiclru-cache依赖),缓存上限从 256 提升到 512,确保高频访问的文件不被低频文件驱逐。filename/moduleGraph)的缓存排除逻辑,Webpack/Vite/Gulp 调用也能命中结果缓存。linked(跨文件分析)或error(解析失败)的结果不缓存,确保数据一致性。✨ 将 JS 快速预检查机制扩展到所有构建器路径(Webpack v5、Webpack v4、Gulp、核心 API)。
ac76d03by @sonofmagicsrc/js/precheck.ts,通过正则快速判断 JS 文件是否需要转译,跳过不必要的 Babel AST 解析。shouldSkipViteJsTransform改为从共享模块 re-export,保持向后兼容。processAssets钩子、Webpack v4 的emit钩子、Gulp 的transformJs流、核心createContext().transformJs()均已集成预检查。WEAPP_TW_DISABLE_JS_PRECHECK,设置为'1'时可禁用预检查,强制所有文件走完整转译流程。Patch Changes
uni-app x的uvue/nvue样式目标会输出宿主不支持 CSS 的问题。a835a94by @sonofmagicuvue目标下过滤非 class selector,避免继续输出space-x-*、space-y-*这类组合器选择器。uvue目标下过滤不兼容声明,例如display: block、display: inline-flex、display: grid、grid-template-columns、gap、min-height: 100vh。uniAppX.uvueUnsupported配置,支持error | warn | silent,默认warn。warn时,跳过不兼容 utility 并输出包含 class 名与来源文件的警告,避免 HBuilderX 因非法 CSS 直接报错。a835a94→
@weapp-tailwindcss/postcss@2.2.0-next.0@weapp-tailwindcss/ui@0.0.8-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge@2.2.0-next.0,@weapp-tailwindcss/variants@0.2.2-next.0@weapp-tailwindcss/variants@0.2.2-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge@2.2.0-next.0@weapp-tailwindcss/variants-v3@0.1.2-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge-v3@0.2.0-next.0vite-native@1.0.20-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge@2.2.0-next.0benchmark-tailwindcss3@0.0.9-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge-v3@0.2.0-next.0,@weapp-tailwindcss/variants-v3@0.1.2-next.0benchmark-tailwindcss4@0.0.7-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge@2.2.0-next.0,@weapp-tailwindcss/variants@0.2.2-next.0@weapp-tailwindcss/build-all@0.0.25-next.0
Patch Changes
a835a94→
@weapp-tailwindcss/postcss@2.2.0-next.0,weapp-tailwindcss@4.12.0-next.0@weapp-tailwindcss/website@1.0.18-next.0
Patch Changes
acc3907→
@weapp-tailwindcss/merge@2.2.0-next.0,@weapp-tailwindcss/variants@0.2.2-next.0