From 8ebf1e044ec0377f163691aeb0ed649b30deb2ef Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Wed, 14 May 2025 13:51:33 +0200 Subject: [PATCH] add patch for solid start (tanstack underneath) --- package.json | 3 +++ ...tack%2Fdirective-functions-plugin@1.119.2.patch | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch diff --git a/package.json b/package.json index d9fe072..59493a1 100644 --- a/package.json +++ b/package.json @@ -36,5 +36,8 @@ "vite-plugin-solid-svg": "^0.8.1", "vite-tsconfig-paths": "^5.1.4", "vitest": "^3.1.3" + }, + "patchedDependencies": { + "@tanstack/directive-functions-plugin@1.119.2": "patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch" } } diff --git a/patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch b/patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch new file mode 100644 index 0000000..d963288 --- /dev/null +++ b/patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch @@ -0,0 +1,14 @@ +diff --git a/dist/esm/index.js b/dist/esm/index.js +index 813fa63450583316c537cadd46db0c6fce055ac7..205b03d0ae77bfe3ee93f42b0e3d4b5f453502ec 100644 +--- a/dist/esm/index.js ++++ b/dist/esm/index.js +@@ -13,6 +13,9 @@ function TanStackDirectiveFunctionsPlugin(opts) { + ROOT = config.root; + }, + transform(code, id) { ++ if (id.startsWith('/@')) { ++ id = `@/${id.slice(2)}`; ++ } + var _a; + const url = pathToFileURL(id); + url.searchParams.delete("v");