Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kuitos
Copy link
Member

@kuitos kuitos commented Jul 16, 2025

Description of change
  • Enhancement: Comprehensive refactor and optimization of @qiankunjs/webpack-plugin.
  • Webpack 5 Optimization: Eliminated deprecation warnings by adopting modern Webpack 5 APIs (e.g., processAssets hook).
  • Improved Robustness: Addressed type safety issues, refined regex handling, and enhanced error management.
  • Increased Configurability: Introduced new options for entryAttributeName and chunkLoadingGlobalPrefix.
  • Expanded Test Coverage: Significantly increased test cases from 4 to 56, covering various real-world scenarios, edge cases, and performance aspects, ensuring full Webpack 4/5 compatibility.
  • Documentation: Updated README.md and README-zh.md to reflect new features and configurations.

@vercel
Copy link

vercel bot commented Jul 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
qiankun ❌ Failed (Inspect) Jul 16, 2025 8:55am

@changeset-bot
Copy link

changeset-bot bot commented Jul 16, 2025

⚠️ No Changeset found

Latest commit: 45a9d94

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

- 修复类型安全问题和 TypeScript 错误
- 使用功能检测代替版本检测
- 优化 webpack 4/5 兼容性
- 扩展测试覆盖率到 55 个测试
- 添加完整的错误处理
- 更新文档和示例
- 正确处理 source 的 string | Buffer 类型
- 使用 RawSource 替代简单对象
- 修复 webpack-sources 导入问题
- 正确处理 webpack 5 的 library 对象格式
- 保持 webpack 4 的 library 字符串格式
- 添加正确的 jsonpFunction 和 chunkLoadingGlobal 配置
- 完善 WebpackOutputWithLegacy 接口类型定义
- 移除复杂的 library 配置逻辑
- 简化 webpack 输出配置只保留 globalObject
- 移除不必要的 package.json 依赖
- 修复 webpack 5 构建兼容性问题
- 删除未使用的代码和导入

注意: 测试需要更新以匹配新的 API
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.

2 participants