@rspress/core 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/runtime/App.d.ts +7 -5
- package/dist/runtime/App.js +16 -3
- package/dist/runtime/clientEntry.d.ts +1 -1
- package/dist/runtime/ssrEntry.d.ts +3 -3
- package/package.json +16 -17
- package/src/runtime/App.tsx +32 -19
package/dist/index.js
CHANGED
|
@@ -4354,12 +4354,12 @@ async function globalUIComponentsVMPlugin(context) {
|
|
|
4354
4354
|
const moduleContent = globalComponents.map((source) => {
|
|
4355
4355
|
const name = `Comp_${index}`;
|
|
4356
4356
|
if (Array.isArray(source)) {
|
|
4357
|
-
return `import ${name} from
|
|
4357
|
+
return `import ${name} from ${JSON.stringify(source[0])};
|
|
4358
4358
|
const Props_${index++} = ${JSON.stringify(source[1])};
|
|
4359
4359
|
`;
|
|
4360
4360
|
} else {
|
|
4361
4361
|
index++;
|
|
4362
|
-
return `import ${name} from
|
|
4362
|
+
return `import ${name} from ${JSON.stringify(source)};
|
|
4363
4363
|
`;
|
|
4364
4364
|
}
|
|
4365
4365
|
}).concat(
|
|
@@ -4873,6 +4873,7 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
|
|
|
4873
4873
|
]
|
|
4874
4874
|
},
|
|
4875
4875
|
html: {
|
|
4876
|
+
title: config?.title,
|
|
4876
4877
|
favicon: normalizeIcon(config?.icon),
|
|
4877
4878
|
template: path10.join(PACKAGE_ROOT, "index.html")
|
|
4878
4879
|
},
|
|
@@ -5240,7 +5241,8 @@ async function bundle(docDirectory, config, pluginDriver, enableSSG) {
|
|
|
5240
5241
|
output: {
|
|
5241
5242
|
distPath: {
|
|
5242
5243
|
root: `${outputDir}/ssr`
|
|
5243
|
-
}
|
|
5244
|
+
},
|
|
5245
|
+
disableMinimize: true
|
|
5244
5246
|
},
|
|
5245
5247
|
tools: {
|
|
5246
5248
|
rspack(options2) {
|