Skip to content

Commit 41582b4

Browse files
authored
docs(Worklets): rename plugin options page to .mdx (#9678)
Extracted from #9638 🚀
1 parent 7c86624 commit 41582b4

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

  • docs/docs-worklets/versioned_docs/version-0.10/worklets-babel-plugin

docs/docs-worklets/versioned_docs/version-0.10/worklets-babel-plugin/options.md renamed to docs/docs-worklets/versioned_docs/version-0.10/worklets-babel-plugin/options.mdx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,24 @@ sidebar_label: 'Options'
99
Our plugin offers several optional functionalities that you may need to employ advanced APIs:
1010

1111
<details>
12-
<summary>Type definitions</summary>
13-
14-
```typescript
15-
interface PluginOptions {
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+
interface PluginOptions {
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+
```
3130
</details>
3231

3332
## How to use
@@ -106,7 +105,7 @@ Defaults to `false`.
106105
This option turns off the source map generation for worklets. Mostly used for testing purposes.
107106

108107
<Badges version="0.7.0">
109-
### disableWorkletClasses
108+
### disableWorkletClasses
110109
</Badges>
111110

112111
Defaults to `false`.
@@ -204,7 +203,7 @@ Defaults to `false`.
204203
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.
205204

206205
<Badges version="0.8.0">
207-
### strictGlobal
206+
### strictGlobal
208207
</Badges>
209208

210209
:::note

0 commit comments

Comments
 (0)