Skip to content

Commit

Permalink
disable mangling of function names.
Browse files Browse the repository at this point in the history
Terser is mangling function names, and Xstate visualizer can't read action (function) names.
  • Loading branch information
ivandotv committed May 3, 2022
1 parent 8aa41a3 commit 635b0c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-mails-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'oktopod': patch
---

Disable mangling of function names. Terser is mangling function names, and Xstate visualizer can't read action (function) names
10 changes: 10 additions & 0 deletions mangle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"minify": {
"mangle": {
"keep_fnames": true
},
"compress": {
"keep_fnames": true
}
}
}

0 comments on commit 635b0c0

Please sign in to comment.