diff --git a/src/index.js b/src/index.js index 381b0d3..e68e858 100644 --- a/src/index.js +++ b/src/index.js @@ -180,6 +180,10 @@ async function analyze (originalUrl, options = {}) { getNuxtMeta(context), getNuxtModules(context) ]) + infos.framework.version = await page.evaluate(`__unctx__?.get('nuxt-app')?.use()?.versions?.nuxt`) + if (!infos.framework.version && infos.vueVersion) { + infos.framework.version = infos.vueVersion.split('.')[0] + } infos.isStatic = meta.static infos.hasSSR = meta.ssr infos.frameworkModules = modules