Skip to content

fix(types): export PitchLoaderDefinitionFunction type#10289

Merged
chenjiahan merged 1 commit intoweb-infra-dev:mainfrom
henryqdineen:hqd-export-pitch-loader-definition-function-type
May 8, 2025
Merged

fix(types): export PitchLoaderDefinitionFunction type#10289
chenjiahan merged 1 commit intoweb-infra-dev:mainfrom
henryqdineen:hqd-export-pitch-loader-definition-function-type

Conversation

@henryqdineen
Copy link
Contributor

Summary

When building a loader I noticed that PitchLoaderDefinitionFunction is not exported from @rspack/core so I updated the code to fix that. I see some JSDoc comments reference that type so this is technically a fix for those. Example:

/** @type {import("@rspack/core").PitchLoaderDefinitionFunction} */
exports.pitch = async function (remaining) {

Thanks!

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link

netlify bot commented May 7, 2025

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 2e687cc
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/681b7794718f3d00082d5456

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label May 7, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented May 7, 2025

CodSpeed Performance Report

Merging #10289 will not alter performance

Comparing henryqdineen:hqd-export-pitch-loader-definition-function-type (2e687cc) with main (45bf974)

🎉 Hooray! codspeed-rust just leveled up to 2.7.2!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

✅ 11 untouched benchmarks

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you ❤️

@chenjiahan chenjiahan merged commit d8661af into web-infra-dev:main May 8, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants