esbuild-plugin-svgr
Advanced tools
Comparing version 1.1.0 to 2.0.0
{ | ||
"name": "esbuild-plugin-svgr", | ||
"description": "A plugin for esbuild that enables importing *.svg files as React components.", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
@@ -18,4 +18,4 @@ "author": "Kazi Jawad", | ||
"dependencies": { | ||
"@svgr/core": "^6.5.1" | ||
"@svgr/core": "^8.0.0" | ||
} | ||
} |
@@ -8,2 +8,3 @@ # esbuild-plugin-svgr | ||
1. Install the plugin in your project: | ||
```bash | ||
@@ -16,2 +17,3 @@ npm install --save-dev esbuild-plugin-svgr | ||
2. Add this plugin to your esbuild build script: | ||
```js | ||
@@ -29,2 +31,3 @@ import esbuild from 'esbuild' | ||
3. Import your `*.svg` file from JavaScript: | ||
```js | ||
@@ -43,2 +46,3 @@ import Icon from './icon.svg'; | ||
4. Pass in optional [supported](https://react-svgr.com/docs/options/) configuration options: | ||
```js | ||
@@ -45,0 +49,0 @@ esbuild.build({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4143
59
+ Added@svgr/babel-plugin-add-jsx-attribute@8.0.0(transitive)
+ Added@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(transitive)
+ Added@svgr/babel-plugin-svg-dynamic-title@8.0.0(transitive)
+ Added@svgr/babel-plugin-svg-em-dimensions@8.0.0(transitive)
+ Added@svgr/babel-plugin-transform-react-native-svg@8.1.0(transitive)
+ Added@svgr/babel-plugin-transform-svg-component@8.0.0(transitive)
+ Added@svgr/babel-preset@8.1.0(transitive)
+ Added@svgr/core@8.1.0(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedcosmiconfig@8.3.6(transitive)
+ Addeddot-case@3.0.4(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedlower-case@2.0.2(transitive)
+ Addedno-case@3.0.4(transitive)
+ Addedsnake-case@3.0.4(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@svgr/babel-plugin-add-jsx-attribute@6.5.1(transitive)
- Removed@svgr/babel-plugin-replace-jsx-attribute-value@6.5.1(transitive)
- Removed@svgr/babel-plugin-svg-dynamic-title@6.5.1(transitive)
- Removed@svgr/babel-plugin-svg-em-dimensions@6.5.1(transitive)
- Removed@svgr/babel-plugin-transform-react-native-svg@6.5.1(transitive)
- Removed@svgr/babel-plugin-transform-svg-component@6.5.1(transitive)
- Removed@svgr/babel-preset@6.5.1(transitive)
- Removed@svgr/core@6.5.1(transitive)
- Removed@svgr/hast-util-to-babel-ast@6.5.1(transitive)
- Removed@svgr/plugin-jsx@6.5.1(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removedentities@4.5.0(transitive)
- Removedsvg-parser@2.0.4(transitive)
- Removedyaml@1.10.2(transitive)
Updated@svgr/core@^8.0.0