esbuild-plugin-svgr
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -9,3 +9,3 @@ module.exports = (options = {}) => ({ | ||
const svg = await fs.promises.readFile(args.path, 'utf8'); | ||
const contents = await svgr(svg, { ...options }); | ||
const contents = await svgr(svg, { ...options }, { filePath: args.path }); | ||
return { | ||
@@ -12,0 +12,0 @@ contents, |
{ | ||
"name": "esbuild-plugin-svgr", | ||
"description": "A plugin for esbuild that enables importing *.svg files as React components.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Kazi Jawad", |
@@ -38,3 +38,3 @@ # esbuild-plugin-svgr | ||
4. Pass in optional [supported](https://github.com/gregberge/svgr/blob/master/packages/core/src/config.js#L3) configuration options: | ||
4. Pass in optional [supported](https://react-svgr.com/docs/options/) configuration options: | ||
```js | ||
@@ -41,0 +41,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
3917