Skip to content

Conversation

@Mad-Kat
Copy link
Collaborator

@Mad-Kat Mad-Kat commented Dec 22, 2025

Deprecates :global() selectors to align webpack projects with Turbopack and upcoming Vite integrations, which already require native CSS transpilation.

Changes:

  • Build-time warning when :global() is detected
  • New ESLint rule yak/css-global-deprecated
  • Migration docs at /docs/migration-to-native-css
  • suppressDeprecationWarnings option for gradual migration

To migrate: experiments: { transpilationMode: 'Css' } in next.config.js and remove :global() from your selectors

@changeset-bot
Copy link

changeset-bot bot commented Dec 22, 2025

🦋 Changeset detected

Latest commit: d5677c6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
next-yak Minor
yak-swc Minor
eslint-plugin-yak Minor
next-yak-example Patch
vite-yak-example Patch
benchmarks Patch
docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Mad-Kat Mad-Kat force-pushed the feat/add-global-deprecation-warning branch from 1b332c0 to a3487dc Compare December 30, 2025 14:25
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 30, 2025

CodSpeed Performance Report

Merging #448 will not alter performance

Comparing feat/add-global-deprecation-warning (d5677c6) with main (846cc4c)

Summary

✅ 12 untouched
⏩ 12 skipped1

Footnotes

  1. 12 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Mad-Kat Mad-Kat marked this pull request as ready for review December 30, 2025 15:15
jantimon
jantimon previously approved these changes Jan 5, 2026
@Mad-Kat Mad-Kat merged commit ddb0e93 into main Jan 5, 2026
6 checks passed
@Mad-Kat Mad-Kat deleted the feat/add-global-deprecation-warning branch January 5, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants