Files
onyx/mobile/babel.config.js
T
2026-06-30 15:31:25 +00:00

20 lines
707 B
JavaScript

// worklets:false disables babel-preset-expo's auto-add of react-native-worklets/plugin (registered with no
// options); we add it explicitly below with Bundle Mode (needed by react-native-streamdown). Exactly one
// worklets plugin must exist; it also covers reanimated 4.
module.exports = function (api) {
api.cache(true);
return {
presets: [
["babel-preset-expo", { jsxImportSource: "nativewind", worklets: false }],
"nativewind/babel",
],
plugins: [
// must stay last; workletizableModules pre-bundles remend for the worklet runtime
[
"react-native-worklets/plugin",
{ bundleMode: true, workletizableModules: ["remend"] },
],
],
};
};