Skip to content

fix(uni-app-x): skip empty external WXS scripts - #1112

Merged
sonofmagic merged 1 commit into
mainfrom
codex/issue-1110
Aug 25, 2026
Merged

fix(uni-app-x): skip empty external WXS scripts#1112
sonofmagic merged 1 commit into
mainfrom
codex/issue-1110

Conversation

@sonofmagic

Copy link
Copy Markdown
Owner

摘要

修复 uni-app x SFC 中空内容外链 WXS <script> 触发 MagicString 零长度区间异常的问题。

变更

  • 空脚本区间不再进入 JS AST 扫描和 MagicString.update
  • 增加两个外链 WXS 脚本的回归测试。

验证

  • pnpm --filter weapp-tailwindcss exec vitest run test/uni-app-x test/js
  • pnpm --filter weapp-tailwindcss build
  • git diff --check

Refs #1110

@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 37858c3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonofmagic
sonofmagic merged commit b70f1f6 into main Aug 25, 2026
101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant