|
|
@ -353,14 +353,18 @@ export async function createVitePressPlugin(
|
|
|
|
return null
|
|
|
|
return null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
generateBundle(_options, bundle) {
|
|
|
|
generateBundle: {
|
|
|
|
|
|
|
|
order: ssr ? null : 'post',
|
|
|
|
|
|
|
|
handler(_options, bundle) {
|
|
|
|
if (ssr) {
|
|
|
|
if (ssr) {
|
|
|
|
this.emitFile({
|
|
|
|
this.emitFile({
|
|
|
|
type: 'asset',
|
|
|
|
type: 'asset',
|
|
|
|
fileName: 'package.json',
|
|
|
|
fileName: 'package.json',
|
|
|
|
source: '{ "private": true, "type": "module" }'
|
|
|
|
source: '{ "private": true, "type": "module" }'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// client build:
|
|
|
|
// client build:
|
|
|
|
// for each .md entry chunk, adjust its name to its correct path.
|
|
|
|
// for each .md entry chunk, adjust its name to its correct path.
|
|
|
|
for (const name in bundle) {
|
|
|
|
for (const name in bundle) {
|
|
|
|