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 #208

Merged
merged 23 commits into from
Apr 20, 2021
Merged

upgrade to webpack 5 #208

merged 23 commits into from
Apr 20, 2021

Conversation

thomaschaaf
Copy link
Contributor

@thomaschaaf thomaschaaf commented Mar 4, 2021

This fix also includes some other PRs work.

Breaking:
node10 was removed and instead of webpack4 we are now using webpack 5.

fixes #195

@@ -288,17 +290,6 @@ function plugins() {
plugins.push(new ForkTsCheckerWebpackPlugin(forkTsCheckerWebpackOptions));
}

if (ENABLE_CACHING) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not needed anymore as webpack5 has caching built in

@@ -1,10 +1,6 @@
import { hi } from "@my-org/some-lib/index";
import { merhaba } from "./tsx/import";

export const typescript4Inject = <A extends []>(
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 caused an eslint error and I did not understand what it did as the function is never called

@thomaschaaf
Copy link
Contributor Author

@jayair could you review this please :)

@jayair
Copy link
Member

jayair commented Mar 9, 2021

Thanks @thomaschaaf. I'll take a look this weekend!

@jayair jayair added the enhancement New feature or request label Mar 14, 2021
@jayair
Copy link
Member

jayair commented Mar 14, 2021

@thomaschaaf This is awesome. Thank you.

Are there any breaking changes in this? Do you think this needs a canary release to test or is it stable enough that we could release it live?

@joewestcott
Copy link

@thomaschaaf I think you should use npmv7 to work with the package-lock.json file in this repo, your PRs currently downgrade to v1.

@thomaschaaf
Copy link
Contributor Author

thomaschaaf commented Mar 23, 2021

@jayair no known breaking changes. I have alos just upgraded serverless-webpack - which should improve deployment speed. If you want I can test the canary release.

@joewestcott I'm not using node 15 yet with which npm v7 will be published. I personally think it does not make sense to use npm v7 before node 16 is released. It will result in the package-lock.json effectively being ignored/non-existent for many developers. (travis is also using npm v6 still)

@thomaschaaf
Copy link
Contributor Author

@jayair can we get this packaged?

@jayair
Copy link
Member

jayair commented Mar 29, 2021

@thomaschaaf I just need a little bit of time to go through and test all of this. It's a slightly big change. I'll get to it next weekend.

@jayair
Copy link
Member

jayair commented Apr 10, 2021

@thomaschaaf So I had a look at all your PRs. Thanks for all the hard work!

I think it make sense that we put them all together cut a 5.0.0 beta release to test. Or 4.3. if there are no breaking changes. It seems like they can all go together right?

#211
#214

@thomaschaaf
Copy link
Contributor Author

thomaschaaf commented Apr 11, 2021

Yey! Yes it all belongs together.

I think making a major version for webpack seems like a good decision. Maybe also drop old node versions.

@jayair
Copy link
Member

jayair commented Apr 14, 2021

Yeah agreed. If you can merge it into one PR then I'll cut a beta release.

Thank you!

@thomaschaaf
Copy link
Contributor Author

@jayair ready to make a new Version 🙌

@jayair jayair changed the base branch from master to beta April 20, 2021 01:07
@jayair jayair merged commit fb7ca92 into AnomalyInnovations:beta Apr 20, 2021
@jayair jayair mentioned this pull request Apr 20, 2021
@jayair
Copy link
Member

jayair commented Apr 20, 2021

Thank you! Pushed a new canary release https://github.com/AnomalyInnovations/serverless-bundle/releases/tag/v5.0.0-beta.0

Starting a new thread to help test it and collect feedback.

#229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to webpack v5
3 participants