Skip to content

Commit caeefb2

Browse files
committed
chore: update
1 parent d7fcd78 commit caeefb2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/.vitepress/vite-plugin.mts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ function transformRequire(code: string) {
7474
return (
7575
// eslint-disable-next-line prefer-template
7676
[...modules]
77-
// eslint-disable-next-line arrow-body-style
78-
.map(([id, moduleString]) => {
79-
return `import * as __temp_${id} from ${moduleString};
77+
.map(
78+
([id, moduleString]) => `import * as __temp_${id} from ${moduleString};
8079
const ${id} = () => __temp_${id}.default || __temp_${id};
8180
`
82-
})
81+
)
8382
.join('') +
8483
';\n' +
8584
replaced

0 commit comments

Comments
 (0)