
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
esbuild-plugin-svgr
Advanced tools
A plugin for esbuild that enables importing *.svg files as React components.
A plugin for esbuild that adds support for *.svg
file imports as React components. The plugin is built on top of SVGR.
npm install --save-dev esbuild-plugin-svgr
# or use yarn
yarn add --dev esbuild-plugin-svgr
import esbuild from 'esbuild'
import svgr from 'esbuild-plugin-svgr'
await esbuild.build({
plugins: [
svgr(),
],
})
*.svg
file from JavaScript:import Icon from './icon.svg';
function App() {
return (
<div>
<Icon />
</div>
);
}
esbuild.build({
plugins: [
svgr({ ref: true }),
],
});
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
A plugin for esbuild that enables importing *.svg files as React components.
The npm package esbuild-plugin-svgr receives a total of 42,998 weekly downloads. As such, esbuild-plugin-svgr popularity was classified as popular.
We found that esbuild-plugin-svgr demonstrated a healthy version release cadence and project activity because the last version was released less than 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.