Skip to content

Commit 54ec061

Browse files
authored
fix: use AST to modify error handlers in nitro >= 2.10 (#28)
1 parent a8a1d62 commit 54ec061

File tree

4 files changed

+534
-65
lines changed

4 files changed

+534
-65
lines changed

build.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export default defineBuildConfig({
1414
},
1515
],
1616
declaration: true,
17-
externals: ['#imports', 'h3', 'nitropack', 'nitro-opentelemetry'],
17+
externals: ['#imports', 'h3', 'nitropack', 'nitro-opentelemetry', 'nitropack/kit'],
1818
})

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
"eslint-config-unjs": "^0.3.2",
5656
"h3": "^1.15.1",
5757
"jiti": "^1.21.6",
58+
"nitro-opentelemetry": "link:./",
5859
"nitro-test-utils": "^0.9.0",
5960
"nitropack": "^2.11.1",
6061
"typescript": "^5.6.2",
6162
"unbuild": "^2.0.0",
62-
"vitest": "^2.1.5",
63-
"nitro-opentelemetry": "link:./"
63+
"vitest": "^2.1.5"
6464
},
6565
"packageManager": "pnpm@9.15.4",
6666
"dependencies": {
@@ -77,9 +77,11 @@
7777
"@opentelemetry/semantic-conventions": "^1.28.0",
7878
"consola": "^3.2.3",
7979
"defu": "^6.1.4",
80+
"estree-walker": "^3.0.3",
81+
"exsolve": "^1.0.4",
8082
"magic-string": "^0.30.12",
81-
"mlly": "^1.7.2",
82-
"pathe": "^1.1.2",
83+
"mlly": "^1.7.4",
84+
"pathe": "^2.0.3",
8385
"rollup": "^4.24.0"
8486
},
8587
"peerDependencies": {

0 commit comments

Comments
 (0)