vihanb / babel-plugin-wildcard

Wildcard imports import a directories JS files
MIT License
186 stars 27 forks source link

Support for sub-directories, to resolve Issue #27 #33

Closed louislva closed 4 years ago

louislva commented 5 years ago

With this change, if you add "" as a file extension, it will scan the directory for other files/directories and structure them like this:

{
  folderA: {
    fileA: 'something',
    fileB: 'something else',
  },
  fileA: 'root level file with something in it',
}
louislva commented 5 years ago

@vihanb mind taking a look at this? Thanks :)