[MM-43039] Upgrade and clean up dependencies (#2038)
* Upgrade Electron to v18 * Fix a test * Upgrade ESLint and TypeScript * Update Joi * Clean up and upgrade dependencies * Upgrade dev dependencies * Upgrade to Webpack 5 * Update NOTICE.txt * Update test runtime
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
'use strict';
|
||||
|
||||
const childProcess = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
const webpack = require('webpack');
|
||||
|
||||
const path = require('path');
|
||||
|
||||
const VERSION = childProcess.execSync('git rev-parse --short HEAD').toString();
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const isRelease = process.env.CIRCLE_BRANCH && process.env.CIRCLE_BRANCH.startsWith('release-');
|
||||
@@ -29,10 +28,11 @@ module.exports = {
|
||||
// Some plugins cause errors on the app, so use few plugins.
|
||||
// https://webpack.js.org/concepts/mode/#mode-production
|
||||
mode: isProduction ? 'none' : 'development',
|
||||
bail: true,
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(codeDefinitions),
|
||||
],
|
||||
devtool: isProduction ? false : '#inline-source-map',
|
||||
devtool: isProduction ? undefined : 'inline-source-map',
|
||||
resolve: {
|
||||
alias: {
|
||||
renderer: path.resolve(__dirname, 'src/renderer'),
|
||||
|
Reference in New Issue
Block a user