Skip to content
Source
Sign inSign up
TanStack/router

fix: use h3 alias only in nitro-v2-plugin #5370

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/5370/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 6 changed files with 22 additions and 3 deletions (loading 2).

x
0 of 6 viewed, 6 left
2 additions and 2 deletionspackages/nitro-v2-vite-plugin/package.jsonModified
View file
@@ -40,7 +40,6 @@
},
"type": "module",
"types": "dist/esm/index.d.ts",
- "main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"exports": {
".": {
@@ -61,7 +60,8 @@
},
"dependencies": {
"nitropack": "^2.12.6",
- "pathe": "^2.0.3"
+ "pathe": "^2.0.3",
+ "h3-v1": "npm:h3@^1.15.4"
},
"peerDependencies": {
"vite": ">=7.0.0"
19 additions and 1 deletionpackages/nitro-v2-vite-plugin/src/index.tsModified
View file
@@ -1,3 +1,4 @@
+import { createRequire } from 'node:module'