add patch for solid start (tanstack underneath)
This commit is contained in:
parent
9bc0e3397d
commit
8ebf1e044e
2 changed files with 17 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
14
patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch
Normal file
14
patches/@tanstack%2Fdirective-functions-plugin@1.119.2.patch
Normal file
|
@ -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");
|
Loading…
Add table
Add a link
Reference in a new issue