refactor(postcss-syntax): switch from @griffel/babel-preset to @griffel/transform#810
Draft
layershifter wants to merge 1 commit into
Draft
refactor(postcss-syntax): switch from @griffel/babel-preset to @griffel/transform#810layershifter wants to merge 1 commit into
layershifter wants to merge 1 commit into
Conversation
layershifter
force-pushed
the
refactor/next
branch
from
July 24, 2026 10:34
02b9b39 to
74f7c80
Compare
Contributor
📊 Bundle size report✅ No changes found |
layershifter
force-pushed
the
refactor/next
branch
from
July 24, 2026 10:54
74f7c80 to
4bdf238
Compare
…el/transform Eliminate the Babel dependency chain by having postcss-syntax consume @griffel/transform directly. This required extending transform's output with metadata (locations, comment directives) that the Babel location-preset previously provided. Transform changes: - Add SourceLocation, CommentDirective, TransformMetadata types - Collect call expression locations, slot locations, reset locations, and comment directives when generateMetadata is enabled - Return metadata in TransformResult postcss-syntax changes: - Remove @babel/core, @babel/helper-plugin-utils, @griffel/babel-preset deps - Add @griffel/transform dependency - Delete location-preset.ts (functionality now in transform) - Switch source to ESM to consume @griffel/transform synchronously - Expose importsToTransform/functionsToTransform to configure module matching - Switch from Jest to Vitest - Fix type-check cwd (was pointing to babel-preset) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
layershifter
force-pushed
the
refactor/next
branch
from
July 24, 2026 11:03
4bdf238 to
930e535
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@griffel/transformwith metadata output (locations, comment directives) thatpostcss-syntaxneeds, eliminating the need for@griffel/babel-presetand its Babel dependency chain@griffel/postcss-syntaxto consume@griffel/transformdirectly — removes@babel/core,@babel/helper-plugin-utils,@griffel/babel-presetdependencies.tsto.mtssource filesTest plan
npx nx run-many -t build -p transform postcss-syntaxpassesnpx nx run-many -t test -p transform postcss-syntaxpasses (95 tests: 73 transform + 22 postcss-syntax)npx nx run-many -t type-check -p transform postcss-syntaxpasses🤖 Generated with Claude Code