babel-plugin-wildcard
babel-plugin-wildcard copied to clipboard
can't make it work with a directory of .svg file
i have a directory : |- dir |- a.svg |- b.svg |- c.svg when i do import * as Items from './dir'; i got a undefined object.
Did you make sure to add svg under 'exts' option?: https://github.com/vihanb/babel-plugin-wildcard#exts
i add it in .babelrc file and i still getting undefined object.
Very weird... can you copy and paste the code generated by Babel?
import * as svgList from './svg/*'
export default svgList
same problem
This relative module was not found:
* ./svg/* in ./static/svgs.js```
Does this plugin even work? @AndreiSoroka did you ever find a solution to your problem?
@JoNilsson , sorry. I didn't remember...
Hey, @AndreiSoroka. I appreciate the reply.
Pulled https://github.com/vihanb/babel-plugin-wildcard/pull/33 this fork, and solved my particular issue, with Subdirectories. Frustrating a little bit.
Yo @vihanb do you need a hand with the maintenance?
Merged #33. I don't have too much time for maintaining this though, so if anyone is interested in picking it up. Feel free to make a PR, and I'll review+grant npm/github perms