@vixt/core 0.6.1 → 0.6.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/node/index.mjs +4 -2
- package/package.json +1 -1
package/dist/node/index.mjs
CHANGED
|
@@ -482,19 +482,21 @@ var virtual_app_config_default = defineVixtModule({
|
|
|
482
482
|
i++;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
const { baseURL = "/", rootId = "app" } = vixt.options.app ?? {};
|
|
486
485
|
return {
|
|
487
486
|
name: name$3,
|
|
488
487
|
resolveId(id) {
|
|
489
488
|
if (id === virtualModuleId$2) return resolvedVirtualModuleId$2;
|
|
490
489
|
},
|
|
491
490
|
load(id) {
|
|
492
|
-
if (id === resolvedVirtualModuleId$2)
|
|
491
|
+
if (id === resolvedVirtualModuleId$2) {
|
|
492
|
+
const { baseURL = "/", rootId = "app" } = vixt.options.app ?? {};
|
|
493
|
+
return `
|
|
493
494
|
import { defu } from 'defu'
|
|
494
495
|
${appConfigsImportTemplate}
|
|
495
496
|
const appConfig = defu(${appConfigsMergeTemplate}{ baseURL: '${baseURL}', rootId: '${rootId}' })
|
|
496
497
|
export default appConfig
|
|
497
498
|
`;
|
|
499
|
+
}
|
|
498
500
|
}
|
|
499
501
|
};
|
|
500
502
|
}
|