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 GlobalCssAsset to fix dynamic import of css #7858

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

sokra
Copy link
Member

@sokra sokra commented Mar 28, 2024

Description

  • remove PassthroughModule
  • remove GlobalCssAsset
  • just return the inner asset directly without indirection

that fixes import("global.css")

Testing Instructions

fixes PACK-961

Closes PACK-2864

Copy link

vercel bot commented Mar 28, 2024

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

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

Copy link
Contributor

github-actions bot commented Mar 28, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 28, 2024

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Mar 28, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

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

See workflow summary for details

@sokra sokra marked this pull request as draft March 28, 2024 14:21
@sokra sokra merged commit beba3b9 into main Apr 12, 2024
48 of 50 checks passed
@sokra sokra deleted the sokra/refactor-global-css branch April 12, 2024 06:07
sokra added a commit to vercel/next.js that referenced this pull request Apr 15, 2024
* vercel/turborepo#7858 <!-- Tobias Koppers -
refactor GlobalCssAsset to fix dynamic import of css -->
* vercel/turborepo#7944 <!-- Will Binns-Smith -
Update lockfile for compatibility with next.js -->
* vercel/turborepo#7936 <!-- Tobias Koppers - fix
panic when searching an the root span -->
* vercel/turborepo#7959 <!-- Tobias Koppers - fix
missing async loader -->
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…o#7858)

### Description

- remove PassthroughModule
- remove GlobalCssAsset
- just return the inner asset directly without indirection

that fixes `import("global.css")`

### Testing Instructions

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

fixes PACK-961

Closes PACK-2864
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…o#7858)

### Description

- remove PassthroughModule
- remove GlobalCssAsset
- just return the inner asset directly without indirection

that fixes `import("global.css")`

### Testing Instructions

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

fixes PACK-961

Closes PACK-2864
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…o#7858)

### Description

- remove PassthroughModule
- remove GlobalCssAsset
- just return the inner asset directly without indirection

that fixes `import("global.css")`

### Testing Instructions

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

fixes PACK-961

Closes PACK-2864
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…o#7858)

### Description

- remove PassthroughModule
- remove GlobalCssAsset
- just return the inner asset directly without indirection

that fixes `import("global.css")`

### Testing Instructions

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

fixes PACK-961

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

2 participants