Skip to content

Commit 04790bb

Browse files
committed
chore: update
1 parent 37bc7ee commit 04790bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/plugin-dts/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,24 @@ export const pluginDts = (options: PluginDtsOptions = {}): RsbuildPlugin => ({
111111
childProcesses.push(childProcess);
112112

113113
const { cleanDistPath } = config.output;
114-
114+
console.time(`clean dts files ${environment.name}`);
115115
// clean dts files
116116
if (cleanDistPath !== false) {
117117
await cleanDtsFiles(dtsEmitPath);
118118
}
119+
console.timeEnd(`clean dts files ${environment.name}`);
119120

121+
console.time(`clean .rslib temp folder ${environment.name}`);
120122
// clean .rslib temp folder
121123
if (options.bundle) {
122124
await clearTempDeclarationDir(cwd);
123125
}
126+
console.timeEnd(`clean .rslib temp folder ${environment.name}`);
124127

128+
console.time(`clean tsbuildinfo file ${environment.name}`);
125129
// clean tsbuildinfo file
126130
await cleanTsBuildInfoFile(tsconfigPath, tsConfigResult);
127-
131+
console.timeEnd(`clean tsbuildinfo file ${environment.name}`);
128132
const dtsGenOptions: DtsGenOptions = {
129133
...options,
130134
dtsEntry,

0 commit comments

Comments
 (0)