chore: upgrade core babel dependencies to 8#937
Open
sonofmagic wants to merge 1 commit into
Open
Conversation
🦋 Changeset detectedLatest commit: fd5d5fc The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
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.
变更内容
@babel/core、@babel/generator、@babel/parser、@babel/traverse、@babel/types。weapp-tailwindcss与@weapp-tailwindcss/babel相关依赖;uni-app、Taro、MPX、templates、website 仍保留 Babel 7。^22.18.0 || >=24.11.0。验证
pnpm installpnpm --filter @weapp-tailwindcss/babel testpnpm vitest run --project=weapp-tailwindcss packages/weapp-tailwindcss/test/babel/index.test.ts packages/weapp-tailwindcss/test/js/babel-utils.test.ts packages/weapp-tailwindcss/test/js/babel-branches.test.ts --coverage.enabled=falsepnpm vitest run --project=@weapp-tailwindcss/minify-preserve packages/minify-preserve/test/bundler-config.test.ts --coverage.enabled=falsepnpm typecheckpnpm build:pkgs兼容性记录
v18.20.0,低于 Babel 8 的 engine 要求。dev:mp-weixin目前会在加载vite.config.ts时遇到 Babel 8 ESM / Node API 兼容问题,例如require() of ES Module @babel/traverse和node:util.styleText不存在。uniCLI 在当前 Node v25 环境下,H5 和 mp-weixin 构建/启动路径已验证可用。已知非本次改动失败
pnpm --filter weapp-tailwindcss test -- --coverage.enabled=false仍有 3 个文件 6 个失败,集中在 CI workflow 断言和 Vite/Webpack watch/cache 用例,和本次 Babel 8 适配路径不重合。