feat!: 升级 Babel 8、默认 ESM 与 tsdown 双产物配置#1004
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: adddbf5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 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.
变更摘要
packages/*与packages-runtime/*全部设为默认type: module,公开包继续提供 ESM 与 CommonJS 双入口.js,CommonJS 产物统一使用.cjs,CLI 与 Webpack/Rspack loader 同步采用明确扩展名require()无法加载的 ESM-only 依赖图require()误判为源码链接;原生 JS/WXS 仍保留输出模块图语义.cjs产物变化性能结果
MPX Tailwind CSS v4 的真实 watch 短矩阵中:
tasks.js中位数:约 151.7mstasks.js中位数:约 92.4ms验证结果
pnpm build:pkgs:27/27 通过pnpm test:core:2999 通过,29 跳过pnpm test:plugins:1158 通过,6 跳过pnpm typecheck:通过pnpm test:release:通过pnpm --filter weapp-tailwindcss build:ESM/CJS 双产物构建通过pnpm --filter weapp-tailwindcss lint:通过pnpm install --frozen-lockfile:通过require、dynamicimport、require.resolve与import.meta.resolve检查通过require()Babel 8、htmlparser2、obug 或 magic-stringpnpm e2e:static 39 个文件通过、3 个跳过;222 个测试通过、9 个跳过;hot-update 8/8 通过已知基线问题
main.wxss超时;本次要求的 mp-weixin 与 Web 链路均通过main上复现,本次没有更新该基线