mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
14 lines
275 B
Vue
14 lines
275 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>
|