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 externals in side-effect optimized modules #7797

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

sokra
Copy link
Member

@sokra sokra commented Mar 21, 2024

Description

fixes a problem where an async module wrapper is generated for external modules in a "locals" module part when there is usage of the external module in the locals part

fixes vercel/next.js#63485

Testing Instructions

Closes PACK-2810

fixes PACK-2805

Copy link

vercel bot commented Mar 21, 2024

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

Name Status Preview Comments Updated (UTC)
examples-gatsby-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:46am
examples-native-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:46am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:46am
examples-tailwind-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:46am
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:46am
5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:46am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:46am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:46am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:46am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:46am

Copy link
Contributor

github-actions bot commented Mar 21, 2024

🟢 CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 21, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 21, 2024

⚠️ This change may fail to build next-swc.

Logs

error: failed to select a version for `swc_core`.
    ... required by package `turbopack-binding v0.1.0 (https://github.com/vercel/turbo?rev=267b2f2b21fee9467a2fa508abdea6a4ab39bf01#97950cd8)`
    ... which satisfies git dependency `turbopack-binding` (locked to 0.1.0) of package `next-swc-napi v0.0.0 (/root/actions-runner/_work/turbo/turbo/packages/next-swc/crates/napi)`
versions that meet the requirements `^0.90.24` are: 0.90.24

all possible versions conflict with previously selected packages.

  previously selected package `swc_core v0.90.22`
    ... which satisfies dependency `swc_core = "^0.90.22"` (locked to 0.90.22) of package `wasm v0.0.0 (/root/actions-runner/_work/turbo/turbo/packages/next-swc/crates/wasm)`

failed to select a version for `swc_core` which could resolve this conflict

See job summary for details

@sokra sokra merged commit 50d573c into main Mar 25, 2024
49 of 50 checks passed
@sokra sokra deleted the sokra/fix-externals-in-side-effect-optimized-modules branch March 25, 2024 04:27
timneutkens pushed a commit to vercel/next.js that referenced this pull request Mar 27, 2024
* vercel/turborepo#7797 <!-- Tobias Koppers - fix
externals in side-effect optimized modules -->
* vercel/turborepo#7830 <!-- Tobias Koppers - Avoid
showing import map description in resolving issue when there is no
import map mapping -->
* vercel/turborepo#7833 <!-- Tobias Koppers - add
next.js trace format -->
* vercel/turborepo#7835 <!-- Tobias Koppers -
correct global start by first start time -->
* vercel/turborepo#7812 <!-- Will Binns-Smith -
Turbopack docs: Fix broken webpack loaders link -->
* vercel/turborepo#7847 <!-- Will Binns-Smith -
Turbo tasks: Reuse aggregation context and apply queued updates -->
* vercel/turborepo#7840 <!-- Tobias Koppers - add
concurrency corrected duration -->
* vercel/turborepo#7854 <!-- Tobias Koppers - fix
size_hint on count hash set -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

fixes a problem where an async module wrapper is generated for external
modules in a "locals" module part when there is usage of the external
module in the locals part

fixes #63485

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2810

fixes PACK-2805
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

fixes a problem where an async module wrapper is generated for external
modules in a "locals" module part when there is usage of the external
module in the locals part

fixes #63485

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2810

fixes PACK-2805
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

fixes a problem where an async module wrapper is generated for external
modules in a "locals" module part when there is usage of the external
module in the locals part

fixes #63485

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2810

fixes PACK-2805
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

fixes a problem where an async module wrapper is generated for external
modules in a "locals" module part when there is usage of the external
module in the locals part

fixes #63485

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2810

fixes PACK-2805
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.

Unable to import react-hook-form with Pages Router
3 participants