|
|
@@ -38,14 +38,14 @@ declare type Install<T> = T & {
|
|
|
install(app: App): void;
|
|
|
};
|
|
|
`;
|
|
|
- const start = 'declare const _default:';
|
|
|
- const end = ';\nexport default _default;\n';
|
|
|
+ const start = 'declare const _sfc_main:';
|
|
|
+ const end = ';\nexport default _sfc_main;\n';
|
|
|
const remain = `
|
|
|
declare module 'vue' {
|
|
|
interface GlobalComponents {
|
|
|
Nut${Object.keys(input).find(
|
|
|
(item: string) => item.toLowerCase() === filePath.split('/').slice(-2)[0]
|
|
|
- )}: typeof _default;
|
|
|
+ )}: typeof _sfc_main;
|
|
|
}
|
|
|
}
|
|
|
`;
|