forked from callstack/react-native-paper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
30 lines (27 loc) · 729 Bytes
/
babel.config.js
File metadata and controls
30 lines (27 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const path = require('path');
const pak = require('../package.json');
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
[`${pak.name}/package.json`]: path.join(
__dirname,
'..',
'package.json'
),
// For development, we want to alias the library to the source
[pak.name]: path.join(__dirname, '..', 'src'),
},
},
],
['@babel/plugin-proposal-export-namespace-from'],
['react-native-reanimated/plugin'],
],
};
};