Closed chamberlainpi closed 6 years ago
Nevermind! Had to read more near the bottom regarding the "exts" option. What ended up fixing it was configuring my .babelrc
file like this:
{
"presets": ["@babel/preset-env"],
"plugins": [['wildcard', {
'exts': ["js", "vue"] <-- this guy!
}]
]
}
...then boom! Everything fell into place. Thanks for this awesome plugin!
I placed this in my Webpack configuration (and I also have the
.babelrc
config file containing the"plugins": ["wildcard"]
setting, but still no dice.Then in my
entry.js
file, I'm trying to populate a "pages" variable with all the*.vue
files with this, but it fails (results an empty object):import * as pages from '../vue/page-*';
Do I have to add some file-extensions to the config or something?