Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@sveltejs/vite-plugin-svelte-inspector
Advanced tools
A [Svelte](https://svelte.dev) inspector plugin for [Vite](https://vitejs.dev).
@sveltejs/vite-plugin-svelte-inspector is a Vite plugin that provides an inspector for Svelte components. It allows developers to inspect and debug Svelte components directly within the browser, making it easier to understand component structure, state, and props.
Component Inspection
This feature allows you to inspect Svelte components directly in the browser. By integrating the svelteInspector plugin into your Vite configuration, you can click on components in the browser to see their state, props, and other details.
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';
export default defineConfig({
plugins: [
svelte(),
svelteInspector()
]
});
State and Props Debugging
This feature enables detailed debugging of component state and props. By configuring the svelteInspector plugin with options like showState and showProps, you can view the current state and props of any Svelte component in your application.
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';
export default defineConfig({
plugins: [
svelte(),
svelteInspector({
showState: true,
showProps: true
})
]
});
react-devtools is a set of tools for inspecting the React component hierarchy in the browser. It provides similar functionality to @sveltejs/vite-plugin-svelte-inspector but is specifically designed for React applications. It allows developers to inspect component trees, view state and props, and debug React components.
vue-devtools is a browser extension for debugging Vue.js applications. It offers features similar to @sveltejs/vite-plugin-svelte-inspector, such as inspecting component trees, viewing state and props, and debugging Vue components. It is tailored for Vue.js applications and provides a comprehensive set of tools for Vue developers.
A Svelte inspector plugin for Vite.
// vite.config.js
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';
export default defineConfig({
plugins: [
// the svelte plugin is required to work
svelte(),
svelteInspector({
/* plugin options */
})
]
});
FAQs
A [Svelte](https://svelte.dev) inspector plugin for [Vite](https://vitejs.dev).
We found that @sveltejs/vite-plugin-svelte-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.