-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
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
The plugin does not co-operate with babel-plugin-module-resolver #14
Comments
Oops... I guess, I just have not configured it properly. Sorry. |
After playing around for some more time, I believe, this is still a valid issue. The problem is that |
@birdofpreyru a quick hack would be to create a babel preset because they run after plugins. // preset.js
const inlineSvg = require('babel-plugin-inline-react-svg')
export default {
plugins: [
inlineSvg
]
}; |
Yeah this is a plugin ordering issue, and I don't know a good way to resolve it. |
@tkh44 Tried that and didn't work, it partially worked (at least it the code broke somewhere else) when I also added "passPerPreset": true, so I'm not sure if it was a theoretic fix or it actually worked for you, if so could you please share the full configuration code? :). On the other hand I've created a pull request to allow passing an alias configuration to the plugin so it can be used on in conjunction with Pull request: #17 |
Anything new here? Any alternative for React SVGs with babel and alias paths? |
@goranovs I ended up creating my own Babel preset for SVG transformation:
|
Resolution of svg path with the code
does not take into account any path aliases configured with help of
babel-plugin-module-resolver
.The text was updated successfully, but these errors were encountered: