Skip to content

Commit ba45aef

Browse files
committed
fix(vite): declare @babel/traverse and @babel/types as dependencies
The HMR server (`hmr/server/websocket-ns-m.ts`, `hmr/server/websocket-served-module-helpers.ts`, `hmr/helpers/ast-normalizer.ts`), the Vue configuration and the Vue and Angular flavors import both packages directly, but only `@babel/core`, `@babel/generator` and `@babel/parser` were declared. A project could load the Vite config only while npm happened to hoist the two out of `@babel/core`; an incremental install that nested them instead failed to resolve either package (verified with the ns-octane app on 8.0.9, which had to declare both itself as a workaround). [skip ci]
1 parent 8096d29 commit ba45aef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/vite/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
"@babel/parser": "^7.28.0",
105105
"@babel/plugin-transform-typescript": "^7.28.0",
106106
"@babel/plugin-transform-unicode-property-regex": "^7.25.9",
107+
"@babel/traverse": "^7.28.0",
108+
"@babel/types": "^7.28.0",
107109
"@rollup/plugin-alias": "^6.0.0",
108110
"@rollup/plugin-commonjs": "^29.0.0",
109111
"@rollup/plugin-replace": "^6.0.2",

0 commit comments

Comments
 (0)