Version Packages#933
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
4299001 to
5d495cb
Compare
5d495cb to
116a353
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.
Releases
@weapp-tailwindcss/postcss@4.0.0
Major Changes
🚀 移除
@weapp-tailwindcss/postcss中 Tailwind CSS v3 相关的版本探测、显式version配置、v3 fixture 与 benchmark 基线。1dc7b97by @sonofmagic@apply的局部 CSS 会在内部注入 Tailwind v4@reference上下文并跳过自动源码扫描,不再依赖旧的 v3/v4 分支判断。🚀 移除 Tailwind CSS v3 兼容链路,后续生成、运行时与小程序 CSS 处理统一面向 Tailwind CSS v4。
d9be474by @sonofmagicweapp-tailwindcss@6.0.0
Major Changes
🚀 移除 Rax 框架兼容支持,不再提供
appType: 'rax'类型、Rax 依赖识别和src/global.css隐式入口探测。3d04bcfby @sonofmagic🚀 移除
generator.target: "tailwind"生成目标,生成目标仅保留weapp与web。需要原始 Tailwind Web CSS 时请使用generator.target: "web"。076152eby @sonofmagic🚀 移除 Tailwind CSS v3 兼容链路,后续生成、运行时与小程序 CSS 处理统一面向 Tailwind CSS v4。
d9be474by @sonofmagic🚀 Tailwind CSS v4 入口现在必须来自独立的
.css文件,例如在app.css中写入@import "tailwindcss";。不再支持把 Tailwind v4 根入口写在.scss、.less等预处理器文件或 Vue SFC 的<style>块中,也不再消费 inlinetailwindcss.v4.css作为根入口。6f79918by @sonofmagic🚀 Vite 与 Webpack5 生成链路收敛为 Tailwind CSS v4 优先的 CSS-first/loader-first 管线,入口仍保留
weapp-tailwindcss/vite与weapp-tailwindcss/webpack。新管线要求使用 Tailwind CSS v4,并建议通过显式 CSS entry 或tailwindcss.v4.cssEntries/cssSources声明样式来源;不再依赖旧的隐式 CSS source 推断、Webpack 末端补偿生成或历史 MPX 专用 loader 排序兜底。cff9ad4by @sonofmagicMinor Changes
weapp-tailwindcss内部的 Tailwind 运行时接入切换为@tailwindcss-mangle/engine,不再依赖tailwindcss-patch修改 Tailwind 包本身,并移除旧的twPatcher、createTailwindcssPatcher等 patcher 兼容命名,统一使用 Tailwind 运行时对象;同时新增 Tailwind CSS v3/v4 与 Web/H5、小程序、uni-app x Android/iOS/Harmony 的运行时分支路由,并将 Web/H5、小程序、原生 App 与 Tailwind 原样输出拆到独立分支文件,让不同版本和平台走独立判断入口,降低 App 端调整影响 H5 或小程序输出的风险;补齐 Tailwind CSS v3/v4 的源码候选扫描、Vite/Webpack 运行时类集合刷新与相关回归覆盖,并修复运行时候选污染时 WXML/JS 条件表达式里的普通业务字符串被误转义的问题。 #939 by @sonofmagicPatch Changes
🐛 新增实验性 OXC JS 转译快路径,在关闭 source map 且不涉及模块图、模块替换、ignore 语义和任意值兜底时,可通过
experimentalJsFastPath: 'oxc'尝试使用oxc-parser加速纯字面量转译;不满足条件、运行环境低于oxc-parser支持范围或无法加载 OXC 时会自动回退到 Babel。该快路径保持可选加载,不会影响 Node.js 18 的默认 CommonJS 使用,并减少遍历期间的临时对象分配。 #938 by @sonofmagic🐛 补全面向 demo 的热更新回归覆盖,修复 Vite watch 下样式源刷新不及时的问题,并调整 Taro Web/H5 与 Webpack demo 的 HMR 断言,使小程序端、H5 端、正常开发和热更新场景都能稳定通过。 #935 by @sonofmagic
🐛 修复 Webpack web target 下 Tailwind CSS v4 入口 CSS 会被 css-loader 提前展开为
@media source(none),导致文档站生产构建丢失大量样式的问题。0219ec9by @sonofmagic🐛 修复 Webpack web target 在开发态首轮构建中扫描已打包 JS/HTML 导致文档站卡在 92% asset processing 的问题,并确保显式 Tailwind CSS v4 入口在生产与开发构建中都能生成完整工具类样式。
dfd9be8by @sonofmagic🐛 修复 Vite HMR 局部增量构建中缓存 hash 记录持续累积的问题,限制全局 compiler context 缓存的长期驻留规模,并为 watch/HMR 与 CI 流程补充内存报告和内存守卫,便于提前发现内存异常。
4d5447cby @sonofmagic🐛 Vite 集成不再默认替换 Taro 注入的
postcss-html-transform,保留@tarojs/plugin-html自身的样式转换行为。 #938 by @sonofmagic🐛 修复 Webpack web target 下已生成的 Tailwind CSS v4 产物会丢失官方 layer 声明的问题,并增加 core、Vite、Webpack、Gulp 与官方 PostCSS/Vite 产物一致性的回归测试。
a4d7330by @sonofmagic🐛 优化 Tailwind v3/v4 增量生成缓存的内存占用:隔离 CSS 源可复用增量缓存,同时超出候选数或 CSS 字节上限的大型生成结果不再进入长期缓存,避免 HMR 中保留无效的大型 Tailwind context。
318e3f6by @sonofmagic🐛 移除
@weapp-tailwindcss/postcss中 Tailwind CSS v3 相关的版本探测、显式version配置、v3 fixture 与 benchmark 基线。1dc7b97by @sonofmagic@apply的局部 CSS 会在内部注入 Tailwind v4@reference上下文并跳过自动源码扫描,不再依赖旧的 v3/v4 分支判断。📦 Dependencies
1dc7b97→
@weapp-tailwindcss/postcss@4.0.0@weapp-tailwindcss/experimental@0.0.11
Patch Changes
1dc7b97→
@weapp-tailwindcss/postcss@4.0.0@weapp-tailwindcss/build-all@0.0.40
Patch Changes
cce3474→
weapp-tailwindcss@6.0.0,@weapp-tailwindcss/postcss@4.0.0,@weapp-tailwindcss/experimental@0.0.11@weapp-tailwindcss/website@1.0.33
Patch Changes
cce3474→
weapp-tailwindcss@6.0.0