Skip to content

Commit 3692e28

Browse files
committed
fix(vue): fix missing imports extensions
1 parent 6754742 commit 3692e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-vue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function buildVue(cb) {
2626
.map((word) => word[0].toUpperCase() + word.substr(1))
2727
.join('');
2828
const fileBase = fileName.replace('.vue', '');
29-
componentImports.push(`import f7${componentName} from './components/${fileBase}';`);
29+
componentImports.push(`import f7${componentName} from './components/${fileBase}.js';`);
3030
componentExports.push(`f7${componentName}`);
3131
componentsRegistrations.push(`app.component('f7-${fileBase}', f7${componentName})`);
3232
transformVueComponent(

0 commit comments

Comments
 (0)