Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: dependency overhaul #2418

Merged
merged 17 commits into from
Aug 8, 2022
Merged

feature: dependency overhaul #2418

merged 17 commits into from
Aug 8, 2022

Conversation

comountainclimber
Copy link
Contributor

What current issue(s) from Trello/Github does this address?

What problem does this PR solve?

How did you solve this problem?

How did you make sure your solution works?

Are there any special changes in the code that we should be aware of?

Is there anything else we should know?

  • Unit tests written?

@@ -2,7 +2,8 @@ const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExtractTextPlugin is deprecated and incompatible with node 16.14.2

"electron": "^10.0.0",
"electron-builder": "22.11.11",
"css-loader": "4.2.0",
"electron": "19.0.8",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@@ -222,15 +224,14 @@
"identity-obj-proxy": "3.0.0",
"jest": "22.4.2",
"json-loader": "0.5.7",
"node-sass": "4.13.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node-sass is another deprecated project incompatible with electron 19 and node 16

@@ -1,9 +1,20 @@
import { ipcRenderer } from 'electron'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The storage module needed to be refactored for some reason the default path it was using changed during the electron update. Its working exactly as expected with these changes

@@ -85,6 +85,7 @@ app.on('ready', () => {
contextIsolation: true,
webPreferences: {
enableRemoteModule: true,
contextIsolation: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already turned off in our previous builds but the setting has changed to defaulting to true in new versions of electron thus requiring this explicit flag

@comountainclimber comountainclimber merged commit 52510ee into dev Aug 8, 2022
@comountainclimber comountainclimber deleted the feature/2v768eg branch August 10, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants