Replies: 3 comments
-
|
@chioio did you ever figure out the answer to this question? Running into the same issue here. |
Beta Was this translation helpful? Give feedback.
-
|
When I saw this discussion, I suddenly realized that I didn't even know if importing index.js from a folder is an ES6+ feature or a Node.js feature...... resolveId(id, importer) {
const abs = resolve(dirname(importer), id)
const path = resolve(abs, `./index.vue`)
if (existsSync(path))
return { id: path }
} |
Beta Was this translation helpful? Give feedback.
-
|
I just made a plugin to handle that, hope it can solve your problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to import component index.vue just like this:
import ComponentName from 'components/ComponentName?Beta Was this translation helpful? Give feedback.
All reactions