vihanb / babel-plugin-wildcard

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

Adding it to plugins breaks my entire app. #39

Open AlexMcConnell opened 4 years ago

AlexMcConnell commented 4 years ago

I have a very barebones app for doing a simple code example, and adding this makes all of my imports return undefined;

package.json:

"dependencies": {
    "@babel/preset-env": "^7.9.6",
    "babel-plugin-wildcard": "^6.0.0",
    "jest": "^26.0.1"
  }

.babelrc:

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "esmodules": true
        }
      }
    ]
  ],
  "plugins": [
    "wildcard"
  ]
}