@builder.io/vite-plugin-jsx-loc weekly downloads statistics
By builder.io (3 listings) · npm · Vite plugins
A Vite plugin that adds location data attributes to JSX elements
@builder.io/vite-plugin-jsx-loc has 411,574 recorded weekly downloads on npm, an increase of 30.2% over the past 30 days, ranking #427 of 3,247 tracked listings.
About @builder.io/vite-plugin-jsx-loc
vite-plugin-jsx-loc
A Vite plugin that adds location data attributes to JSX elements for debugging and development purposes.
Installation
npm install @builder.io/vite-plugin-jsx-loc
# or
yarn add @builder.io/vite-plugin-jsx-loc
# or
pnpm add @builder.io/vite-plugin-jsx-loc
Usage
Add the plugin to your vite.config.ts:
import { defineConfig } from 'vite';
import { jsxLocPlugin } from '@builder.io/vite-plugin-jsx-loc';
export default defineConfig({
plugins: [jsxLocPlugin()],
});
This will add a data-loc attribute to all JSX elements in your code, containing the relative file path and line number where the element is defined. For example:
// Input: src/components/Button.tsx
export function Button() {
return <button>Click me</button>;
}
// Output (during development):
export function Button() {
return <button data-loc="src/components/Button.tsx:2">Click me</button>;
}
Features
- Adds source location information to JSX elements
- Works with both
.jsxand.tsxfiles - Skips processing of
node_modules - Preserves source maps
- Minimal performance impact
- No configuration required
License
MIT
Description from the npm listing.
- vite-plugin
- jsx
- debug
- development
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Vite plugins plugins
All 20 @builder.io/vite-plugin-jsx-loc alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@builder.io/vite-plugin-jsx-loc. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.