Commit ba45aef
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments