Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name every worklet function #6163

Merged
merged 15 commits into from
Jul 16, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface ReanimatedPluginOptions {
omitNativeOnlyData?: boolean;
globals?: string[];
substituteWebPlatformChecks?: boolean;
disableSourceMaps?: boolean;
}
```

Expand Down Expand Up @@ -189,4 +190,12 @@ There is a [huge list of identifiers whitelisted by default](https://github.com/

### substituteWebPlatformChecks

Defaults to `false`.

This option can also be useful for Web apps. In Reanimated, we have numerous checks to determine the right function implementation for a specific target platform. Enabling this option changes all the checks that identify if the target is a Web app to `true`. This alteration can aid in tree-shaking and contribute to reducing the bundle size.

### disableSourceMaps

Defaults to `false`.

This option turns off the source map generation for worklets. Mostly used for testing purposes.
Loading