-
Notifications
You must be signed in to change notification settings - Fork 23
/
babel.config.js
29 lines (28 loc) · 948 Bytes
/
babel.config.js
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
module.exports = function (api) {
api.cache(false);
return {
presets: ['babel-preset-expo'],
plugins: [
'@babel/plugin-syntax-import-assertions',
['module:react-native-dotenv', {moduleName: 'react-native-dotenv'}],
'babel-plugin-transform-typescript-metadata',
['@babel/plugin-proposal-decorators', {legacy: true}],
['@babel/plugin-proposal-class-properties', {loose: true}],
[
'module-resolver',
{
alias: {
'react-native-sqlite-storage': 'react-native-quick-sqlite',
// 'react-native-quick-crypto': '@sphereon/react-native-quick-crypto',
// crypto: '@sphereon/react-native-quick-crypto',
crypto: 'react-native-crypto',
stream: 'readable-stream',
buffer: '@craftzdog/react-native-buffer',
fs: 'expo-fs',
path: 'path-browserify',
},
},
],
],
};
};