Skip to content

Commit 55b7af3

Browse files
Version Packages
1 parent 4943472 commit 55b7af3

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

.changeset/clean-types-resolve.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/many-hotels-make.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/vite/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @prefresh/vite
22

3+
## 4.0.0
4+
5+
### Major Changes
6+
7+
- [`f1a23d05ed8910a0c927ec09ffd9ec463c6027b0`](https://github.com/preactjs/prefresh/commit/f1a23d05ed8910a0c927ec09ffd9ec463c6027b0) [#614](https://github.com/preactjs/prefresh/pull/614) Thanks [@LoganDark](https://github.com/LoganDark)! - Make Babel an optional peer dependency
8+
9+
`@babel/core` and `@prefresh/babel-plugin` are no longer hard dependencies of `@prefresh/vite`. Projects using modern versions of Vite no longer require Babel in their dependency tree.
10+
11+
### Patch Changes
12+
13+
- [`4bbe51f6d99469f08f6c6726a57f87929d009860`](https://github.com/preactjs/prefresh/commit/4bbe51f6d99469f08f6c6726a57f87929d009860) [#626](https://github.com/preactjs/prefresh/pull/626) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Fix type resolution under `moduleResolution: NodeNext` and Deno
14+
15+
The `import` condition now resolves to a real ESM entry (`src/index.mjs`) with matching ESM type declarations (`index.d.mts` using `export default`), while `require` keeps the CommonJS declarations (`index.d.ts` using `export =`). Previously the ESM entry was typed with a CJS-style `export =` declaration, which TypeScript 6 / Deno 2.8.3+ reject as a hard error.
16+
17+
Also inline the `FilterPattern` type instead of importing it from `@rollup/pluginutils`, whose types do not resolve under NodeNext.
18+
319
## 3.0.1
420

521
### Patch Changes

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prefresh/vite",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"description": "A vite plugin to enable fast-refresh for Preact components.",
55
"main": "src/index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)