Skip to content

chore: 将直接 Babel 依赖迁移到 v8#210

Open
sonofmagic wants to merge 2 commits into
mainfrom
chore/babel-8
Open

chore: 将直接 Babel 依赖迁移到 v8#210
sonofmagic wants to merge 2 commits into
mainfrom
chore/babel-8

Conversation

@sonofmagic

@sonofmagic sonofmagic commented Jun 18, 2026

Copy link
Copy Markdown
Owner

变更内容

  • @tailwindcss-mangle/coretailwindcss-patch 直接使用的 @babel/parser@babel/traverse@babel/types@babel/generator 升级到 ^8.0.0
  • 移除不再需要的 @types/babel__* 类型包。
  • 兼容 Babel 8 更严格的 AST builder 校验,显式传入 t.arrayExpression([])
  • 按 Babel 8 的 engines.node 要求同步提升 Node.js 版本范围到 ^22.18.0 || >=24.11.0,并更新 CI、Release、文档和示例工作流中的 Node 版本。
  • 补充 @tailwindcss-mangle/coretailwindcss-patchunplugin-tailwindcss-mangle 的 changeset。
  • 修复 website 在当前 Next/Nextra 组合下的类型构建问题,使 pnpm build:docs 可以通过。

说明

  • 仍保留的 Babel 7 来自第三方工具链或历史测试夹具,例如 Vue CLI 仍声明 @babel/core ^7,Tailwind 2 fixture 保留上游历史 package manifest。本 PR 不强行覆盖这些上游兼容范围。

验证

  • pnpm install --lockfile-only
  • pnpm lint
  • pnpm lint:style
  • pnpm build
  • pnpm test
  • pnpm --filter tailwindcss-patch test:types
  • pnpm build:docs

@changeset-bot

changeset-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a224763

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@tailwindcss-mangle/core Patch
tailwindcss-patch Patch
unplugin-tailwindcss-mangle Patch
next-app Patch

Not sure what this means? Click here to learn what changesets are.

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

@sonofmagic sonofmagic changed the title chore: migrate direct Babel dependencies to v8 chore: 将直接 Babel 依赖迁移到 v8 Jun 18, 2026
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