Skip to content

Commit

Permalink
fix: use babel
Browse files Browse the repository at this point in the history
  • Loading branch information
eigmax committed May 10, 2024
1 parent cdc268e commit 37b1fc8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@
},
"homepage": "https://www.eigen.cash/",
"dependencies": {
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@ethereumjs/block": "^3.6.2",
"@maticnetwork/maticjs": "^3.8.2",
"@truffle/hdwallet-provider": "^2.1.15",
"@types/web3": "^1.0.19",
"babel-loader": "^8.3.0",
"dotenv": "^16.4.5",
"ethereumjs-util": "^7.1.4",
"merkle-patricia-tree": "^4.2.4",
Expand Down
13 changes: 12 additions & 1 deletion webpack/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ exports.default = {
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env',
]
}
}
}
],
},

Expand All @@ -46,4 +57,4 @@ exports.default = {
}),
new SmartBannerPlugin(banner)
],
}
}

0 comments on commit 37b1fc8

Please sign in to comment.