Skip to content

Commit dd23c8a

Browse files
committed
fix: strip .ts extension when importing components (#112)
1 parent b977c94 commit dd23c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/component/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function (options: ComponentOptions): Rule {
6464
return tree;
6565
}
6666

67-
const componentPath = componentInfo.classPath;
67+
const componentPath = componentInfo.classPath.replace(/\.ts$/, '');
6868
const componentDir = dirname(componentPath);
6969
if (platformUse.useWeb) {
7070
const webModule = findModule(tree, options, componentDir, extensions.web);

0 commit comments

Comments
 (0)