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: docs/docs-worklets/versioned_docs/version-0.10/worklets-babel-plugin/options.mdx
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,24 @@ sidebar_label: 'Options'
9
9
Our plugin offers several optional functionalities that you may need to employ advanced APIs:
10
10
11
11
<details>
12
-
<summary>Type definitions</summary>
13
-
14
-
```typescript
15
-
interfacePluginOptions {
16
-
bundleMode?:boolean;
17
-
disableInlineStylesWarning?:boolean;
18
-
disableSourceMaps?:boolean;
19
-
disableWorkletClasses?:boolean;
20
-
extraPlugins?:string[];
21
-
extraPresets?:string[];
22
-
globals?:string[];
23
-
omitNativeOnlyData?:boolean;
24
-
relativeSourceLocation?:boolean;
25
-
strictGlobal?:boolean;
26
-
substituteWebPlatformChecks?:boolean;
27
-
workletizableModules?:string[];
28
-
}
29
-
```
30
-
12
+
<summary>Type definitions</summary>
13
+
14
+
```typescript
15
+
interfacePluginOptions {
16
+
bundleMode?:boolean;
17
+
disableInlineStylesWarning?:boolean;
18
+
disableSourceMaps?:boolean;
19
+
disableWorkletClasses?:boolean;
20
+
extraPlugins?:string[];
21
+
extraPresets?:string[];
22
+
globals?:string[];
23
+
omitNativeOnlyData?:boolean;
24
+
relativeSourceLocation?:boolean;
25
+
strictGlobal?:boolean;
26
+
substituteWebPlatformChecks?:boolean;
27
+
workletizableModules?:string[];
28
+
}
29
+
```
31
30
</details>
32
31
33
32
## How to use
@@ -106,7 +105,7 @@ Defaults to `false`.
106
105
This option turns off the source map generation for worklets. Mostly used for testing purposes.
107
106
108
107
<Badgesversion="0.7.0">
109
-
### disableWorkletClasses
108
+
### disableWorkletClasses
110
109
</Badges>
111
110
112
111
Defaults to `false`.
@@ -204,7 +203,7 @@ Defaults to `false`.
204
203
This option dictates the passed file location for a worklet's source map. If you enable this option, the file paths will be relative to `process.cwd` (the current directory where Babel executes). This can be handy for Jest test snapshots to ensure consistent results across machines.
0 commit comments