babel-plugin-import-directory icon indicating copy to clipboard operation
babel-plugin-import-directory copied to clipboard

Specifying extensions make the plugin break

Open Sceat opened this issue 5 years ago • 1 comments

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'

Sceat avatar Dec 19 '19 12:12 Sceat

i think its required feature

satishVekariya avatar Nov 28 '18 12:11 satishVekariya