Use @babel/env for latest ethers.js
This commit is contained in:
parent
add30d1939
commit
69841d8f56
@ -178,6 +178,19 @@ export default {
|
||||
if (ctx.isClient) {
|
||||
config.devtool = hasSourceMaps
|
||||
}
|
||||
config.module.rules.push({
|
||||
test: /\.(js|cjs|mjs|jsx)$/,
|
||||
include: /node_modules/,
|
||||
type: 'javascript/auto',
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
compact: false,
|
||||
presets: [['@babel/preset-env', { targets: 'defaults' }]],
|
||||
plugins: []
|
||||
}
|
||||
}
|
||||
})
|
||||
config.module.rules.push({
|
||||
test: /\.bin$/,
|
||||
use: 'arraybuffer-loader'
|
||||
|
@ -64,6 +64,7 @@
|
||||
"web3": "1.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "7.24.4",
|
||||
"@nuxtjs/eslint-config": "^1.1.2",
|
||||
"@nuxtjs/eslint-module": "^1.1.0",
|
||||
"@vue/test-utils": "^1.0.0-beta.27",
|
||||
|
Loading…
Reference in New Issue
Block a user