managarten/apps/picture/apps/mobile/babel.config.js
Wuesteon d36b321d9d style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write
  - TypeScript/JavaScript files
  - Svelte components
  - Astro pages
  - JSON configs
  - Markdown docs

  13 files still need manual review (Astro JSX comments)
2025-11-27 18:33:16 +01:00

34 lines
664 B
JavaScript

module.exports = function (api) {
api.cache(true);
return {
presets: [
[
'babel-preset-expo',
{
jsxImportSource: 'nativewind',
web: {
disableImportExportTransform: false,
},
},
],
'nativewind/babel',
],
plugins: [
// Fix import.meta for web
['@babel/plugin-syntax-import-meta'],
// Add support for dynamic imports
['@babel/plugin-syntax-dynamic-import'],
// Module resolver for monorepo
[
'module-resolver',
{
root: ['./'],
alias: {
'@picture/shared': '../../packages/shared/src',
},
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
],
],
};
};