Skip to content

chore: remove unusued compiler variable tracking#165

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

chore: remove unusued compiler variable tracking#165
marklawlor merged 1 commit intomainfrom
09-03-chore_remove_unusued_compiler_variable_tracking

Conversation

@marklawlor
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings September 3, 2025 12:08
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 removes unused compiler variable tracking functionality from the codebase. The changes eliminate the ability to strip unused CSS custom properties/variables during compilation.

  • Removes stripUnusedVariables option and related configuration from compiler options
  • Eliminates variable usage tracking logic in the compilation process
  • Simplifies at-rule processing by removing variable preservation handling

Reviewed Changes

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

File Description
src/compiler/compiler.types.ts Removes compiler options for variable stripping and preservation
src/compiler/compiler.ts Removes variable usage tracking visitor and cleans up formatting
src/compiler/stylesheet.ts Removes conditional logic for skipping unused variables
src/compiler/atRules.ts Removes preserve-variables at-rule processing and simplifies function

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

Comment thread src/compiler/compiler.ts
type MediaRule,
type Rule,
type TokenOrValue,
type Visitor,
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.

The import type TokenOrValue was removed but there's a typo in the PR title: 'unusued' should be 'unused'.

Suggested change
type Visitor,

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

Merge activity

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