build: 迁移 webpack 到 rspack 并更新相关配置#18
Merged
CodFrm merged 2 commits intoscriptscat:mainfrom Feb 13, 2026
Merged
Conversation
替换 webpack 为 rspack 作为构建工具,更新配置文件和相关依赖 使用 fast-glob 替代 glob 提升测试文件查找性能
Member
|
非常感谢,我下次发版的时候合并试一下 |
Contributor
|
还有应该改用 pnpm 吧 |
Member
pnpm确实更好用,我本来是坚定的官方党,但是对比之下npm实在太拉垮了 我后面给这个项目处理一下pnpm |
Contributor
Author
要不我在这个上面直接切到 pnpm 吧 |
cyfung1031
reviewed
Feb 9, 2026
Contributor
cyfung1031
left a comment
There was a problem hiding this comment.
我看到你这边有改 package.json
在这边做版本升级吧。我不另外开 PR 了
There was a problem hiding this comment.
Pull request overview
该 PR 将 VS Code 扩展的构建工具从 webpack 迁移到 rspack,并将测试文件查找从 glob 切换到 fast-glob,同时更新了相关依赖与锁文件,以适配新的构建/包管理方式。
Changes:
- 删除
webpack.config.js,新增rspack.config.js并将构建脚本切换为rspack - 测试套件中使用
fast-glob替代glob来收集测试文件 - 引入
pnpm-lock.yaml并在package.json中声明packageManager,同时更新依赖与 VS Code engine 版本
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| webpack.config.js | 移除 webpack 构建配置,为迁移到 rspack 做清理 |
| rspack.config.js | 新增 rspack 构建配置(node target、swc-loader 编译 TS、externals 等) |
| src/test/suite/index.ts | 用 fast-glob 替代 glob 来加载测试文件 |
| package.json | 更新构建脚本到 rspack、更新依赖与 engines,并增加 pnpm packageManager 声明 |
| pnpm-lock.yaml | 新增 pnpm 锁文件以固定依赖解析结果 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
替换 webpack 为 rspack 作为构建工具,更新配置文件和相关依赖
使用 fast-glob 替代 glob 提升测试文件查找性能
fix: glob
