Skip to content

Releases: preactjs/preset-vite

2.1.1

27 Sep 09:48
Compare
Choose a tag to compare
  • Fix compatibility with vite >=2.5

2.1.0

18 Apr 14:17
Compare
Choose a tag to compare

Features

screenshot-after

Bug Fixes

2.0.1

24 Mar 09:44
Compare
Choose a tag to compare

Bug Fixes

2.0.0

15 Mar 19:19
Compare
Choose a tag to compare

Releasing this preset to the public sparked a discussion on how presets should be done in vite in general. It turns out that plugins can be an array of plugins and that this is the intended approach moving forward. Since this project is very new it was deemed better to do this breaking change now, rather than later when the userbase will be significantly larger.

To update change your vite configuration from wrapping your config:

import withPreact from "@preact/preset-vite";

export default withPreact({
  // Your vite config
});

..to moving it to the plugin array:

import { defineConfig } from "vite";
import preact from "@preact/preset-vite";

export default defineConfig({
  plugins: [preact()]
});

Breaking

Bug Fixes

1.0.1

13 Mar 17:46
Compare
Choose a tag to compare

Bug Fixes

Maintenance