Skip to content

Commit

Permalink
Patch [email protected] for bundling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Feb 3, 2024
1 parent 1fe2c07 commit 0cd3baa
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@
"@types/node": "^20.11.5",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]+"
"packageManager": "[email protected]+",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
17 changes: 17 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/dist/node/chunks/dep-9A4-l-43.js b/dist/node/chunks/dep-9A4-l-43.js
index 990f7c7945986bd26f0b9dac5794b28a235df1c7..3380081f11a88c1021c7f20d91a8f3ed7809fa16 100644
--- a/dist/node/chunks/dep-9A4-l-43.js
+++ b/dist/node/chunks/dep-9A4-l-43.js
@@ -38068,7 +38068,11 @@ function stripLiteralJsTokens(code, options) {
}

function stripLiteral(code, options) {
- return stripLiteralDetailed(code, options).result;
+ try {
+ return stripLiteralDetailed(code, options).result;
+ } catch {
+ return code;
+ }
}
function stripLiteralDetailed(code, options) {
return stripLiteralJsTokens(code, options);
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0cd3baa

Please sign in to comment.