Skip to content

chore: remove unused browserslist config#185

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-browserslist-20260615
Open

chore: remove unused browserslist config#185
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-browserslist-20260615

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes the browserslist field from package.json — it has no consumer in this project after Tailwind CSS v4 migration.

Why

The browserslist config was previously consumed by autoprefixer to determine which vendor prefixes to add. With Tailwind CSS v4:

  • Lightning CSS (embedded in @tailwindcss/postcss) handles vendor prefixing natively
  • autoprefixer is redundant and is being removed in PR chore: remove redundant autoprefixer dependency #180
  • Vite/esbuild does not read browserslist — it uses build.target (defaults to modules)
  • @vitejs/plugin-react does not use browserslist by default (no Babel config in this project)
  • No Babel config exists in the project

Without any consumer, the browserslist field is dead configuration.

Changes

  • package.json: Removed browserslist key with 4 entries

Test Plan

  • All 52 existing tests pass
  • Production build completes successfully (no CSS processing changes)
  • No behavior change — CSS prefixing is already handled by Lightning CSS within @tailwindcss/postcss

The browserslist config was consumed by autoprefixer, which is
redundant with Tailwind CSS v4 (Lightning CSS handles prefixing
natively). With autoprefixer being removed (PR #180), browserslist
has no consumer in this project — Vite/esbuild, @vitejs/plugin-react,
and @tailwindcss/postcss do not use browserslist.

No behavior change — CSS prefixing is already handled by Lightning
CSS within @tailwindcss/postcss.
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 15, 2026 8:04pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a941e1e0d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"not ie <= 11",
"not op_mini all"
],
"keywords": [

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore browserslist while Autoprefixer still runs

In this commit the Browserslist block is removed, but this repo still imports and executes autoprefixer from postcss.config.js (plugins: [tailwindcss, autoprefixer]). For any build of this commit before the promised Autoprefixer-removal change lands, Autoprefixer still consumes Browserslist and will fall back to its default targets instead of the project’s explicit >0.2%, not dead, not ie <= 11, not op_mini all policy, so production CSS prefixing can change even though the commit claims there is no CSS-processing change.

Useful? React with 👍 / 👎.

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.

1 participant