diff --git a/build/types-definitions.ts b/build/types-definitions.ts index fd09e4ceb2..def400572d 100644 --- a/build/types-definitions.ts +++ b/build/types-definitions.ts @@ -26,6 +26,7 @@ export const generateTypesDefinitions = async () => { paths: { '@element-plus/*': ['packages/*'], }, + preserveSymlinks: true, }, tsConfigFilePath: TSCONFIG_PATH, skipAddingFilesFromTsConfig: true, diff --git a/tsconfig.json b/tsconfig.json index c00bbb413b..1fc5e27373 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,8 +13,7 @@ "lib": ["ES2018", "DOM"], "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "preserveSymlinks": true + "resolveJsonModule": true }, "include": ["packages"], "exclude": ["node_modules", "**/__test?__", "**/dist"]