Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/babel-eight-module-packages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"weapp-tailwindcss": major
"@weapp-tailwindcss/debug-uni-app-x": patch
"@weapp-tailwindcss/init": patch
"@weapp-tailwindcss/logger": patch
"@weapp-tailwindcss/postcss": patch
"@weapp-tailwindcss/reset": patch
"@weapp-tailwindcss/shared": patch
"@weapp-tailwindcss/typography": patch
"tailwindcss-config": patch
"theme-transition": patch
"weapp-style-injector": patch
---

升级核心 Babel 工具链到 Babel 8,并将 Node.js 最低版本提升到 `^22.18.0 || >=24.11.0`。相关包默认采用 ESM 语义,继续同时发布 ESM 与 CommonJS 入口;ESM 产物使用 `.js`,CommonJS 产物使用 `.cjs`,原有公开包名与子路径保持不变。同时收紧 tsdown 的依赖外置策略,避免 ESM 无条件内联可直接消费的依赖,并保证 CommonJS 不会同步加载 ESM-only 依赖。Webpack loader 与 CommonJS runtime 复用同一构建图,避免重复加载 Babel 8 等内联依赖;watch/serve 热更新复用解析缓存并采用轻量 AST 签名遍历,在完整语义约束允许时默认使用 OXC AST 快路径,并在普通 build、不支持的输入或运行时自动回退 Babel,避免冷构建同时加载双解析器。Webpack chunk 直接使用 compilation 产物图独立转译,原生 JS/WXS 才保留输出模块图关联,避免把 runtime bootstrap `require()` 误当作源码链接,降低 MPX、Taro Webpack 等链路的内存和插件处理耗时。Webpack 产物中的 harmony import 注释与 JSDoc import type 不再误触发模块图解析。
123 changes: 97 additions & 26 deletions .github/workflows/e2e-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,45 +314,109 @@ jobs:
- os: windows-latest
runner_label: windows
watch_case: taro-vite-react-tailwindcss-v4
round_profile: default
round_profile: main-style
watch_save_snapshots: '1'
timeout_minutes: 80
# Windows PR 只跑主包与两个分包的真实主样式 HMR;完整多轮由 Linux/macOS 与 nightly 覆盖。
watch_main_style_only: '1'
watch_main_style_subpackage_limit: '2'
watch_max_attempts: '1'
timeout_minutes: 45
watch_timeout_ms: '420000'
watch_poll_ms: '40'
watch_max_plugin_process_ms: '60000'
watch_command_timeout_ms: '4200000'
watch_max_plugin_process_ms: '18000'
watch_command_timeout_ms: '2400000'
- os: windows-latest
runner_label: windows
watch_case: taro-vite-react-tailwindcss-v4
round_profile: web-only
watch_save_snapshots: '1'
# Web HMR 独立运行,避免小程序长轮次失败后从头重跑并耗尽 job 预算。
watch_web_only: '1'
watch_max_attempts: '1'
timeout_minutes: 25
watch_timeout_ms: '420000'
watch_poll_ms: '40'
watch_command_timeout_ms: '1200000'
- os: windows-latest
runner_label: windows
watch_case: taro-webpack-react-tailwindcss-v4
round_profile: default
round_profile: main-style
watch_save_snapshots: '1'
timeout_minutes: 80
# Webpack 轮询重建在 Windows 上单轮接近一分钟,PR 只保留主包与两个分包的主样式契约。
watch_main_style_only: '1'
watch_main_style_subpackage_limit: '2'
watch_max_attempts: '1'
timeout_minutes: 45
watch_timeout_ms: '420000'
watch_poll_ms: '40'
watch_max_plugin_process_ms: '60000'
watch_max_plugin_process_ms: '18000'
taro_dev_ready_timeout_ms: '900000'
watch_command_timeout_ms: '4200000'
watch_command_timeout_ms: '2400000'
- os: windows-latest
runner_label: windows
watch_case: taro-webpack-react-tailwindcss-v4
round_profile: web-only
watch_save_snapshots: '1'
# Webpack H5 独立验证浏览器 HMR,避免和 20 余次小程序重建串行。
watch_web_only: '1'
watch_max_attempts: '1'
timeout_minutes: 25
watch_timeout_ms: '600000'
watch_poll_ms: '40'
watch_command_timeout_ms: '1200000'
- os: windows-latest
runner_label: windows
watch_case: taro-vite-vue3-tailwindcss-v4
round_profile: default
round_profile: main-style
watch_save_snapshots: '1'
timeout_minutes: 60
# Windows PR 只跑主包与两个分包的真实主样式 HMR;完整多轮由 Linux/macOS 矩阵覆盖。
watch_main_style_only: '1'
watch_main_style_subpackage_limit: '2'
watch_max_attempts: '1'
timeout_minutes: 45
watch_timeout_ms: '420000'
watch_poll_ms: '40'
watch_max_plugin_process_ms: '60000'
watch_command_timeout_ms: '3000000'
watch_max_plugin_process_ms: '18000'
watch_command_timeout_ms: '2400000'
- os: windows-latest
runner_label: windows
watch_case: taro-vite-vue3-tailwindcss-v4
round_profile: web-only
watch_save_snapshots: '1'
# Web HMR 独立运行,避免小程序长轮次失败后从头重跑并耗尽 job 预算。
watch_web_only: '1'
watch_max_attempts: '1'
timeout_minutes: 25
watch_timeout_ms: '420000'
watch_poll_ms: '40'
watch_command_timeout_ms: '1200000'
- os: windows-latest
runner_label: windows
watch_case: taro-webpack-vue3-tailwindcss-v4
round_profile: default
round_profile: main-style
watch_save_snapshots: '1'
timeout_minutes: 80
# 一次默认轮次会串行触发 20 余次完整 Webpack 重建;PR 改为主包与两个分包的主样式门禁。
watch_main_style_only: '1'
watch_main_style_subpackage_limit: '2'
watch_max_attempts: '1'
timeout_minutes: 45
watch_timeout_ms: '600000'
watch_poll_ms: '40'
watch_max_plugin_process_ms: '60000'
watch_max_plugin_process_ms: '18000'
taro_dev_ready_timeout_ms: '900000'
watch_command_timeout_ms: '4200000'
watch_command_timeout_ms: '2400000'
- os: windows-latest
runner_label: windows
watch_case: taro-webpack-vue3-tailwindcss-v4
round_profile: web-only
watch_save_snapshots: '1'
# Vue3 Web HMR 单独运行,避免小程序轮次失败后连同 H5 从头重跑。
watch_web_only: '1'
watch_max_attempts: '1'
timeout_minutes: 25
watch_timeout_ms: '600000'
watch_poll_ms: '40'
watch_command_timeout_ms: '1200000'
- os: windows-latest
runner_label: windows
watch_case: demo-uni
Expand Down Expand Up @@ -383,14 +447,17 @@ jobs:
runner_label: windows
watch_case: taro-vite-react-tailwindcss-v4:tt
artifact_case: taro-vite-react-tailwindcss-v4-tt
round_profile: default
round_profile: main-style
watch_save_snapshots: '1'
timeout_minutes: 70
watch_timeout_ms: '600000'
# Windows TT 完整多轮已在 Linux/macOS 覆盖;PR 保留主包与两个分包的主样式 HMR。
watch_main_style_only: '1'
watch_main_style_subpackage_limit: '2'
watch_max_attempts: '1'
timeout_minutes: 45
watch_timeout_ms: '420000'
watch_poll_ms: '40'
# Windows TT 独立分包 added-class 会触发较重的冷态构建,需要独立处理预算。
watch_max_plugin_process_ms: '18000'
watch_command_timeout_ms: '3300000'
watch_command_timeout_ms: '2400000'
- os: windows-latest
runner_label: windows
watch_case: taro-vite-vue3-tailwindcss-v4:alipay
Expand All @@ -411,13 +478,17 @@ jobs:
runner_label: windows
watch_case: taro-vite-vue3-tailwindcss-v4:tt
artifact_case: taro-vite-vue3-tailwindcss-v4-tt
round_profile: default
round_profile: main-style
watch_save_snapshots: '1'
timeout_minutes: 70
watch_timeout_ms: '600000'
# Windows TT 完整多轮已在 Linux/macOS 覆盖;PR 保留主包与两个分包的主样式 HMR。
watch_main_style_only: '1'
watch_main_style_subpackage_limit: '2'
watch_max_attempts: '1'
timeout_minutes: 45
watch_timeout_ms: '420000'
watch_poll_ms: '40'
watch_max_plugin_process_ms: '10000'
watch_command_timeout_ms: '3300000'
watch_max_plugin_process_ms: '18000'
watch_command_timeout_ms: '2400000'
- os: windows-latest
runner_label: windows
watch_case: uni-app-vite-tailwindcss-v4:mp-weixin
Expand Down
Loading
Loading