Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vite-plugin-performance

Latest version: v2.1.8-dev.20261129.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: icebreaker
529 Stars
33 Forks
38 Versions
27.1K Downloads
TypeScript Repo language

Scan summary

vite-plugin-performance was last scanned on 29 Nov 2026 at version 2.1.8-dev.20261129.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 38 versions; the latest 5 were published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 2.1.8-dev.20261129.1.
  • Downloads: 27,130 downloads.

Versions

38 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.1.8-dev.20261129.1 LATEST 29 Nov 2026 No rules fired
2.1.8-dev.20261128.1 28 Nov 2026 No rules fired
2.1.8-dev.20261127.1 27 Nov 2026 No rules fired
2.1.7 25 Nov 2026 Not shown
2.1.7-dev.20261124.1 24 Nov 2026 Not shown

No rules fired in 2.1.8-dev.20261129.1

Findings

Findings for v2.1.8-dev.20261129.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.1.8-dev.20261129.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

vite-plugin-performance

中文文档

vite-plugin-performance wraps one or more Vite plugins and measures how long each lifecycle hook takes. It keeps the original behaviour intact while giving you actionable performance insights.

✨ Features

  • Wrap a single plugin or an array of plugins with one call
  • Ship with a sensible default hook list, or use hooks: 'all' to cover every function hook
  • Threshold-based reporting so you only see the hooks that really hurt
  • Pluggable logger, formatter, and lifecycle callback for easy monitoring integration
  • Works with asynchronous hooks and still handles errors gracefully

📦 Installation

pnpm add -D vite-plugin-performance
# or npm / yarn / bun

🚀 Quick Start

import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'
import { wrapPlugin } from 'vite-plugin-performance'

export default defineConfig({
  plugins: [
    wrapPlugin(Inspect(), {
      threshold: 50,
      onHookExecution({ pluginName, hookName, duration }) {
        reportToAPM({ pluginName, hookName, duration })
      },
    }),
  ],
})

Whenever a hook crosses the threshold (default 0 ms) you will see output similar to:

[inspect] transform            ⏱   78.42 ms

⚙️ Options

Option Type Default Description
hooks PluginHookName[] \| 'all' DEFAULT_PLUGIN_HOOKS Choose which hooks to wrap; pass 'all' to wrap every function hook
threshold number 0 Only hooks with a duration greater or equal to the threshold are reported
silent boolean false Disable the built-in logger
logger (message, context) => void console.log Custom log writer
formatter (context) => string [plugin] transform ⏱ 12.34 ms Custom message formatter
onHookExecution (context) => void undefined Callback invoked after a hook finishes
clock () => number performance.now or Date.now High-resolution timer, handy for tests

The legacy misspelled option slient is still recognised and mapped to silent.

Default Hook List
import { DEFAULT_PLUGIN_HOOKS } from 'vite-plugin-performance'
// [
//   'options',
//   'config',
//   'configResolved',
//   'configureServer',
//   'buildStart',
//   'resolveId',
//   'load',
//   'transform',
//   'buildEnd',
//   'generateBundle',
//   'renderChunk',
//   'writeBundle',
// ]

🧠 Advanced Usage

Wrap Multiple Plugins
const pluginA = ...
const pluginB = ...

export default defineConfig({
  plugins: wrapPlugin([pluginA, pluginB], { threshold: 20 }),
})
Custom Log Format
wrapPlugin(plugin, {
  formatter({ pluginName, hookName, duration }) {
    return `${pluginName}:${hookName} took ${duration}ms`
  },
  logger(message) {
    myLogger.info(message)
  },
})
Limit to Specific Hooks
wrapPlugin(plugin, {
  hooks: ['resolveId', 'load', 'transform'],
})

🧪 Testing

pnpm --filter vite-plugin-performance test

📄 License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm vite-plugin-performance

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229