Skip to content

armgit / lyftr

Public Imported from GitHub
0

Self-hosted fitness tracker. Log workouts, track nutrition, and monitor progress. Docker deployment, mobile-friendly.

567 B
Raw Blame
module.exports = function (api) {
  api.cache(true)
  return {
    presets: [
      ['babel-preset-expo', { jsxImportSource: 'nativewind' }],
      'nativewind/babel',
    ],
    plugins: [
      // Rewrite `import.meta` so the web target can bundle deps' ESM builds that use it
      // (e.g. zustand's dev warnings) — Metro can't handle bare import.meta. No-op on
      // native (which resolves those packages' CJS builds).
      // Reanimated 4 moved its Babel plugin into react-native-worklets. MUST be last.
      'react-native-worklets/plugin',
    ],
  }
}