feat: support origin.loc on chunkgroup#10188
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the new origin.loc property in ChunkGroup by updating type definitions, serialization logic, and API documentation.
- Enable origin.loc parsing in the ChunkGroup getter
- Update API documentation to reflect the new structure for loc
- Add Serialize derivations and update node binding handling for origin.loc
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/rspack/src/ChunkGroup.ts | Added loc conversion using JSON.parse for origin.loc |
| packages/rspack/etc/core.api.md | Updated documentation for the new loc field |
| crates/rspack_core/src/dependency/dependency_location.rs | Added Serialize to dependency location types |
| crates/node_binding/src/chunk_group.rs | Updated origin.loc handling and JSON serialization |
CodSpeed Performance ReportMerging #10188 will not alter performanceComparing 🎉 Hooray!
|
|
Using napi object to implement this without json serialization and deserialization. |
4735617 to
89e52c3
Compare
Summary
close #7922
Checklist