Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 08558b4

Browse files
chenjiajun79Single-Dancer
authored andcommittedJun 23, 2025·
chore: prefer for of
1 parent 8de038c commit 08558b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/taro-runtime/rollup.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const formats = [
3030
const configs: RollupOptions[] = []
3131

3232
// 为每种格式创建 JS 和 DTS 配置
33-
formats.forEach((format) => {
33+
for (const format of formats) {
3434
// JS 配置
3535
configs.push({
3636
input: 'src/index.ts',
@@ -63,6 +63,6 @@ formats.forEach((format) => {
6363
output: dtsOutput,
6464
plugins: [dts()],
6565
})
66-
})
66+
}
6767

6868
export default defineConfig(configs)

0 commit comments

Comments
 (0)
Please sign in to comment.