Skip to content

perf!: remove built-in autoprefixer#3035

Merged
chenjiahan merged 2 commits intomainfrom
remove_autoprefixer_0727
Jul 27, 2024
Merged

perf!: remove built-in autoprefixer#3035
chenjiahan merged 2 commits intomainfrom
remove_autoprefixer_0727

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

BREAKING CHANGE: remove built-in autoprefixer and tools.autoprefixer configuration.

Rsbuild now uses Lightning CSS to transform CSS files and adds vendor prefixes, so we no longer need the built-in autoprefixer.

Considering that Lightning CSS has some uncovered edge cases, you can still enable autoprefixer via the postcss configuration file:

// postcss.config.cjs
module.exports = {
  plugins: {
    autoprefixer: {},
  }
}

Related Links

#3034

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@chenjiahan chenjiahan merged commit 365bc05 into main Jul 27, 2024
@chenjiahan chenjiahan deleted the remove_autoprefixer_0727 branch July 27, 2024 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant