From 149c3a2a4774605e2fa1e3968603dd283c428d8f Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Wed, 4 Sep 2024 16:00:05 +0900 Subject: [PATCH] feat: add svelte-vapor-runtime pkg --- package.json | 3 +- packages/svelte-vapor-runtime/LICENSE | 20 +++ packages/svelte-vapor-runtime/README.md | 7 ++ packages/svelte-vapor-runtime/package.json | 54 ++++++++ packages/svelte-vapor-runtime/src/_helper.ts | 81 ++++++++++++ packages/svelte-vapor-runtime/src/action.ts | 1 + packages/svelte-vapor-runtime/src/animate.ts | 1 + packages/svelte-vapor-runtime/src/context.ts | 1 + packages/svelte-vapor-runtime/src/easing.ts | 1 + packages/svelte-vapor-runtime/src/index.ts | 8 ++ .../svelte-vapor-runtime/src/lifecycle.ts | 1 + packages/svelte-vapor-runtime/src/motion.ts | 1 + packages/svelte-vapor-runtime/src/store.ts | 1 + .../svelte-vapor-runtime/src/transition.ts | 1 + .../svelte-vapor-runtime/tsdown.config.ts | 10 ++ pnpm-lock.yaml | 117 ++++++++++-------- tsconfig.json | 1 + 17 files changed, 256 insertions(+), 53 deletions(-) create mode 100644 packages/svelte-vapor-runtime/LICENSE create mode 100644 packages/svelte-vapor-runtime/README.md create mode 100644 packages/svelte-vapor-runtime/package.json create mode 100644 packages/svelte-vapor-runtime/src/_helper.ts create mode 100644 packages/svelte-vapor-runtime/src/action.ts create mode 100644 packages/svelte-vapor-runtime/src/animate.ts create mode 100644 packages/svelte-vapor-runtime/src/context.ts create mode 100644 packages/svelte-vapor-runtime/src/easing.ts create mode 100644 packages/svelte-vapor-runtime/src/index.ts create mode 100644 packages/svelte-vapor-runtime/src/lifecycle.ts create mode 100644 packages/svelte-vapor-runtime/src/motion.ts create mode 100644 packages/svelte-vapor-runtime/src/store.ts create mode 100644 packages/svelte-vapor-runtime/src/transition.ts create mode 100644 packages/svelte-vapor-runtime/tsdown.config.ts diff --git a/package.json b/package.json index 517afaa..a34f712 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,9 @@ "build:react:hooks": "pnpm run --filter=./packages/react-vapor-hooks build", "build:react:unplugin": "pnpm run --filter=./packages/unplugin-react build", "build:shared": "pnpm run --filter=./packages/shared build", - "build:svelte": "run-s \"build:svelte:compiler\" \"build:svelte:sfc\" \"build:svelte:unplugin\" \"build:svelte:template\"", + "build:svelte": "run-s \"build:svelte:runtime\" \"build:svelte:compiler\" \"build:svelte:sfc\" \"build:svelte:unplugin\" \"build:svelte:template\"", "build:svelte:compiler": "pnpm run --filter=./packages/svelte-template-compiler build", + "build:svelte:runtime": "pnpm run --filter=./packages/svelte-vapor-runtime build", "build:svelte:sfc": "pnpm run --filter=./packages/svelte-sfc-compiler build", "build:svelte:template": "pnpm run --filter=./packages/svelte-template-explorer build", "build:svelte:unplugin": "pnpm run --filter=./packages/unplugin-svelte build", diff --git a/packages/svelte-vapor-runtime/LICENSE b/packages/svelte-vapor-runtime/LICENSE new file mode 100644 index 0000000..c69bf0c --- /dev/null +++ b/packages/svelte-vapor-runtime/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2024 kazuya kawaguchi + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/svelte-vapor-runtime/README.md b/packages/svelte-vapor-runtime/README.md new file mode 100644 index 0000000..b514179 --- /dev/null +++ b/packages/svelte-vapor-runtime/README.md @@ -0,0 +1,7 @@ +# react-vapor-hooks + +> React hooks for vapor + +## ©️ License + +[MIT](http://opensource.org/licenses/MIT) diff --git a/packages/svelte-vapor-runtime/package.json b/packages/svelte-vapor-runtime/package.json new file mode 100644 index 0000000..0ff05c5 --- /dev/null +++ b/packages/svelte-vapor-runtime/package.json @@ -0,0 +1,54 @@ +{ + "name": "svelte-vapor-runtime", + "description": "svelte runtime for vapor", + "version": "0.0.0", + "author": { + "name": "kazuya kawaguchi", + "email": "kawakazu80@gmail.com" + }, + "license": "MIT", + "funding": "https://github.com/sponsors/kazupon", + "bugs": { + "url": "https://github.com/kazupon/inclusion-vapor/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/kazupon/inclusion-vapor.git", + "directory": "packages/svelte-vapor-runtime" + }, + "keywords": [ + "svelte", + "runtime", + "vapor" + ], + "homepage": "https://github.com/kazupon/inclusion-vapor#readme", + "publishConfig": { + "access": "public" + }, + "engines": { + "node": ">= 18.18" + }, + "type": "module", + "files": [ + "dist/index.cjs", + "dist/index.js" + ], + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "scripts": { + "build": "tsdown" + }, + "dependencies": { + "@vue-vapor/vapor": "latest" + }, + "devDependencies": { + "svelte": "catalog:", + "tsdown": "catalog:" + } +} diff --git a/packages/svelte-vapor-runtime/src/_helper.ts b/packages/svelte-vapor-runtime/src/_helper.ts new file mode 100644 index 0000000..32167d9 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/_helper.ts @@ -0,0 +1,81 @@ +/** + * Helper module for unit tests + */ + +import { createVaporApp, defineComponent } from '@vue-vapor/vapor' +import { afterEach, beforeEach } from 'vitest' + +import type { App, ComponentInternalInstance, ObjectComponent, SetupFn } from '@vue-vapor/vapor' +type RawProps = NonNullable[1]> + +// forked from `vuejs/core-vapor` test utils + +export function makeRender( + initHost = (): HTMLDivElement => { + const host = document.createElement('div') + host.setAttribute('id', 'host') + document.body.append(host) + return host + } +) { + let host: HTMLElement + function resetHost() { + return (host = initHost()) + } + + beforeEach(() => { + resetHost() + }) + afterEach(() => { + host.remove() + }) + + function define(comp: Component) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument + const component = defineComponent(comp as any) + let instance: ComponentInternalInstance | undefined + let app: App + + function render(props: RawProps = {}, container: string | ParentNode = host) { + create(props) + return mount(container) + } + + function create(props: RawProps = {}) { + app?.unmount() + app = createVaporApp(component, props) + return res() + } + + function mount(container: string | ParentNode = host) { + instance = app.mount(container) + return res() + } + + // eslint-disable-next-line unicorn/consistent-function-scoping + function html() { + return host.innerHTML + } + + const res = () => ({ + component, + host, + instance, + app, + create, + mount, + render, + resetHost, + html + }) + + return res() + } + + return define +} + +export function triggerEvent(type: string, el: Element) { + const event = new Event(type, { bubbles: true }) + el.dispatchEvent(event) +} diff --git a/packages/svelte-vapor-runtime/src/action.ts b/packages/svelte-vapor-runtime/src/action.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/action.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/animate.ts b/packages/svelte-vapor-runtime/src/animate.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/animate.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/context.ts b/packages/svelte-vapor-runtime/src/context.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/context.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/easing.ts b/packages/svelte-vapor-runtime/src/easing.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/easing.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/index.ts b/packages/svelte-vapor-runtime/src/index.ts new file mode 100644 index 0000000..629511d --- /dev/null +++ b/packages/svelte-vapor-runtime/src/index.ts @@ -0,0 +1,8 @@ +export * from './action.ts' // eslint-disable-line import-x/export +export * from './animate.ts' // eslint-disable-line import-x/export +export * from './context.ts' // eslint-disable-line import-x/export +export * from './easing.ts' // eslint-disable-line import-x/export +export * from './lifecycle.ts' // eslint-disable-line import-x/export +export * from './motion.ts' // eslint-disable-line import-x/export +export * from './store.ts' // eslint-disable-line import-x/export +export * from './transition.ts' // eslint-disable-line import-x/export diff --git a/packages/svelte-vapor-runtime/src/lifecycle.ts b/packages/svelte-vapor-runtime/src/lifecycle.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/lifecycle.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/motion.ts b/packages/svelte-vapor-runtime/src/motion.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/motion.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/store.ts b/packages/svelte-vapor-runtime/src/store.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/store.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/src/transition.ts b/packages/svelte-vapor-runtime/src/transition.ts new file mode 100644 index 0000000..336ce12 --- /dev/null +++ b/packages/svelte-vapor-runtime/src/transition.ts @@ -0,0 +1 @@ +export {} diff --git a/packages/svelte-vapor-runtime/tsdown.config.ts b/packages/svelte-vapor-runtime/tsdown.config.ts new file mode 100644 index 0000000..609876b --- /dev/null +++ b/packages/svelte-vapor-runtime/tsdown.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'tsdown' + +export default defineConfig({ + entry: 'src/index.ts', + format: ['esm', 'cjs'], + platform: 'node', + outDir: 'dist', + clean: true, + dts: true +}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a89f2b..95046f9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -388,6 +388,19 @@ importers: specifier: ^3.4.37 version: 3.4.37(typescript@5.5.4) + packages/svelte-vapor-runtime: + dependencies: + '@vue-vapor/vapor': + specifier: latest + version: 3.20240714.0-6608bb3 + devDependencies: + svelte: + specifier: 'catalog:' + version: 4.2.18(patch_hash=nrmskjuickzosje3buqtnt7ufq) + tsdown: + specifier: 'catalog:' + version: 0.2.10(rollup@4.20.0)(typescript@5.5.4) + packages/unplugin-react: dependencies: '@babel/parser': @@ -1429,63 +1442,63 @@ packages: '@polka/url@1.0.0-next.25': resolution: {integrity: sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==} - '@rolldown/binding-darwin-arm64@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-22PoM9eCKwAjdu3I9nMGah0zsDWoAb6ELLuJrIr+YBVJqhoOIoB1leaTI3W7RQPH+l3Gyx/qgEbEOtKCPxfrvw==} + '@rolldown/binding-darwin-arm64@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-DXtVloVJmyz9Z4I3Hnv2VN509H4+xSZkUZF5I79xyPy+wy9vNZsf4vUuNaalBKGZ2QH+6BY6RX886PWrao0Y2Q==} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-WHaUp8ea+xpHIvipu/h7tfwMmw9JR7NK7wBMW3vQLPyvtKH+6blNXF3MrK7apcjZMz8sT+UDUdG5AwX61VeB+A==} + '@rolldown/binding-darwin-x64@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-wtfv0x1q6jqplLFVOSWF97ytYlkCZjYdQnj/NwXk2DmlKejyJVsjN18KOqOr3gqam7pxk3CpSfBv+19SuiTPLw==} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-Wv7KYfK+ZwnaXbX1V+zwYXWyeUTAHCynkxN3FIKdlfruL/bk2sS2W0NfbQQLAPj/RWDqYzY7BeWzzLqPD1Rt+g==} + '@rolldown/binding-freebsd-x64@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-I5vAIBhIgcTX6Z8e+jjzopbsmhEr07PeFoc3UOhnTBh6oSlS2YMo8LECBt07I3ZSp/hsn/LtjmuWY2AgCSuC2Q==} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-72ovcKDOA4sSer+pYpuAcBZKgfPalkKHVIT0qdCi71+5GhszY9ox6UGm8+g/zKA5uQRJ+sLrjopqup0mlRlC/Q==} + '@rolldown/binding-linux-arm-gnueabihf@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-pvrWEWKCVV3upW3aCr1eiOuh9H6L+249xdaZCvMRxdVNwf6oXvzC4/imIzgCx9cH8UI2s8bcP/8/P9APf2aLng==} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-P8LvzuFem4/Mnr9hN7MjXn29AROqBX04xZrL93IoGwJHaif/5rTehW4kSHwiDtmTZcqzSp5OJAQz9KYgjUaSSw==} + '@rolldown/binding-linux-arm64-gnu@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-NxXtRP76RmmjHAa4dyhwDUKj+GX95GRnpPVnkZGZccsdGnersZgbO5NGeveUywuK++tnBcOBpmlVZ7A+I4h4SA==} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-arm64-musl@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-Lu+YZhK2y21SKAsJAb6quFWk5DWAd7fuParNt4iPKCmJ8C9Lbr0w3X4I3/A9m2AlfJutJKfZ8zEz6PDuRl1t7g==} + '@rolldown/binding-linux-arm64-musl@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-JF8PC4qsgEodVSxsomUqfVXVUoauXzOMqlLIDnfB4pHKpXCqlTcTVTZOz2x5vOkEerppz9LrMbvdZ9Ng3D+L1A==} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-x64-gnu@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-245NX4liGT83rdQalcySt0SZyJEkCya5mVcT4MaBh+NFCvw9IFh8Apld7EnCNXj7p0VU77M0LehGTRd58T+i1w==} + '@rolldown/binding-linux-x64-gnu@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-sghQWh7iP/qaQXHtZA6oNWTFuEAtfX9NhntAcq+qa7uH7JkPn+VqJTexRr9D9uuhLH1SorjaGquC/Nm7cxmbJw==} cpu: [x64] os: [linux] - '@rolldown/binding-linux-x64-musl@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-HzLmIzXvUlpi4t1MmvDGRk9gKrM6pl6zUTsoOagfvhZTx/C8vCsWA2LJ4/7JqdzAwnphvN+JJpBxMIrO2w717A==} + '@rolldown/binding-linux-x64-musl@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-ddyRkVCIFH22iNlspu1HtIBv0ssuKQzm7UKfZMH7TCekOAJmdUwjbUPJB0yNyTfiVvHdwkLddNoKPLYxkPNE3g==} cpu: [x64] os: [linux] - '@rolldown/binding-wasm32-wasi@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-8NuiND+xGji5F47MLilXr6eVkro9uFTGlzmxcojVYRUIZfgriC9pUweV4AcDoy++raC0Bey5QKxHU3VIyvivgQ==} + '@rolldown/binding-wasm32-wasi@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-cA0pwIM4g8/neKd6vabcg3b4zLOF5E4AiuVm4OKamtgMw2xjbXg/aCapNcNcFJR7ipLhBrbOJ0aAe7ztwve8ug==} engines: {node: '>=14.21.3'} cpu: [wasm32] - '@rolldown/binding-win32-arm64-msvc@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-gge73ZiX1i4jzP8JoYKgqwQ+nW1qqQQTwdsvBmIeNhT/MNBf8nqtHPcTpiQzRBjTbPsoaH35tTc5Cqq1ndehQA==} + '@rolldown/binding-win32-arm64-msvc@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-Xm3Z+1Ywr6NCiWHU9uWt+zFS3BkV2B7EtZAaWORBhQ5L7zMnLuE+DFIXaWZeQCioPodxnuwQoYQr+6nkfpBVaw==} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-ia32-msvc@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-CNh4ZkkbYE5Wjoh/YXqkf3Qqozf6rLdOaWtB0jhSf07vSVFTkfMxIu3zbPOc1wRMv29GAWnwR1i5JRLmnXx89w==} + '@rolldown/binding-win32-ia32-msvc@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-UQl0nkB2HrNQDv2nlu8KkNVFnx6OFCOtChbowunn80+mSlS9xYMMaATYX2fDJfyjG/25mCbWEAWYDr/9UM5b9Q==} cpu: [ia32] os: [win32] - '@rolldown/binding-win32-x64-msvc@0.12.2-snapshot-aa5807f-20240902003235': - resolution: {integrity: sha512-wuXwOCoFFEhhPbXQUezyI1P7X4wZjdZUwhhmGNrFGFPDiEx1hw4uj+IDI2e1wFvhI/cFjdyw6kIwRPaqYAHngA==} + '@rolldown/binding-win32-x64-msvc@0.13.0-snapshot-d24c337-20240904003206': + resolution: {integrity: sha512-a0dv/zF40KgyQNdKAaxVrkFvntU7cC0ZpTpyv8k/WZrjWY2A4imQBZmjnPUOMPGiGiN359MwuU3NDHNBxDOvFw==} cpu: [x64] os: [win32] @@ -4329,8 +4342,8 @@ packages: rfdc@1.4.1: resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} - rolldown@0.12.2-snapshot-aa5807f-20240902003235: - resolution: {integrity: sha512-6emNqatnxQzflHlGA3zVnU5dX8tvodQ7i1ZiBFbLrFP3YxiewlGFU4QpfGBi4MVo5I2bC+3S3gt6FkZCEbs6zg==} + rolldown@0.13.0-snapshot-d24c337-20240904003206: + resolution: {integrity: sha512-0RBXZSomA7obzIIVO+yvCqakE4k/A710YEQr5ajo47qjJYDxoi5xJkBhAEfDHIPTBuchldonTL1q3rI+nVmFSA==} hasBin: true rollup-plugin-dts@6.1.1: @@ -5961,42 +5974,42 @@ snapshots: '@polka/url@1.0.0-next.25': {} - '@rolldown/binding-darwin-arm64@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-darwin-arm64@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-darwin-x64@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-darwin-x64@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-freebsd-x64@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-freebsd-x64@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-linux-arm-gnueabihf@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-linux-arm-gnueabihf@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-linux-arm64-gnu@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-linux-arm64-gnu@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-linux-arm64-musl@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-linux-arm64-musl@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-linux-x64-gnu@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-linux-x64-gnu@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-linux-x64-musl@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-linux-x64-musl@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-wasm32-wasi@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-wasm32-wasi@0.13.0-snapshot-d24c337-20240904003206': dependencies: '@napi-rs/wasm-runtime': 0.2.4 optional: true - '@rolldown/binding-win32-arm64-msvc@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-win32-arm64-msvc@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-win32-ia32-msvc@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-win32-ia32-msvc@0.13.0-snapshot-d24c337-20240904003206': optional: true - '@rolldown/binding-win32-x64-msvc@0.12.2-snapshot-aa5807f-20240902003235': + '@rolldown/binding-win32-x64-msvc@0.13.0-snapshot-d24c337-20240904003206': optional: true '@rollup/plugin-alias@5.1.0(rollup@3.29.4)': @@ -9209,22 +9222,22 @@ snapshots: rfdc@1.4.1: {} - rolldown@0.12.2-snapshot-aa5807f-20240902003235: + rolldown@0.13.0-snapshot-d24c337-20240904003206: dependencies: zod: 3.23.8 optionalDependencies: - '@rolldown/binding-darwin-arm64': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-darwin-x64': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-freebsd-x64': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-linux-arm-gnueabihf': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-linux-arm64-gnu': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-linux-arm64-musl': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-linux-x64-gnu': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-linux-x64-musl': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-wasm32-wasi': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-win32-arm64-msvc': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-win32-ia32-msvc': 0.12.2-snapshot-aa5807f-20240902003235 - '@rolldown/binding-win32-x64-msvc': 0.12.2-snapshot-aa5807f-20240902003235 + '@rolldown/binding-darwin-arm64': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-darwin-x64': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-freebsd-x64': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-linux-arm-gnueabihf': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-linux-arm64-gnu': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-linux-arm64-musl': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-linux-x64-gnu': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-linux-x64-musl': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-wasm32-wasi': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-win32-arm64-msvc': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-win32-ia32-msvc': 0.13.0-snapshot-d24c337-20240904003206 + '@rolldown/binding-win32-x64-msvc': 0.13.0-snapshot-d24c337-20240904003206 rollup-plugin-dts@6.1.1(rollup@3.29.4)(typescript@5.5.4): dependencies: @@ -9702,7 +9715,7 @@ snapshots: consola: 3.2.3 picocolors: 1.0.1 pkg-types: 1.1.3 - rolldown: 0.12.2-snapshot-aa5807f-20240902003235 + rolldown: 0.13.0-snapshot-d24c337-20240904003206 tinyglobby: 0.2.5 unconfig: 0.5.5 unplugin-isolated-decl: 0.4.7(rollup@4.20.0)(typescript@5.5.4) diff --git a/tsconfig.json b/tsconfig.json index f5660c0..0ecca8c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -39,6 +39,7 @@ "svelte-vapor-sfc-compiler": ["packages/svelte-sfc-compiler/src"], "jsx-vapor-compiler": ["packages/jsx-compiler/src"], "react-vapor-hooks": ["packages/react-vapor-hooks/src"], + "svelte-vapor-runtime": ["packages/svelte-vapor-runtime/src"], "vue/vapor": ["packages/playground/node_modules/vue/vapor"] }, // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */