Software Alternatives & Reviews

When Vite ignores your Browserslist configuration

Vite PostCSS esbuild
  1. 1
    Next Generation Frontend Tooling
    Pricing:
    • Open Source
    I’m a long time user of Browserslist and Vite and I was pretty convinced they paired very-well. It seems to be the case for both CSS and JavaScript output, but it actually is not for JavaScript.

    #Software Development #Web Frameworks #Developer Tools 377 social mentions

  2. Increase code readability. Add vendor prefixes to CSS rules using values from Can I Use. Autoprefixer will use the data based on current browser popularity and property support to apply prefixes for you.
    Pricing:
    • Open Source
    Actually, Vite doesn’t support Browserslist at all: the only reason it “seems” to work well with CSS is because Vite uses PostCSS, which itself natively uses Browserslist. We could say that Vite supports Browserslist by proxy, for CSS.

    #Developer Tools #Design Tools #CSS Framework 39 social mentions

  3. An extremely fast JavaScript bundler and minifier
    Pricing:
    • Open Source
    Weirdly, it took me ages to notice the JavaScript transformations done by Vite (using ESBuild under the hood) always produce the same result, no matter the content of your browserslist file. Whoops!

    #JS Build Tools #Web Application Bundler #Project Management 120 social mentions

Discuss: When Vite ignores your Browserslist configuration

Log in or Post with