babel-plugin-import-directory
babel-plugin-import-directory copied to clipboard
Specifying extensions make the plugin break
Cannot use "exts"
option
first of all the doc seems wrong on the plugin name (even if it's a fork)
{
"plugins": [
["wildcard", {
"exts": ["js", "es6", "es", "jsx", "javascript"]
}]
]
}
while we have to use
{
"plugins": ["import-directory"]
}
I can't get the plugin to work when i'm using this option
- either like
["wildcard", {"exts": ["js"]}
- or
["import-directory", {"exts": ["js"]}
It can't find any module anymore
Error: Cannot find module './resolvers'
i think its required feature