We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f726c commit facef7aCopy full SHA for facef7a
packages/devtools/src/integrations/plugin-metrics.ts
@@ -26,10 +26,10 @@ globalThis.${PAYLOAD_KEY} = []
26
function ${WRAPPER_KEY} (plugin, src) {
27
if (!plugin)
28
return plugin
29
-
30
- return defineNuxtPlugin(async (...args) => {
+
+ return defineNuxtPlugin(async function (...args) {
31
const start = performance.now()
32
- const result = await plugin(...args)
+ const result = await plugin.apply(this, args)
33
const end = performance.now()
34
globalThis.${PAYLOAD_KEY}.push({
35
src,
@@ -38,7 +38,7 @@ function ${WRAPPER_KEY} (plugin, src) {
38
duration: end - start,
39
})
40
return result
41
- })
+ }, plugin.meta)
42
}
43
`
44
0 commit comments