diff --git a/package.json b/package.json index 1bd2933..4659d21 100644 --- a/package.json +++ b/package.json @@ -59,5 +59,8 @@ "version": "vinxi version", "test": "vitest --coverage", "test:ci": "vitest run" + }, + "patchedDependencies": { + "@tanstack/directive-functions-plugin@1.119.2": "patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch" } } \ No newline at end of file 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");