PC-questions-answersnuxt/.output/server/chunks/app/static/island-renderer-ce17c7fc.mjs
2024-07-30 12:28:12 +08:00

48 lines
1.2 KiB
JavaScript

import { defineComponent, onErrorCaptured, createVNode } from 'vue';
import { c as createError } from '../server.mjs';
import '../../nitro/node-server.mjs';
import 'node:http';
import 'node:https';
import 'fs';
import 'path';
import 'node:fs';
import 'node:url';
import 'unhead';
import '@unhead/shared';
import '@vueuse/core';
import '@vue/shared';
import 'lodash-unified';
import 'vue/server-renderer';
import '@popperjs/core';
import 'axios';
const components_islands = {};
const islandComponents = /* @__PURE__ */ Object.freeze({
__proto__: null,
default: components_islands
});
const islandRenderer = defineComponent({
props: {
context: {
type: Object,
required: true
}
},
setup(props) {
const component = islandComponents[props.context.name];
if (!component) {
throw createError({
statusCode: 404,
statusMessage: `Island component not found: ${props.context.name}`
});
}
onErrorCaptured((e) => {
console.log(e);
});
return () => createVNode(component || "span", { ...props.context.props, "nuxt-ssr-component-uid": "" });
}
});
export { islandRenderer as default };
//# sourceMappingURL=island-renderer-ce17c7fc.mjs.map