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

fix(turbopack): add no-op resolveAbsolutePath to browser runtime #8549

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

ForsakenHarmony
Copy link
Member

@ForsakenHarmony ForsakenHarmony commented Jun 20, 2024

Description

Reading import.meta.url should work in the browser, it can just return a /ROOT/... path.

Closes PACK-3095
Fixes vercel/next.js#66005

Copy link

vercel bot commented Jun 20, 2024

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

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 3:08pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 3:08pm
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 3:08pm

Copy link
Contributor

github-actions bot commented Jun 20, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jun 20, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

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

Could you add a test case testing this behavior?

@ForsakenHarmony
Copy link
Member Author

ForsakenHarmony commented Jun 26, 2024

@sokra I don't think we have a way to do an execution test with the browser runtime, do we?

Could add a test to the next.js side

@ForsakenHarmony ForsakenHarmony merged commit 9f9f359 into main Jun 26, 2024
55 of 57 checks passed
@ForsakenHarmony ForsakenHarmony deleted the hrmny/pack-3095-browser-resolve-absolute-path branch June 26, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__turbopack_resolve_absolute_path__ is not a function
2 participants