Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.