Fix loaders configuration for WalletConnect lib

This commit is contained in:
Theo 2023-07-07 19:42:42 -07:00
parent c7d315a6b3
commit ca64c9e11f

@ -181,6 +181,19 @@ export default {
config.module.rules.push({
test: /\.bin$/,
use: 'arraybuffer-loader'
},
{
test: /node_modules[\\/]@walletconnect/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator'
]
}
}
})
},
plugins: [