We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7fcd78 commit caeefb2Copy full SHA for caeefb2
docs/.vitepress/vite-plugin.mts
@@ -74,12 +74,11 @@ function transformRequire(code: string) {
74
return (
75
// eslint-disable-next-line prefer-template
76
[...modules]
77
- // eslint-disable-next-line arrow-body-style
78
- .map(([id, moduleString]) => {
79
- return `import * as __temp_${id} from ${moduleString};
+ .map(
+ ([id, moduleString]) => `import * as __temp_${id} from ${moduleString};
80
const ${id} = () => __temp_${id}.default || __temp_${id};
81
`
82
- })
+ )
83
.join('') +
84
';\n' +
85
replaced
0 commit comments