mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 16:06:32 +00:00
15 lines
430 B
JavaScript
15 lines
430 B
JavaScript
const path = require('node:path');
|
|
|
|
// babel-preset-expo ships inside `expo` rather than as a direct dependency, so
|
|
// resolve it from there; this is the preset Expo uses when no config exists.
|
|
const presetExpo = require.resolve('babel-preset-expo', {
|
|
paths: [path.dirname(require.resolve('expo/package.json'))],
|
|
});
|
|
|
|
module.exports = function babelConfig(api) {
|
|
api.cache(true);
|
|
return {
|
|
presets: [presetExpo],
|
|
};
|
|
};
|