Skip to content

Commit 6b4422a

Browse files
authored
Fix docs build (#8)
* Export TonConnectButton and update configuration for improved compatibility * Fix link issue
1 parent 02ad75b commit 6b4422a

File tree

6 files changed

+608
-1585
lines changed

6 files changed

+608
-1585
lines changed

.changeset/khaki-bears-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@d0rich/vueton': patch
3+
---
4+
5+
Export TonConnectButton
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script setup lang="ts">
2+
import { TonConnectButton } from '@d0rich/vueton'
3+
</script>
4+
<template>
5+
<div>
6+
<ClientOnly>
7+
<TonConnectButton />
8+
</ClientOnly>
9+
</div>
10+
</template>

docs/content/4.tips-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {TonConnectButton} from '@d0rich/vueton'
1414
</script>
1515
```
1616

17-
::ton-connect-button
17+
::ton-connect-button-client
1818
---
1919
style: "margin: 3rem 0; display: flex; justify-content: center;"
2020
---

docs/nuxt.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export default defineNuxtConfig({
88
nodePolyfills({
99
include: ['buffer']
1010
})
11-
]
11+
],
12+
build: {
13+
commonjsOptions: {
14+
strictRequires: true
15+
}
16+
}
1217
}
1318
})

0 commit comments

Comments
 (0)