@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.
@@ -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) return `
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",