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 Apr 11, 2024 via pnpm

@svgr/webpack 4.3.3

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

Issues

7

4 high severity issues

high
Recommendation: Upgrade to version 2.0.1 or later
via: @svgr/plugin-svgo@4.3.1
Recommendation: Read and validate the license terms
via: @babel/core@7.24.4 & others
via: @svgr/plugin-svgo@4.3.1
via: @svgr/plugin-svgo@4.3.1
Collapse
Expand

3 low severity issues

low
Recommendation: Read and validate the license terms
via: @svgr/plugin-svgo@4.3.1
Recommendation: Read and validate the license terms
via: @svgr/plugin-svgo@4.3.1
Recommendation: Read and validate the license terms
via: @babel/core@7.24.4 & others
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
291 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.4
@babel/generator@7.24.4
@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.4
@babel/helper-create-regexp-features-plugin@7.22.15
@babel/helper-define-polyfill-provider@0.6.1
@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.23.0
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.23.3
@babel/helper-optimise-call-expression@7.22.5
@babel/helper-plugin-utils@7.24.0
@babel/helper-remap-async-to-generator@7.22.20
@babel/helper-replace-supers@7.24.1
@babel/helper-simple-access@7.22.5
@babel/helper-skip-transparent-expression-wrappers@7.22.5
@babel/helper-split-export-declaration@7.22.6
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.22.20
@babel/helper-validator-option@7.23.5
@babel/helper-wrap-function@7.22.20
@babel/helpers@7.24.4
@babel/highlight@7.24.2
@babel/parser@7.24.4
@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.24.4
@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@2.1.0
css-what@3.4.2
domelementtype@1.3.1
domelementtype@2.3.0
domutils@1.7.0
entities@2.2.0
esprima@4.0.1
esutils@2.0.3
nth-check@1.0.2
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
7 Packages, Including:
boolbase@1.0.0
electron-to-chromium@1.4.733
lru-cache@5.1.1
picocolors@1.0.0
sax@1.2.4
semver@6.3.1
yallist@3.1.1

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
2 Packages, Including:
mdn-data@2.0.14
mdn-data@2.0.4

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
2 Packages, Including:
source-map@0.6.1
sprintf-js@1.0.3

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.30001608
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.4763.3 kBMIT
prod peer
1
1
@babel/plugin-transform-react-constant-elements7.24.123.02 kBMIT
prod
1
1
@babel/preset-env7.24.4144.73 kBMIT
prod
1
1
@babel/preset-react7.24.111.93 kBMIT
prod
1
1
@svgr/core4.3.35.72 kBMIT
prod
1
1
@svgr/plugin-jsx4.3.33.16 kBMIT
prod
1
1
@svgr/plugin-svgo4.3.13.04 kBMIT
prod
3
2
loader-utils1.4.28.18 kBMIT
prod

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.