-
Notifications
You must be signed in to change notification settings - Fork 752
build: Electron Forge 8 Alpha 6 #1878
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
Open
erickzhao
wants to merge
2
commits into
main
Choose a base branch
from
forge-alpha-6
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.yarn/patches/@electron-forge-plugin-webpack-npm-8.0.0-alpha.6-6d62bb130a.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| diff --git a/dist/WebpackConfig.js b/dist/WebpackConfig.js | ||
| index e1fa82328f112953f963fb7c066f4951611d32cb..4b3422f76253e4470b8ddc522037fa3e5b851c4a 100644 | ||
| --- a/dist/WebpackConfig.js | ||
| +++ b/dist/WebpackConfig.js | ||
| @@ -1,7 +1,8 @@ | ||
| import path from 'node:path'; | ||
| import debug from 'debug'; | ||
| import HtmlWebpackPlugin from 'html-webpack-plugin'; | ||
| -import { DefinePlugin, ExternalsPlugin } from 'webpack'; | ||
| +import webpackPkg from 'webpack'; | ||
| +const { DefinePlugin, ExternalsPlugin } = webpackPkg; | ||
| import { merge as webpackMerge } from 'webpack-merge'; | ||
| import AssetRelocatorPatch from './util/AssetRelocatorPatch.js'; | ||
| import processConfig from './util/processConfig.js'; | ||
| diff --git a/dist/WebpackPlugin.js b/dist/WebpackPlugin.js | ||
| index a42103888da89eb836f4205b5d15aa5e081ee849..dd5ad4c6067b46921cc48e0d921cff886cf60ed1 100644 | ||
| --- a/dist/WebpackPlugin.js | ||
| +++ b/dist/WebpackPlugin.js | ||
| @@ -9,7 +9,8 @@ import debug from 'debug'; | ||
| import glob from 'fast-glob'; | ||
| import fs from 'fs-extra'; | ||
| import { PRESET_TIMER } from 'listr2'; | ||
| -import * as webpack from 'webpack'; | ||
| +import webpackDefault from 'webpack'; | ||
| +const webpack = { webpack: webpackDefault }; | ||
| import WebpackDevServer from 'webpack-dev-server'; | ||
| import { merge } from 'webpack-merge'; | ||
| import ElectronForgeLoggingPlugin from './util/ElectronForgeLogging.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { isDevMode } from './utils/devmode'; | ||
|
|
||
| if (isDevMode()) { | ||
| require('@electron/devtron').devtron.install(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know what originally motivated this? Wondering if we should keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure but as a note I specifically changed this around because
require.main === modulewas tripping overmodule: preserve.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context for the change here: b30d4c3
I'm a little concerned this might cause a regression in tests, but at the same time they're going green. 🤔