mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
108 lines
3.6 KiB
Plaintext
108 lines
3.6 KiB
Plaintext
// Vitest Snapshot v1
|
||
|
||
exports[`treeshake client only in ssr > should treeshake ClientOnly correctly in dev not inlined 1`] = `
|
||
"
|
||
|
||
import { Glob, } from '#components'
|
||
|
||
|
||
const _sfc_main = {
|
||
__name: 'SomeComponent1',
|
||
setup(__props, { expose }) {
|
||
expose();
|
||
|
||
const hello = 'world'
|
||
|
||
const __returned__ = { hello, get Glob() { return Glob }, }
|
||
Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })
|
||
return __returned__
|
||
}
|
||
|
||
}
|
||
import { resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \\"vue\\"
|
||
import { ssrRenderComponent as _ssrRenderComponent, ssrRenderAttrs as _ssrRenderAttrs, ssrInterpolate as _ssrInterpolate } from \\"vue/server-renderer\\"
|
||
|
||
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
||
const _component_ClientOnly = _resolveComponent(\\"ClientOnly\\")
|
||
|
||
|
||
|
||
_push(\`<div\${_ssrRenderAttrs(_attrs)} data-v-one-hash><div data-v-one-hash>\`)
|
||
_push(_ssrRenderComponent($setup[\\"Glob\\"], null, null, _parent))
|
||
_push(\`</div> \${_ssrInterpolate($setup.hello)} <div class=\\"not-client\\" data-v-one-hash> Hello </div>\`)
|
||
_push(_ssrRenderComponent(_component_ClientOnly, null, {
|
||
|
||
/* STABLE */
|
||
}, _parent))
|
||
_push(_ssrRenderComponent(_component_ClientOnly, null, {
|
||
|
||
/* STABLE */
|
||
}, _parent))
|
||
_push(\`</div>\`)
|
||
}
|
||
|
||
import \\"SomeComponent1.vue?vue&type=style&index=0&scoped=one-hash&lang.css\\"
|
||
|
||
import { useSSRContext as __vite_useSSRContext } from 'vue'
|
||
const _sfc_setup = _sfc_main.setup
|
||
_sfc_main.setup = (props, ctx) => {
|
||
const ssrContext = __vite_useSSRContext()
|
||
;(ssrContext.modules || (ssrContext.modules = new Set())).add(\\"SomeComponent1.vue\\")
|
||
return _sfc_setup ? _sfc_setup(props, ctx) : undefined
|
||
}
|
||
import _export_sfc from ' |