diff --git a/build/gen-type.js b/build/gen-type.js index e7941eff46d23..b353e615dce13 100644 --- a/build/gen-type.js +++ b/build/gen-type.js @@ -37,7 +37,7 @@ fs.readdirSync(libDirPath).forEach(comp => { if(outsideImport.test(imp) || imp.includes('@element-plus/')) { const newImp = imp.replace(outsideImport, (i, c) => { return i.replace(`../${c}`, `../el-${c}`) - }).replace('@element-plus/', '../el-') + }).replace('@element-plus/', '../el-').replace('el-utils', 'utils') fs.writeFileSync(path.resolve(__dirname, '../lib', newCompName, 'index.d.ts'), newImp) } }