@forsakringskassan/docs-generator 3.0.3 → 3.1.0

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.
@@ -1807,8 +1807,14 @@ ${lines.join("\n")}`,
1807
1807
  });
1808
1808
  return compiledStyle.code;
1809
1809
  }).join("\n");
1810
- let sourcecode = `import { setup } from "${setupPath}";
1810
+ let sourcecode = ``;
1811
+ if (setupPath) {
1812
+ sourcecode += `import { setup } from "${setupPath}";
1811
1813
  `;
1814
+ } else {
1815
+ sourcecode += `import { createApp } from "vue"
1816
+ `;
1817
+ }
1812
1818
  let bindings = void 0;
1813
1819
  if (descriptor.script || descriptor.scriptSetup) {
1814
1820
  const script = compileScript(descriptor, {
@@ -1865,12 +1871,18 @@ ${lines.join("\n")}`,
1865
1871
  sourcecode += `exampleComponent.__scopeId = "${scopeId}";
1866
1872
  `;
1867
1873
  }
1868
- sourcecode += `
1874
+ if (setupPath) {
1875
+ sourcecode += `
1869
1876
  setup({
1870
1877
  rootComponent: exampleComponent,
1871
1878
  selector: "${selector}"
1872
1879
  });
1873
1880
  `;
1881
+ } else {
1882
+ sourcecode += `
1883
+ createApp(exampleComponent).mount(selector);
1884
+ `;
1885
+ }
1874
1886
  const markup = (
1875
1887
  /* HTML */
1876
1888
  `
@@ -1892,4 +1904,4 @@ setup({
1892
1904
  var export_vuePlugin = import_esbuild_plugin_vue3.default;
1893
1905
 
1894
1906
  export { export_vuePlugin as e, generateCode as g };
1895
- //# sourceMappingURL=vue3-RC792pPN.mjs.map
1907
+ //# sourceMappingURL=vue3-CnvFixWY.mjs.map