You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/types.ts
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -99,9 +99,27 @@ export type FlytrapConfig = {
99
99
captureIgnores?: CaptureIgnore[]
100
100
/**
101
101
* Use Flytrap in environments with access to only browser APIs, eg. Cloudflare
102
-
* Workers & Pages and Deno.
102
+
* Workers & Pages and Deno Deploy.
103
103
*/
104
104
browser?: true
105
+
transformOptions?: {
106
+
/**
107
+
* Allows you to define what code gets transformed by the Flytrap code transform and subsequently, what code data gets captured from. By default all code gets transformed and captured.
108
+
*
109
+
* By default, nothing is disabled.
110
+
*/
111
+
disableTransformation?: (
112
+
|'arrow-function'
113
+
|'function-declaration'
114
+
|'function-expression'
115
+
|'call-expression'
116
+
)[]
117
+
/**
118
+
* What import format to use for the automatically injected Flytrap imports.
0 commit comments