Preset for using Preact with the vite bundler
MIT License
Bot releases are hidden (Show)
Response
from patched fetch
during prerender by @rschristian in https://github.com/preactjs/preset-vite/pull/105
Full Changelog: https://github.com/preactjs/preset-vite/compare/2.8.1...2.8.2
Published by rschristian 10 months ago
Full Changelog: https://github.com/preactjs/preset-vite/compare/2.8.0...2.8.1
Published by rschristian 10 months ago
transform-hook-names
if devtools aren't enabled by @rschristian in https://github.com/preactjs/preset-vite/pull/95
Full Changelog: https://github.com/preactjs/preset-vite/compare/2.7.0...2.8.0
Published by JoviDeCroock 11 months ago
Published by JoviDeCroock about 1 year ago
Published by JoviDeCroock almost 2 years ago
Published by marvinhagemeister about 2 years ago
Published by marvinhagemeister about 2 years ago
"module": "nodenext"
compatibility by @wight554 in https://github.com/preactjs/preset-vite/pull/48
Published by JoviDeCroock over 2 years ago
Add support for vite 3 https://github.com/preactjs/preset-vite/pull/50 thanks @sapphi-red
Published by marvinhagemeister over 2 years ago
jsx-dev-runtime
for development by @marvinhagemeister in https://github.com/preactjs/preset-vite/pull/41
Published by JoviDeCroock almost 3 years ago
Create safer ending check by not excluding git substring #38 thanks @JoviDeCroock
Published by JoviDeCroock almost 3 years ago
.js
extension when importing utils #30 thanks @dhaigPublished by marvinhagemeister almost 3 years ago
Published by marvinhagemeister about 3 years ago
jsxInject
to automatic jsx-runtime transform (thanks @JoviDeCroock, #25)Full Changelog: https://github.com/preactjs/preset-vite/compare/v2.1.3...v2.1.4
Published by marvinhagemeister about 3 years ago
Published by marvinhagemeister about 3 years ago
Published by marvinhagemeister about 3 years ago
>=2.5
Published by marvinhagemeister over 3 years ago
Published by marvinhagemeister over 3 years ago
Published by marvinhagemeister over 3 years ago
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()]
});
preact/debug
not being injected on windows (#7, thanks @marvinhagemeister)