Skip to content

Commit 8cd151d

Browse files
committed
Update to webpack 5.
1 parent 63772ed commit 8cd151d

File tree

5 files changed

+1566
-1832
lines changed

5 files changed

+1566
-1832
lines changed

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": "npm-run-all init-app build-prod",
1818
"test": "jest --coverage",
1919
"dev-all": "npm-run-all --parallel dev-electron dev-view",
20-
"dev-view": "dotenv webpack-dev-server --progress --colors --config webpack.config.view.js",
20+
"dev-view": "dotenv webpack serve --progress --config webpack.config.view.js",
2121
"dev-electron": "webpack --progress --watch --config webpack.config.electron.js",
2222
"build-dev": "webpack --progress --config webpack.config.js",
2323
"build-prod": "cross-env NODE_ENV=production webpack --progress --config webpack.config.js",
@@ -106,6 +106,7 @@
106106
"immer": "^8.0.0",
107107
"lodash": "^4.17.20",
108108
"mime": "^2.4.7",
109+
"path-browserify": "^1.0.1",
109110
"prop-types": "^15.7.2",
110111
"react": "^17.0.1",
111112
"react-dom": "^17.0.1",
@@ -119,14 +120,14 @@
119120
"zustand": "^3.2.0"
120121
},
121122
"devDependencies": {
122-
"@babel/core": "^7.12.10",
123-
"@babel/plugin-proposal-class-properties": "^7.12.1",
124-
"@babel/plugin-proposal-export-default-from": "^7.12.1",
125-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
126-
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
127-
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
128-
"@babel/preset-env": "^7.12.11",
129-
"@babel/preset-react": "^7.12.10",
123+
"@babel/core": "^7.13.8",
124+
"@babel/plugin-proposal-class-properties": "^7.13.0",
125+
"@babel/plugin-proposal-export-default-from": "^7.12.13",
126+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
127+
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
128+
"@babel/plugin-proposal-optional-chaining": "^7.13.8",
129+
"@babel/preset-env": "^7.13.9",
130+
"@babel/preset-react": "^7.12.13",
130131
"@hot-loader/react-dom": "^17.0.1",
131132
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
132133
"babel-eslint": "^10.1.0",
@@ -137,10 +138,10 @@
137138
"css-minimizer-webpack-plugin": "^1.2.0",
138139
"dotenv": "^8.2.0",
139140
"dotenv-cli": "^4.0.0",
140-
"electron": "11.1.1",
141-
"electron-builder": "^22.9.1",
141+
"electron": "12.0.0",
142+
"electron-builder": "^22.10.5",
142143
"electron-notarize": "^1.0.0",
143-
"electron-updater": "^4.3.5",
144+
"electron-updater": "^4.3.8",
144145
"eslint": "^7.16.0",
145146
"eslint-config-airbnb": "^18.2.1",
146147
"eslint-config-prettier": "^7.1.0",
@@ -173,8 +174,8 @@
173174
"svg-sprite-loader": "5.2.1",
174175
"terser-webpack-plugin": "^3.1.0",
175176
"url-loader": "^4.1.1",
176-
"webpack": "^4.44.2",
177-
"webpack-cli": "^3.3.12",
177+
"webpack": "^5.24.3",
178+
"webpack-cli": "^4.5.0",
178179
"webpack-dev-server": "^3.11.0"
179180
}
180181
}

src/utils/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import path from 'path-browserify';
22

33
export function replaceExt(file, ext) {
44
const base = path.basename(file, path.extname(file)) + ext;

src/video/AudioProcess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import path from 'path-browserify';
22

33
import Process from 'core/Process';
44
import { replaceExt } from 'utils/file';

src/video/VideoRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import path from 'path-browserify';
22
import EventEmitter from 'core/EventEmitter';
33
import RenderProcess from 'video/RenderProcess';
44
import AudioProcess from 'video/AudioProcess';

0 commit comments

Comments
 (0)