laconic-wallet/babel.config.js
Adwait Gharpure d75260d3dc
Add polyfills for url and https packages (#120)
* Add polyfills for url and https packages

* Use http-browserify as polyfill
2024-07-09 14:36:59 +05:30

26 lines
557 B
JavaScript

// 'module:@react-native/babel-preset',
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
alias: {
crypto: 'react-native-quick-crypto',
stream: 'stream-browserify',
buffer: '@craftzdog/react-native-buffer',
http: 'http-browserify',
https: 'https-browserify',
url: 'react-native-url-polyfill',
},
},
],
],
env: {
production: {
plugins: ['react-native-paper/babel'],
},
},
};