Releases: preactjs/preset-vite
Releases · preactjs/preset-vite
2.9.2
2.9.1
Bug Fixes
- fix: Ensure
preact
is optimized by Vite by @rschristian in #137 - fix: Support empty string returns in prerenderer by @rschristian in #139
- fix: Prerender data API by @rschristian in #141
- fix: unable to find TS types under ESM by @marvinhagemeister in #142
- fix: Provide original, unpatched fetch impl on globalThis by @rschristian in #140
Maintenance
- chore: Fix
"repository"
field in pkg.json by @rschristian in #135 - chore: Remove unused resolve dependency by @bluwy in #136
New Contributors
Full Changelog: 2.9.0...2.9.1
2.9.0
Features
- Add preview middleware, fixing routing of prerendered HTML files by @rschristian in #132
Fixes
- Support
.cjs
&.mjs
extensions by @rschristian in #129 location.toString
in prerender by @rschristian in #131
Maintenance
- Bump lockfile version to v3 by @rschristian in #133
Full Changelog: 2.8.3...2.9.0
2.8.3
What's Changed
- fix: Devtool flag inconsistencies by @rschristian in #113
- refactor: Use ESBuild in prod if a user does not require Babel by @rschristian in #114
- fix: Ensure
stack-trace
works w/ CJS build by @rschristian in #116 - fix: Ensure sourcemap comments are stripped too by @rschristian in #118
- fix: Sourcemap regex by @rschristian in #120
- Add @babel/code-frame as a dependency by @atikenny in #122
- docs: Fix API mistake in prerender example & show that iso will discover links automatically by @rschristian in #123
- fix: Stub out
__VITE_PRELOAD__
during prerender by @rschristian in #126 - 2.8.3 by @rschristian in #127
New Contributors
Full Changelog: 2.8.2...2.8.3
2.8.2
What's Changed
- fix: Normalize URLs w/ trailing slashes by @rschristian in #104
- feat: Return proper
Response
from patchedfetch
during prerender by @rschristian in #105 - feat: Better prerender errors by @rschristian in #107
- refactor: Clean sourcemaps in newer Vite versions by @rschristian in #109
Full Changelog: 2.8.1...2.8.2
2.8.1
What's Changed
- refactor: Determine prerender script through script attr, rather than lexer by @rschristian in #97
Full Changelog: 2.8.0...2.8.1
2.8.0
What's Changed
- refactor: Disable
transform-hook-names
if devtools aren't enabled by @rschristian in #95 - feat: prerender plugin by @rschristian in #86
Full Changelog: 2.7.0...2.8.0
2.7.0
Features
- Bump peer-depencies to support Vite 5.0.0 and onwards #90 Thanks @JoviDeCroock
Fixes
- Silence Rollup's module-level directives warning #88 Thanks @rschristian
2.6.0
2.5.0
- Update peerDependencies to support Vite 4 by @marco-prontera in #69
- Add some simple tests and GH workflow by @andrewiggins in #66
- Upgrade TypeScript target to ES2019 by @andrewiggins in #67
- Provide options to disable devtools and prefresh by @liamdon in #65
- Mention automatic aliasing as feature in ReadMe by @rschristian in #63