Skip to content

Perf/optimize 3x - #3513

Open
xiaoyatong wants to merge 3 commits into
feat_v3.xfrom
perf/optimize-3x
Open

Perf/optimize 3x#3513
xiaoyatong wants to merge 3 commits into
feat_v3.xfrom
perf/optimize-3x

Conversation

@xiaoyatong

Copy link
Copy Markdown
Collaborator

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • fork仓库代码是否为最新避免文件冲突
  • Files changed 没有 package.json lock 等无关文件

xiaoyatong and others added 3 commits August 26, 2026 17:32
Move theme-default.scss from sass.resource to a single global @import in
app.scss, preventing 380+ lines of CSS from being compiled into every SCSS
file. Update theme customization docs with sass.resource usage guidelines.

Co-Authored-By: Claude <noreply@anthropic.com>
…s.resource docs

- buildCSS/buildHarmonyCSS: strip the :root,page{} scale-vars block from
  variables.scss before compiling each component's style.css. The block
  belongs in the global style.css entry only, not repeated across 106
  components (~41KB total saving in per-component output).
- docs: replace deprecated sass.data with sass.resource in taro start guides
  (zh-CN and en-US), consistent with Taro v3+ config API.

Co-Authored-By: Claude <noreply@anthropic.com>
Add stripRtlPlugin (PostCSS) to strip .nut-rtl selectors when building
mini-program style outputs:
- buildCSS: emit style.mini.css + mini.js per component alongside style.css
- buildAllCSS: emit style.mini.css global entry alongside style.css
- docs: add mini customStyleName option in babel-plugin-import examples

RTL rules are unused in weapp/jd/tt environments. Stripping them saves
~25.5KB (~7%) from the full bundle and proportionally from per-component
on-demand loading.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added 3.x Target branch 3.x action:review This PR needs more reviews (less than 2 approvals) labels Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Target branch 3.x action:review This PR needs more reviews (less than 2 approvals) size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant