Skip to content

@vanilla-extract/vite-plugin@4.0.0

Compare
Choose a tag to compare
@vanilla-extract-ci vanilla-extract-ci released this 28 Jan 23:42
· 95 commits to master since this release
61d0d46

Major Changes

  • #1264 e531c41 Thanks @mrm007! - The Vite plugin now uses a newer, faster, Vite-based compiler by default.

    The new compiler uses vite-node to parse and extract CSS from .css.ts files. This comes with all the benefits of using Vite, faster builds and the ability to use Vite plugins.

    The new compiler has been used in Remix ever since support for Vanilla Extract was introduced.

  • #1264 e531c41 Thanks @mrm007! - The behaviour previously known as emitCssInSsr has been turned on by default. The emitCssInSsr option has been removed.

    This means that the CSS emitted by the plugin is now processed by Vite, so the plugin no longer needs to resolve PostCSS plugins and process the CSS output itself.

  • #1264 e531c41 Thanks @mrm007! - The esbuildOptions option has been removed as we are no longer using esbuild internally

  • #1264 e531c41 Thanks @mrm007! - Drop support for Vite < 4

Patch Changes