42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import { useSSRContext, defineComponent } from 'vue';
|
|
import { ssrRenderSlot } from 'vue/server-renderer';
|
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-cc2b3d55.mjs';
|
|
|
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
props: {
|
|
code: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
language: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
filename: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
highlights: {
|
|
type: Array,
|
|
default: () => []
|
|
},
|
|
meta: {
|
|
type: String,
|
|
default: null
|
|
}
|
|
}
|
|
});
|
|
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
}
|
|
const _sfc_setup = _sfc_main.setup;
|
|
_sfc_main.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/.pnpm/@nuxt+content@2.6.0_rollup@2.79.1/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseCode.vue");
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
};
|
|
const ProseCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
|
|
export { ProseCode as default };
|
|
//# sourceMappingURL=ProseCode-8c7824c1.mjs.map
|