Skip to content

Commit 89e94ea

Browse files
committed
feat: add framework version
1 parent a806787 commit 89e94ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ async function analyze (originalUrl, options = {}) {
180180
getNuxtMeta(context),
181181
getNuxtModules(context)
182182
])
183+
infos.framework.version = await page.evaluate(`__unctx__?.get('nuxt-app')?.use()?.versions?.nuxt`)
184+
if (!infos.framework.version && infos.vueVersion) {
185+
infos.framework.version = infos.vueVersion.split('.')[0]
186+
}
183187
infos.isStatic = meta.static
184188
infos.hasSSR = meta.ssr
185189
infos.frameworkModules = modules

0 commit comments

Comments
 (0)