Conversation
# Conflicts: # .eslintrc # package.json # yarn.lock
By default webpack uses in-memory cache in development and no cache for production builds, which is exactly what we need.
…tput-hk/daedalus into chore/ddw-596-webpack-5-upgrade
fdde1bf to
1890cd1
Compare
renanvalentin
left a comment
There was a problem hiding this comment.
Really amazing job!
| if (existingChannel) | ||
| throw new Error(`Channel ${channelName} already exists`); |
There was a problem hiding this comment.
Can we make sure this will not result in any side-effects?
There was a problem hiding this comment.
Is this related to the upgrade?
source/main/ipc/hardwareWallets/ledger/deviceDetection/deviceDetection.ts
Show resolved
Hide resolved
| }); | ||
| window.loadURL(`file://${__dirname}/../renderer/index.html`); | ||
| if (isDev) { | ||
| window.loadURL(`http://localhost:8080`); |
There was a problem hiding this comment.
Why do we have localhost hard coded?
There was a problem hiding this comment.
Because that's the webpack dev server - but i agree we could pass this as env var into the main process 👍 but i would do that in a separate PR tbh
| @@ -0,0 +1,158 @@ | |||
| import React, { useState, useCallback, useMemo } from 'react'; | |||
There was a problem hiding this comment.
File moved to source/renderer/app/components/wallet/tokens/wallet-tokens/WalletTokens.tsx
| @@ -0,0 +1,232 @@ | |||
| import React, { useState, useMemo, useCallback } from 'react'; | |||
There was a problem hiding this comment.
File moved to source/renderer/app/components/wallet/tokens/wallet-tokens-list/WalletTokensList.tsx
source/renderer/app/components/wallet/tokens/WalletTokensSearch.tsx
Outdated
Show resolved
Hide resolved
source/renderer/app/containers/wallet/PaperWalletCreateCertificatePage.tsx
Outdated
Show resolved
Hide resolved
| <body> | ||
| <div id="root"></div> | ||
| </body> | ||
| </html> |
There was a problem hiding this comment.
This file should have an .http extension as it does not use any templating feature.
There was a problem hiding this comment.
Yes.
.http - haha 🤣
… into chore/ddw-596-webpack-5-upgrade
miorsufianiohk
left a comment
There was a problem hiding this comment.
LGTM on all 4 builds: intel Mac, M1 Mac, Linux and Windows. Tested on 21914. Great work everyone 👍 (ps: Great job on fixing the M1 build @michalrus )
|
Thank you, everyone! 🙇 ✨ |
|
A miracle happened 🎉 thanks everyone for your precious contributions!! |

This PR updates Webpack 4 to 5 and introduces some DX improvements.
Todos
yarn devmode with react fast-refresh (Dominik)How to reproduce: move or resize the app window and reload the page with cmd + R -> the window jumps back into the previous place
node-sass(deprecated) todart-sass(Przemysław Włodek)Screenshots
css-fast-refresh.mp4
fast-refresh-components.mp4
Testing Checklist
Review Checklist
Basics
input-output-hk/daedalus-devandinput-output-hk/daedalus-qaassigned as PR reviewersrun Chromaticlabel to PR to trigger the run)release-vNext,feature/bug/chore,WIP)yarn manage:translationsproduces no changes)yarn storybook)yarn.lockfile is updatedCode Quality
Testing
After Review