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

Turbopack HMR: url-encode sourceURLs #7682

Merged
merged 3 commits into from
Mar 9, 2024
Merged

Conversation

wbinnssmith
Copy link
Member

@wbinnssmith wbinnssmith commented Mar 8, 2024

Previously, URLs with spaces (such as those with [root of dev server]) were not understood by tools like Chrome’s dev tools.

Test Plan: Test with an upcoming Next.js PR (to be linked below)

Closes PACK-2699

Previously, URLs with spaces (such as those with `[root of dev server]`) were not understood by tools like Chrome’s dev tools.

Test Plan: Test with an upcoming Next.js PR (to be linked below)
Copy link

vercel bot commented Mar 8, 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 Mar 9, 2024 0:32am
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 9, 2024 0:32am
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 9, 2024 0:32am
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Mar 9, 2024 0:32am

Copy link
Contributor

github-actions bot commented Mar 8, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 8, 2024

✅ This change can build next-swc

wbinnssmith added a commit to vercel/next.js that referenced this pull request Mar 8, 2024
In addition to the file path, also url-decode the module name (represented by the `id` query parameter).

Test Plan: Together with vercel/turbo#7682, this fixes `pnpm testonly-dev test/development/basic/hmr.test.ts "should recover from errors in the render function"`
Copy link
Contributor

github-actions bot commented Mar 8, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

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

See workflow summary for details

@wbinnssmith wbinnssmith changed the title Turbopack HMR: url-encode encode sourceURLs Turbopack HMR: url-encode sourceURLs Mar 8, 2024
wbinnssmith added a commit to vercel/next.js that referenced this pull request Mar 9, 2024
In addition to the file path, also url-decode the module name
(represented by the `id` query parameter).

Test Plan: Together with vercel/turbo#7682, this fixes `pnpm
testonly-dev test/development/basic/hmr.test.ts "should recover from
errors in the render function"`


Closes PACK-2700
@wbinnssmith wbinnssmith merged commit df0fcbb into main Mar 9, 2024
48 of 51 checks passed
@wbinnssmith wbinnssmith deleted the wbinnssmith/encode-source-url branch March 9, 2024 01:22
kdy1 added a commit to vercel/next.js that referenced this pull request Mar 11, 2024
# Turbopack

* vercel/turbo#7682 <!-- Will Binns-Smith -
Turbopack HMR: url-encode sourceURLs -->
* vercel/turbo#7524 <!-- Donny/강동윤 -
feat(turbopack): Enable lightningcss for turbopack by default -->


### What?

Enable lightningcss by default, for `--turbo` mode.

### Why?

It's time to do it 😄 

### How?

Turbopack counterpart: vercel/turbo#7524


Closes PACK-2600
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.

None yet

2 participants