We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for this awesome project! I've just upgraded from svgr ^1.6.0 to @svgr/webpack ^4.0.0 and got new Error from console at runtime.
svgr ^1.6.0
@svgr/webpack ^4.0.0
In console I got:
With such svg file as input, which has aria-hidden attribute set.
aria-hidden
<svg aria-hidden="true"> ... </svg>
I loaded it with @svgr/webpack:
@svgr/webpack
{ test: /\.svg$/, use: [{ loader: '@svgr/webpack', options: { svgo: false }, }], },
Not transpile aria-hidden in camel case. Then there should be no errors.
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
## System: - OS: macOS 10.14 - CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz - Memory: 612.10 MB / 16.00 GB - Shell: 5.3 - /bin/zsh ## Binaries: - Node: 10.12.0 - /usr/local/bin/node - Yarn: 1.10.1 - /usr/local/bin/yarn - npm: 6.4.1 - /usr/local/bin/npm ## npmPackages: - @svgr/webpack: ^4.0.0 => 4.0.0
The text was updated successfully, but these errors were encountered:
Please ignore the original title.
Sorry, something went wrong.
fix: correctly transforms data & aria attributes
c15c49a
Closes #221
fix(hast-util-to-babel-ast): correctly transforms data & aria attributes
d3b8996
99711c4
No branches or pull requests
Hi, thanks for this awesome project!
I've just upgraded from
svgr ^1.6.0
to@svgr/webpack ^4.0.0
and got new Error from console at runtime.🐛 Bug Report
In console I got:
![image](https://user-images.githubusercontent.com/7480839/48042052-d8119e00-e1ba-11e8-8e08-519fd92affd3.png)
To Reproduce
With such svg file as input, which has
aria-hidden
attribute set.I loaded it with
@svgr/webpack
:Expected behavior
Not transpile
aria-hidden
in camel case. Then there should be no errors.Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
The text was updated successfully, but these errors were encountered: