-
Notifications
You must be signed in to change notification settings - Fork 111
ci: fix build issue #1270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: fix build issue #1270
Conversation
🦋 Changeset detectedLatest commit: 5cfa829 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
WalkthroughA new TypeScript declaration file was added for the WebAssembly-based style transformer module, specifying its exports and initialization functions. The package configuration was updated to reference and include this typings file. Additionally, an empty changeset file was introduced for tracking purposes. Changes
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ERROR Cannot resolve version $@rspack/core in overrides. The direct dependencies don't have dependency "@rspack/core". ✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
packages/web-platform/web-style-transformer/index.d.ts (1)
10-15:Array<any>discards type informationUsing
Array<any>voids IntelliSense and static checks. Consider defining a concrete result shape, e.g.:export interface ParsedStyleEntry { name: string; value: string; // … } export function transform_raw_u16_inline_style_ptr_parsed( /* … */ ): ParsedStyleEntry[] | undefined;This keeps consumers type-safe without extra work.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.changeset/kind-bars-pay.md(1 hunks)packages/web-platform/web-style-transformer/index.d.ts(1 hunks)packages/web-platform/web-style-transformer/package.json(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
packages/web-platform/web-style-transformer/index.d.ts (1)
packages/web-platform/web-style-transformer/src/lib.rs (2)
transform_raw_u16_inline_style_ptr(11-26)transform_raw_u16_inline_style_ptr_parsed(43-75)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: build / Build (Windows)
- GitHub Check: build / Build (Ubuntu)
- GitHub Check: code-style-check
- GitHub Check: CodeQL Analyze (actions)
- GitHub Check: CodeQL Analyze (javascript-typescript)
🔇 Additional comments (3)
packages/web-platform/web-style-transformer/index.d.ts (2)
26-39: Export map mirrors wasm-bindgen output correctlyThe
memory, function shims, table, and start entry match the generated.wasmexports. No correctness issues seen.
19-25: Incorrect suggestion: qualifying withglobalThiswon’t resolve missing DOM types
The proposed diff still relies on thedomlib being enabled—globalThis.RequestInfo,globalThis.URL, andglobalThis.Responsedo not exist when you’ve opted out of the DOM library. To support Node‐only consumers you must either:
Document that
lib: ["dom"]is required in consumers’ tsconfigOr import the fetch types from a Node‐compatible library (e.g.
undiciornode-fetch):import type { RequestInfo, Response } from "undici"; export type InitInput = | RequestInfo | URL | Response | BufferSource | WebAssembly.Module;Likely an incorrect or invalid review comment.
packages/web-platform/web-style-transformer/package.json (1)
14-19: Typings path & files array updated correctlyMoving
"typings"fromdist/index.d.tstoindex.d.tsand including it in"files"ensures the new declarations reach npm. Nice catch.
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
CodSpeed Performance ReportMerging #1270 will not alter performanceComparing Summary
|
Web Explorer#2826 Bundle Size — 294.21KiB (0%).5cfa829(current) vs 60095d7 main#2821(baseline) Bundle metrics
Bundle size by type
|
| Current #2826 |
Baseline #2821 |
|
|---|---|---|
220.19KiB |
220.19KiB |
|
42.14KiB |
42.14KiB |
|
31.88KiB |
31.88KiB |
Bundle analysis report Branch PupilTong:p/hw/fix-ts-build-type... Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#2835 Bundle Size — 234.12KiB (0%).5cfa829(current) vs 60095d7 main#2830(baseline) Bundle metrics
|
| Current #2835 |
Baseline #2830 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
153 |
153 |
|
61 |
61 |
|
45.85% |
45.85% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #2835 |
Baseline #2830 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
88.37KiB |
88.37KiB |
Bundle analysis report Branch PupilTong:p/hw/fix-ts-build-type... Project dashboard
Generated by RelativeCI Documentation Report issue
Summary by CodeRabbit
New Features
Chores