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): postcss should be applied to @imported CSS files #6531

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

ForsakenHarmony
Copy link
Contributor

Description

Previously we only applied postcss to CSS files (not CSS modules) that were imported from javascript.

This PR makes sure the source transform gets applied to all CSS files.

Copy link

vercel bot commented Nov 21, 2023

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

Name Status Preview Comments Updated (UTC)
examples-native-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 4:37pm
examples-svelte-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 21, 2023 4:37pm
9 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Nov 21, 2023 4:37pm
examples-cra-web ⬜️ Ignored (Inspect) Nov 21, 2023 4:37pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Nov 21, 2023 4:37pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 4:37pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 4:37pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 4:37pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 4:37pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 4:37pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Nov 21, 2023 4:37pm

Copy link
Contributor

github-actions bot commented Nov 21, 2023

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Nov 21, 2023

🟢 CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

@ForsakenHarmony ForsakenHarmony force-pushed the hrmny/pack-1992-postcss-at-imported-css-files branch from cfe8925 to cc17f60 Compare November 21, 2023 16:37
@ForsakenHarmony ForsakenHarmony merged commit ee12f15 into main Nov 21, 2023
52 checks passed
@ForsakenHarmony ForsakenHarmony deleted the hrmny/pack-1992-postcss-at-imported-css-files branch November 21, 2023 16:53
Copy link
Contributor

Linux Benchmark for 3744734

Test Base PR % Significant %
bench_startup/Turbopack CSR/1000 modules 1141.82ms ± 11.44ms 1088.22ms ± 9.43ms -4.69% -1.06%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 22.99ms ± 0.66ms 21.99ms ± 1.03ms -4.35%
bench_hmr_to_eval/Turbopack CSR/1000 modules 22.55ms ± 0.79ms 22.01ms ± 0.77ms -2.43%
bench_startup/Turbopack CSR/1000 modules 1141.82ms ± 11.44ms 1088.22ms ± 9.43ms -4.69% -1.06%

wbinnssmith pushed a commit to vercel/next.js that referenced this pull request Nov 21, 2023
### What?

Various fixes in handling of externals in node.js

* add extensions to builtin externals to allow node.js ESM to work
* improve the auto-externals logic to detect more edge cases
* prepare for `esmExternals` support, but that's blocked by client
manifest missing the async flag
* currently only `esmExternals: false` is supported

### Why?

### Turbopack Changes

* vercel/turborepo#6531 <!-- Leah - fix(turbopack):
postcss should be applied to `@import`ed CSS files -->
* vercel/turborepo#6530 <!-- Tobias Koppers - fix
node.js externals -->

---------

Co-authored-by: Leah <github.leah@hrmny.sh>
Co-authored-by: Zack Tanner <zacktanner@gmail.com>
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