Skip to content

Commit 8d9a7a8

Browse files
feat!: update to vite 5
1 parent f67a9dc commit 8d9a7a8

File tree

3 files changed

+1815
-2010
lines changed

3 files changed

+1815
-2010
lines changed

.changeset/fair-rabbits-double.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'vite-plugin-entrypoints': major
3+
---
4+
5+
Update to Vite 5
6+
7+
This major version updates the development dependency Vite to version 5. From now on the plugin is only tested with Vite 5 or higher.
8+
9+
Please make sure to update your project to use an appropriate version of Vite.

package.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,36 @@
2121
"README.md"
2222
],
2323
"type": "module",
24-
"main": "dist/index.cjs",
25-
"module": "dist/index.js",
26-
"types": "dist/index.d.ts",
24+
"main": "./dist/index.cjs",
25+
"module": "./dist/index.js",
26+
"types": "./dist/index.d.ts",
27+
"exports": {
28+
".": {
29+
"types": "./dist/index.d.ts",
30+
"require": "./dist/index.cjs",
31+
"default": "./dist/index.js"
32+
}
33+
},
2734
"scripts": {
2835
"check": "tsc",
2936
"build": "tsup src/index.ts --format esm,cjs --sourcemap --dts",
3037
"publish": "changeset publish",
3138
"test:build": "vite build tests"
3239
},
3340
"dependencies": {
34-
"glob": "^10.3.3"
41+
"glob": "^11.0.0"
3542
},
3643
"devDependencies": {
37-
"@changesets/cli": "^2.26.2",
38-
"@tsconfig/node18": "^18.2.0",
44+
"@changesets/cli": "^2.27.7",
45+
"@tsconfig/node18": "^18.2.4",
3946
"@types/node": "^18.17.3",
40-
"prettier": "^3.0.1",
41-
"tsup": "^7.2.0",
42-
"typescript": "^5.1.6",
43-
"vite": "^4.4.12"
47+
"prettier": "^3.3.3",
48+
"tsup": "^8.2.4",
49+
"typescript": "^5.5.4",
50+
"vite": "^5.4.1"
4451
},
4552
"engines": {
4653
"node": ">=18",
47-
"pnpm": ">=7"
54+
"pnpm": ">=9"
4855
}
4956
}

0 commit comments

Comments
 (0)