mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
15 lines
276 B
Vue
15 lines
276 B
Vue
<script lang="ts" setup>
|
|
// server only
|
|
useServerOnlyComposable()
|
|
// client only
|
|
useClientOnlyComposable()
|
|
// can only run client side, should be tree shaken from server build
|
|
setTitleToPink()
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<h1>Tree Shake Example</h1>
|
|
</div>
|
|
</template>
|