
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
vite-plugin-vue2-svg
Advanced tools
load SVG files as Vue components, for Vue2.x only.
yarn add vite-plugin-vue2-svg
# or
npm install vite-plugin-vue2-svg
// vite.config.ts
import { defineConfig } from "vite";
import { createVuePlugin } from "vite-plugin-vue2"; // vue2 plugin
import { createSvgPlugin } from "vite-plugin-vue2-svg";
export default defineConfig({
plugins: [createVuePlugin(), createSvgPlugin()],
});
<!-- App.vue -->
<template>
<Icon />
</template>
<script>
import Icon from "./icon.svg";
export default {
components: {
Icon,
},
};
</script>
If you want disabled this plugin for specific file, just add ?raw when you import.
import Icon from "./icon.svg?raw"; // svg file import without transform
createSvgPlugin({
svgoConfig: SVGO.Options, // check https://github.com/svg/svgo
});
FAQs
load SVG files as Vue components, for Vue2.x only.
The npm package vite-plugin-vue2-svg receives a total of 8,204 weekly downloads. As such, vite-plugin-vue2-svg popularity was classified as popular.
We found that vite-plugin-vue2-svg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.