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

Bugfixes for free var and binding replacement #4787

Merged
merged 5 commits into from
May 3, 2023

Conversation

sokra
Copy link
Member

@sokra sokra commented May 3, 2023

Description

  • fixes a crash in an edge case in the path visitor
  • fixes replacement of members of free vars
  • fixes esm bindings applied on member props. See example
import * as Something from "somewhere";

a.Something // should not be replaced

test cases vercel/next.js#49134

@sokra sokra requested a review from a team as a code owner May 3, 2023 10:14
@vercel
Copy link

vercel bot commented May 3, 2023

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

Name Status Preview Comments Updated (UTC)
examples-kitchensink-blog 🔄 Building (Inspect) May 3, 2023 2:52pm
10 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-cra-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-designsystem-docs ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-gatsby-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-native-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-nonmonorepo ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-svelte-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-tailwind-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
examples-vite-web ⬜️ Ignored (Inspect) May 3, 2023 2:52pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview May 3, 2023 2:52pm

@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2023

✅ This change can build next-swc

@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2023

🟢 CI successful 🟢

Thanks

@sokra sokra requested a review from alexkirsz May 3, 2023 13:38
@sokra sokra enabled auto-merge (squash) May 3, 2023 14:52
@sokra sokra merged commit e30c8fb into main May 3, 2023
@sokra sokra deleted the sokra/bugfix-free-var-replacement branch May 3, 2023 15:05
alexkirsz added a commit to vercel/next.js that referenced this pull request May 3, 2023
See vercel/turborepo#4776

This adds support for:

* Default and custom global app 404 pages (`app/not-found`).
* Segment-level 404 pages (`app/segment/not-found`).

This also updates Turbopack:

* vercel/turborepo#4787 <!-- Tobias Koppers -
Bugfixes for free var and binding replacement -->
* vercel/turborepo#4789 <!-- Alex Kirszenberg -
Print a warning when importing Sass files -->
* vercel/turborepo#4776 <!-- Alex Kirszenberg -
Leave pathname formatting up to the caller -->
* vercel/turborepo#4790 <!-- Tobias Koppers - remove
inital compilation message by default -->

## TODO:

- [ ] ~~The dev overlay shows up when `notFound()` is called, it should
be hidden~~ (moved to WEB-980)
- [ ] ~~Navigating to the global 404 page doesn't work~~ (this is a bug
in Next.js, see NEXT-963)
- [x] Tests.

---------

Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
sokra added a commit to vercel/next.js that referenced this pull request May 4, 2023
### What?

test case for vercel/turborepo#4787

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

* fixes a crash in an edge case in the path visitor
* fixes replacement of members of free vars
* fixes esm bindings applied on member props. See example

``` js
import * as Something from "somewhere";

a.Something // should not be replaced
```

test cases #49134
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

* fixes a crash in an edge case in the path visitor
* fixes replacement of members of free vars
* fixes esm bindings applied on member props. See example

``` js
import * as Something from "somewhere";

a.Something // should not be replaced
```

test cases #49134
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

* fixes a crash in an edge case in the path visitor
* fixes replacement of members of free vars
* fixes esm bindings applied on member props. See example

``` js
import * as Something from "somewhere";

a.Something // should not be replaced
```

test cases #49134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants