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

Upgrade to webpack@5 #4894

Merged
merged 3 commits into from
Feb 25, 2022
Merged

Upgrade to webpack@5 #4894

merged 3 commits into from
Feb 25, 2022

Conversation

ixrock
Copy link
Contributor

@ixrock ixrock commented Feb 17, 2022

  • use webpack@5 and all related loaders with latest versions
  • use external webpack-dev-server proxying to lens-proxy
  • use @pmmmwh/react-refresh-webpack-plugin with react-refresh-typescript to support HMR

revived from #4725 + #4867

@ixrock ixrock added enhancement New feature or request dependencies Pull requests that update a dependency file chore labels Feb 17, 2022
@ixrock ixrock added this to the 5.4.1 milestone Feb 17, 2022
@ixrock ixrock self-assigned this Feb 17, 2022
@ixrock ixrock requested a review from a team as a code owner February 17, 2022 13:30
@ixrock ixrock marked this pull request as draft February 17, 2022 13:30
@ixrock ixrock removed enhancement New feature or request chore labels Feb 17, 2022
@ixrock ixrock marked this pull request as ready for review February 20, 2022 13:00
@ixrock
Copy link
Contributor Author

ixrock commented Feb 20, 2022

@lensapp/lens-maintainers PTAL, ready for review again.
@lensapp/lens-ide build seems to work fine (tested with LENS_BRANCH=wepback@5-upgrade make -f Makefile.ide build-ide)

Copy link
Contributor

@aleksfront aleksfront left a comment

Choose a reason for hiding this comment

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

LGTM + font issues is fixed!

import * as vars from "./src/common/vars";
import getTSLoader from "./src/common/getTSLoader";
import CircularDependencyPlugin from "circular-dependency-plugin";
import { iconsAndImagesWebpackRules } from "./webpack.renderer";

const configs: { (): webpack.Configuration }[] = [];

configs.push((): webpack.Configuration => {
console.info("WEBPACK:main", vars);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please fix this and the "WEBPACK:renderer" one too, just change it to be { ...vars }

@Nokel81 Nokel81 modified the milestones: 5.4.1, 5.5.0 Feb 25, 2022
@Nokel81
Copy link
Collaborator

Nokel81 commented Feb 25, 2022

I'll make a follow up PR to fix that minor issue.

@Nokel81 Nokel81 merged commit ff55719 into master Feb 25, 2022
@Nokel81 Nokel81 deleted the wepback@5-upgrade branch February 25, 2022 15:20
DmitriyNoa pushed a commit that referenced this pull request Mar 3, 2022
@Nokel81 Nokel81 mentioned this pull request May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants