suid: workaround vite-plugin import problem
This commit is contained in:
parent
44a69c8517
commit
8f7d28d525
3 changed files with 19 additions and 1 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
@ -76,5 +76,8 @@
|
|||
"packageManager": "bun@1.1.34",
|
||||
"trustedDependencies": [
|
||||
"edgedriver"
|
||||
]
|
||||
],
|
||||
"patchedDependencies": {
|
||||
"@suid/vite-plugin@0.3.1": "patches/@suid%2Fvite-plugin@0.3.1.patch"
|
||||
}
|
||||
}
|
||||
|
|
15
patches/@suid%2Fvite-plugin@0.3.1.patch
Normal file
15
patches/@suid%2Fvite-plugin@0.3.1.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/index.mjs b/index.mjs
|
||||
index 2cf42b9506e130fcc9c1ca166d03d3d8b9b5781c..7dc283602ff09b94c6300f45eac223125eebeb46 100644
|
||||
--- a/index.mjs
|
||||
+++ b/index.mjs
|
||||
@@ -2,8 +2,8 @@ import $generate from "@babel/generator";
|
||||
import { parse } from "@babel/parser";
|
||||
import $traverse from "@babel/traverse";
|
||||
import * as types from "@babel/types";
|
||||
-const traverse = $traverse.default;
|
||||
-const generate = $generate.default;
|
||||
+const traverse = $traverse.default ?? $traverse;
|
||||
+const generate = $generate.default ?? $generate;
|
||||
const defaultOptions = {
|
||||
disableOptimizeDeps: [
|
||||
"@suid/base",
|
Loading…
Add table
Add a link
Reference in a new issue