Files
zeekay 86be71d8f9 chore: scrub tamagui — use @hanzo/gui (and @hanzogui/* forks) only
Tamagui is banned per directive. Replace every import/reference with
@hanzo/gui or the @hanzogui/* equivalent. Removes:
- tamagui-loader and tamaguiPlugin from apps/extension webpack/wxt configs
- @tamagui/babel-plugin TODO block from apps/mobile/babel.config.js
- 'tamagui', '@tamagui/web' from optimizeDeps.include hints
- @tamagui/core/reset.css side-effect imports → @hanzogui/core/reset.css
- TamaguiProvider in mobile tests → GuiProvider from gui-provider
- TamaguiInput type aliases in extension Input.tsx → GuiInput
- declare module 'tamagui' in env.d.ts → declare module '@hanzo/gui' (uses GuiGroupNames)
- '.tamagui' ignore patterns in .gitignore / .fingerprintignore
- 'tamagui-loader' from .depcheckrc

Source files: 18 .ts/.tsx files updated to import from @hanzo/gui /
@hanzogui packages. Tests + config: 4 files updated to drop
tamagui-specific behavior. Docs (LLM.md, README.md, RABBY_FEATURES.md):
updated to reflect new stack.

No tamagui entries remain in any package.json.
2026-06-10 22:35:40 -07:00

57 lines
1.5 KiB
JavaScript

const { NODE_ENV } = process.env
const inProduction = NODE_ENV === 'production'
module.exports = function (api) {
api.cache.using(() => process.env.NODE_ENV)
let plugins = inProduction ? ['transform-remove-console'] : []
plugins = [
...plugins,
[
'module-resolver',
{
alias: {
src: './src',
},
},
],
[
'module:react-native-dotenv',
{
// ideally use envName here to add a mobile namespace but this doesn't work when sharing with dotenv-webpack
moduleName: 'react-native-dotenv',
path: '../../.env.defaults', // must use this path so this file can be shared with web since dotenv-webpack is less flexible
safe: true,
allowUndefined: false,
},
],
'transform-inline-environment-variables',
// TypeScript compiles this, but in production builds, metro doesn't use tsc
'@babel/plugin-proposal-logical-assignment-operators',
// metro doesn't like these
'@babel/plugin-proposal-numeric-separator',
// https://github.com/software-mansion/react-native-reanimated/issues/3364#issuecomment-1268591867
'@babel/plugin-proposal-export-namespace-from',
// 'react-native-reanimated/plugin' must be listed last
// https://arc.net/l/quote/plrvpkad
[
'react-native-reanimated/plugin',
{
globals: ['__scanCodes', '__scanOCR'],
},
],
].filter(Boolean)
return {
ignore: [
// speeds up compile
'**/@hanzogui/**/dist/**',
],
presets: ['babel-preset-expo'],
plugins,
}
}