Version Packages#972
Merged
Merged
Conversation
56b49ae to
53d533b
Compare
53d533b to
b0e4288
Compare
sonofmagic
approved these changes
Jul 8, 2026
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.
Releases
@weapp-tailwindcss/experimental@0.0.20
Patch Changes
c0565ad→
@weapp-tailwindcss/postcss@3.1.9@weapp-tailwindcss/postcss@3.1.9
Patch Changes
🐛 升级
@tailwindcss-mangle/engine到 0.1.3,并适配 Tailwind v4 生成结果中 source metadata 的返回行为变化。c0565adby @sonofmagicweapp-tailwindcss现在会在自身的 v4 扫描层回填已解析的@source扫描规则,避免依赖底层 engine 继续透传 compiled sources;同时修正 Vite 已处理 CSS replay 到小程序根样式资产时的显式目标 fallback 边界。🐛 新增 Tailwind v4 demo 的官方 PostCSS parity 验证链路,并支持
generator: false关闭内置生成器但保留小程序 CSS、模板和 JS 转译。a300a00by @sonofmagicweapp-tailwindcss@5.1.10
Patch Changes
🐛 升级
@tailwindcss-mangle/engine到 0.1.3,并适配 Tailwind v4 生成结果中 source metadata 的返回行为变化。c0565adby @sonofmagicweapp-tailwindcss现在会在自身的 v4 扫描层回填已解析的@source扫描规则,避免依赖底层 engine 继续透传 compiled sources;同时修正 Vite 已处理 CSS replay 到小程序根样式资产时的显式目标 fallback 边界。🐛 修复 Vite 小程序 watch HMR 在回放
app.wxss/main.wxss等样式输出壳时,可能把输出文件自引用@import再次交给 Tailwind 解析的问题,避免增量编译时报Can't resolve 'app.wxss'。 #973 by @sonofmagicmain.wxss等小程序样式文件重复发射警告。🐛 新增 Tailwind v4 demo 的官方 PostCSS parity 验证链路,并支持
generator: false关闭内置生成器但保留小程序 CSS、模板和 JS 转译。a300a00by @sonofmagic🐛 修复 Vite serve 下快速连续源码变更可能丢失最新 Tailwind v4 class 候选的问题,并稳定 Taro H5 watch-HMR 回归中的源码 DOM 替换校验。
969229fby @sonofmagic🐛 修复 Vite 小程序样式注入在显式 root
outputFile存在时,误把其它根样式文件也当作主样式注入目标的问题,避免@layer或非标准根样式文件干扰输出归属。382b628by @sonofmagic🐛 修复 Vite 开发模式下 source candidate 追加式 HMR 在多个 CSS module 同时更新时,新增样式可能被非主样式模块提前消费的问题,并让 watch 回归用例避开对 uni-app H5 supplemental CSS 注入时序的误判。
09c0523by @sonofmagic🐛 修复
jsPreserveClass在alwaysEscape模式下不生效的问题,确保用户显式保留的业务或第三方 class 不会被 JS 转译改写。38c207cby @sonofmagic🐛 修复 Vite
cssEntries与rem2rpx场景下,uview-plus 等第三方库已编译样式可能因 root/scoped 去重误判而丢失实际使用声明的问题。 #973 by @sonofmagicapp.wxss等输出样式无法正确重放的问题。🐛 修复 Tailwind CSS v4 显式
source(none)入口仅包含@source not ...时,Vite source scan 误退化为全仓扫描的问题,避免生成范围超出入口声明。e708e92by @sonofmagic🐛 修复 Tailwind CSS v4 CSS macro 入口在初次 source scan 后无法复用增量生成缓存的问题,避免后续新增 candidate 时退回全量生成。
1227395by @sonofmagic🐛 修复 Webpack/Taro/Mpx 的 Tailwind CSS v4
cssEntries输出归属判断,避免页面样式误保留主入口 preflight,同时保留主入口哈希样式产物的小程序 preflight。 #973 by @sonofmagic🐛 修复 Tailwind CSS v4 入口样式的
@source inline(...)、@source not inline(...)与@import "tailwindcss" source(none)识别,提升多入口/分包样式生成时的源文件匹配稳定性。f02b3a7by @sonofmagic🐛 优化 Vite Web/WebCompat 生成性能:显式
target: "web"不再在开发态额外默认执行 WebCompat,HMR 默认支持所有 target 的新增候选增量追加,WebCompat 增量路径只转换新增 CSS 片段,并减少 Web target 下不必要的 classSet 与用户 CSS 规则扫描。2e19348by @sonofmagicgenerator.hmr.preserveDeletedCss配置,默认true以启用高性能 HMR;设置为false时开发态源码 HMR 会全量再生成 CSS,从而不保留已删除 class 的旧 CSS。正式 build 始终保持精确输出。📦 Dependencies
c0565ad→
@weapp-tailwindcss/postcss@3.1.9@weapp-tailwindcss/build-all@0.0.50
Patch Changes
c0565ad→
weapp-tailwindcss@5.1.10,@weapp-tailwindcss/postcss@3.1.9,@weapp-tailwindcss/experimental@0.0.20@weapp-tailwindcss/website@1.0.43
Patch Changes
c0565ad→
weapp-tailwindcss@5.1.10