Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/baseballyama/svelte-in-vue3-ts

Using Svelte component in Vue3 app
https://github.com/baseballyama/svelte-in-vue3-ts

Last synced: 3 days ago
JSON representation

Using Svelte component in Vue3 app

Awesome Lists containing this project

README

        

# svelte-in-vue3-ts

This repository was created based on [svelte-in-react-ts](https://github.com/baseballyama/svelte-in-react-ts).

DEMO: https://baseballyama.github.io/svelte-in-vue3-ts/

This repository supported below features.

- Reactive props between Vue3 and Svelte / Two-way data binding
- Reactive context between Vue3 and Svelte
- Calling Svelte functions from Vue3

## Setup

```
# should select TypeScript.
npm init vue@latest
npm i
npm install --save
npm install -D svelte svelte-preprocess @sveltejs/vite-plugin-svelte
curl https://raw.githubusercontent.com/sveltejs/language-tools/master/packages/svelte2tsx/svelte-shims.d.ts > ./src/svelte-shims.d.ts
```