Skip to content

Commit 7ed17dd

Browse files
committed
fix the build
1 parent 3e7de3e commit 7ed17dd

File tree

3 files changed

+1112
-1
lines changed

3 files changed

+1112
-1
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
"ytdl-core": "https://github.com/1ly4s0/ytdl-core"
6161
},
6262
"devDependencies": {
63+
"@babel/core": "^7.26.10",
64+
"@babel/plugin-proposal-class-properties": "^7.18.6",
65+
"@babel/plugin-proposal-private-methods": "^7.18.6",
66+
"@babel/preset-env": "^7.26.9",
6367
"@types/async": "^3.0.3",
6468
"@types/classnames": "^2.2.11",
6569
"@types/electron-is-dev": "^0.3.0",
@@ -73,6 +77,7 @@
7377
"@types/react-dom": "^16.0.9",
7478
"@types/sinon": "^5.0.7",
7579
"autoprefixer": "^9.4.5",
80+
"babel-loader": "^10.0.0",
7681
"coveralls": "^3.1.1",
7782
"css-loader": "^1.0.1",
7883
"electron": "^17.4.11",

webpack.config.js

+16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ module.exports = (env, argv) => ({
55
entry: './src/components/main.tsx',
66
module: {
77
rules: [
8+
{
9+
test: /\.js$/,
10+
include: /node_modules\/undici/,
11+
use: {
12+
loader: 'babel-loader',
13+
options: {
14+
presets: [
15+
['@babel/preset-env', { targets: { node: 'current' } }]
16+
],
17+
plugins: [
18+
'@babel/plugin-proposal-class-properties',
19+
'@babel/plugin-proposal-private-methods'
20+
]
21+
}
22+
}
23+
},
824
{
925
test: /\.ts|.tsx?$/,
1026
use: 'ts-loader',

0 commit comments

Comments
 (0)