linkedin / linkedin/opticss

Don't emit dynamic classes that are already static

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
713
Forks
23
PR merge metrics
No merged PRs in 30d

Description

an optimized style that's set because it's inferred by both a static and a dynamic source value is currently returned as being set dynamically in addition to the static value. The dynamic class should be removed from the rewrite mapping.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the rewrite mapping logic responsible for optimized styles inferred from both static and dynamic source values. Confirm the case where the style is already static, remove its dynamic class from the mapping, and verify that the resulting output no longer emits the redundant dynamic class.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
performance, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.