mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 19:26:43 +02:00
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)
34 lines
664 B
JavaScript
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'],
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|