Skip to content

fix: enable additional lightningcss syntax lowering#166

Merged
marklawlor merged 1 commit intomainfrom
09-03-fix_enable_additional_lightningcss_syntax_lowering
Sep 3, 2025
Merged

fix: enable additional lightningcss syntax lowering#166
marklawlor merged 1 commit intomainfrom
09-03-fix_enable_additional_lightningcss_syntax_lowering

Conversation

@marklawlor
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings September 3, 2025 13:22
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables additional lightningcss syntax lowering by configuring feature flags to include modern CSS features like double position gradients and color functions while excluding vendor prefixes. It also includes a test update that demonstrates the use of modern color syntax.

  • Added lightningcss feature flags to enable modern CSS syntax processing
  • Updated test to use modern oklab color function instead of basic hex colors
  • Changed logging method from debug logger to console.log

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/compiler/compiler.ts Added lightningcss feature flags and changed logging method
src/tests/compiler/@prop.test.tsx Updated test to use modern color syntax and debug helper

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

const MAX_LOG_SIZE = 100 * 1024; // 100KB
if (firstPass.length <= MAX_LOG_SIZE) {
logger(firstPass.toString());
console.log(firstPass.toString());
Copy link

Copilot AI Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using console.log instead of the existing logger violates the established logging pattern. This change removes the conditional logging behavior and may cause unwanted output in production. Revert to using logger(firstPass.toString()).

Suggested change
console.log(firstPass.toString());
logger(firstPass.toString());

Copilot uses AI. Check for mistakes.
@marklawlor marklawlor merged commit cef8ff6 into main Sep 3, 2025
7 checks passed
Copy link
Copy Markdown
Contributor Author

Merge activity

@marklawlor marklawlor deleted the 09-03-fix_enable_additional_lightningcss_syntax_lowering branch September 3, 2025 13:25
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