Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

@svgr/webpack 6.1.2

SVGR webpack loader.
Package summary
Share
4
issues
2
high severity
license
1
meta
1
2
low severity
license
2
7
licenses
199
MIT
10
BSD-2-Clause
8
ISC
4
other licenses
Apache-2.0
1
CC-BY-4.0
1
CC0-1.0
1
BSD-3-Clause
1
Package created
12 Jun 2018
Version published
12 Dec 2021
Maintainers
1
Total deps
221
Direct deps
8
License
MIT

Issues

4

2 high severity issues

high
Recommendation: Read and validate the license terms
via: @babel/core@7.24.5 & others
via: @svgr/plugin-svgo@6.5.1
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: @babel/core@7.24.5 & others
Recommendation: Read and validate the license terms
via: @svgr/plugin-svgo@6.5.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
199 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.5
@babel/generator@7.24.5
@babel/helper-annotate-as-pure@7.22.5
@babel/helper-builder-binary-assignment-operator-visitor@7.22.15
@babel/helper-compilation-targets@7.23.6
@babel/helper-create-class-features-plugin@7.24.5
@babel/helper-create-regexp-features-plugin@7.22.15
@babel/helper-define-polyfill-provider@0.6.2
@babel/helper-environment-visitor@7.22.20
@babel/helper-function-name@7.23.0
@babel/helper-hoist-variables@7.22.5
@babel/helper-member-expression-to-functions@7.24.5
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.24.5
@babel/helper-optimise-call-expression@7.22.5
@babel/helper-plugin-utils@7.24.5
@babel/helper-remap-async-to-generator@7.22.20
@babel/helper-replace-supers@7.24.1
@babel/helper-simple-access@7.24.5
@babel/helper-skip-transparent-expression-wrappers@7.22.5
@babel/helper-split-export-declaration@7.24.5
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.24.5
@babel/helper-validator-option@7.23.5
@babel/helper-wrap-function@7.24.5
@babel/helpers@7.24.5
@babel/highlight@7.24.5
@babel/parser@7.24.5
@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.24.5
@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1
@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.24.1
@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.24.1
@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2
@babel/plugin-syntax-async-generators@7.8.4
@babel/plugin-syntax-class-properties@7.12.13
@babel/plugin-syntax-class-static-block@7.14.5
@babel/plugin-syntax-dynamic-import@7.8.3
@babel/plugin-syntax-export-namespace-from@7.8.3
@babel/plugin-syntax-import-assertions@7.24.1
@babel/plugin-syntax-import-attributes@7.24.1
@babel/plugin-syntax-import-meta@7.10.4
@babel/plugin-syntax-json-strings@7.8.3
@babel/plugin-syntax-jsx@7.24.1
@babel/plugin-syntax-logical-assignment-operators@7.10.4
@babel/plugin-syntax-nullish-coalescing-operator@7.8.3
@babel/plugin-syntax-numeric-separator@7.10.4
@babel/plugin-syntax-object-rest-spread@7.8.3
@babel/plugin-syntax-optional-catch-binding@7.8.3

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
10 Packages, Including:
css-select@4.3.0
css-what@6.1.0
domelementtype@2.3.0
domhandler@4.3.1
domutils@2.8.0
entities@2.2.0
entities@4.5.0
esutils@2.0.3
nth-check@2.1.1
regjsparser@0.9.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
@trysound/sax@0.2.0
boolbase@1.0.0
electron-to-chromium@1.4.754
lru-cache@5.1.1
picocolors@1.0.0
semver@6.3.1
yallist@3.1.1
yaml@1.10.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
@ampproject/remapping@2.3.0

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001615

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
mdn-data@2.0.14

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map@0.6.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

8
All Dependencies CSV
β“˜ This is a list of @svgr/webpack 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@babel/core7.24.5763.27 kBMIT
prod peer
1
1
@babel/plugin-transform-react-constant-elements7.24.123.02 kBMIT
prod
1
1
@babel/preset-env7.24.5229.71 kBMIT
prod
1
1
@babel/preset-react7.24.111.93 kBMIT
prod
1
1
@babel/preset-typescript7.24.120.98 kBMIT
prod
1
1
@svgr/core6.5.16.87 kBMIT
prod peer
1
1
@svgr/plugin-jsx6.5.14.48 kBMIT
prod
1
1
@svgr/plugin-svgo6.5.13.37 kBMIT
prod
2
2

Visualizations

Frequently Asked Questions

What does @svgr/webpack do?

The @svgr/webpack is a powerful, developer-friendly Webpack loader for the SVGR. Its main duty is to transform SVG files into React components, simplifying the process of utilizing SVG-based images and vector graphics into React applications. This aids in a smoother workflow for developers while also helping in enhanced performance and optimization of React-based applications.

How do you use @svgr/webpack?

To incorporate @svgr/webpack into a project, begin by installing it via npm using the command npm install @svgr/webpack --save-dev. Once installed, set the appropriate configurations in your webpack.config.js file to include @svgr/webpack. A standard usage pattern looks like:

{
  test: /\.svg$/,
  use: ['@svgr/webpack'],
}

While using within your React application:

import Star from './star.svg'

const App = () => (
  <div>
    <Star />
  </div>
)

It's also possible to pass proprietary configurations, use @svgr/webpack with url-loader or file-loader, or even apply a custom Babel transformation if desired. The configurations can be quite flexible to suit specific project needs.

{
  test: /\.svg$/,
  use: [
    {
      loader: '@svgr/webpack',
      options: {
        native: true,
      },
    },
  ],
}

The loader can also handle SVG files being requested from CSS, Sass, or Less files, giving developers ubiquitous control over SVG usage across the entire application.

Where are the @svgr/webpack docs?

For extensive documentation detailing usage, configurations, and other relevant information, anyone can visit the package's GitHub page. With an active development community behind @svgr/webpack, the GitHub page offers comprehensive documentation, regular updates, and valuable community insights, making it the ultimate resource for anyone seeking to learn more about @svgr/webpack.