Skip to content
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

refactor(turbopack): Use ResolvedVc for turbopack-ecmascript #72564

Open
wants to merge 277 commits into
base: canary
Choose a base branch
from

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Nov 11, 2024

What?

Use ResolvedVc for struct fields in turbopack-ecmascript crate

Why?

Follow-up of #72200, #72382, #72320

How?

Closes PACK-3438

@kdy1 kdy1 requested a review from mischnic November 12, 2024 01:45
@kdy1 kdy1 enabled auto-merge (squash) November 12, 2024 01:45
Comment on lines 34 to +46
#[turbo_tasks::function]
pub fn new(
pub async fn new(
origin: Vc<Box<dyn ResolveOrigin>>,
request: Vc<Request>,
issue_source: Vc<IssueSource>,
in_try: bool,
) -> Vc<Self> {
Self::cell(CjsAssetReference {
origin,
request,
issue_source,
) -> Result<Vc<Self>> {
Ok(Self::cell(CjsAssetReference {
origin: origin.to_resolved().await?,
request: request.to_resolved().await?,
issue_source: issue_source.to_resolved().await?,
in_try,
})
}))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is still not using ResolvedVc in the arguments

kdy1 added a commit that referenced this pull request Nov 14, 2024
### What?

Follow-up for #72564

### Why?

We need to refactor this for future works.

### How?

---------

Co-authored-by: Benjamin Woodruff <benjamin.woodruff@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Turbopack team PRs by the Turbopack team. Font (next/font) Related to Next.js Font Optimization. Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants