Skip to content

Commit b0d6fab

Browse files
Merge pull request #218 from humanmade/upgrade-webpack-5
Migrate to Webpack 5
2 parents 7c1eb98 + ee09085 commit b0d6fab

22 files changed

+524
-496
lines changed

.eslintignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 293 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ script: "npm run lint && npm run test && npm run test-build"
33
node_js:
44
- node
55
- lts/*
6-
- 12
7-
- 10
86
branches:
97
only:
108
- main

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Webpack Helpers
22

3-
A [Human Made](https://humanmade.com) project. [![Build Status](https://travis-ci.com/humanmade/webpack-helpers.svg?branch=main)](https://travis-ci.com/humanmade/webpack-helpers)
3+
A [Human Made](https://humanmade.com) project. ![Build Status](https://app.travis-ci.com/humanmade/webpack-helpers.svg?token=xNUfWUZqcGkpUy3iiQyu&branch=main)
44

55
## Background
66

@@ -12,6 +12,16 @@ Visit [humanmade.github.io/webpack-helpers](https://humanmade.github.io/webpack-
1212

1313
Visit the [`docs/`](./docs) folder to view or modify the content used to generate this documentation site.
1414

15+
## Requirements
16+
17+
- Node.js >= 22.0.0
18+
19+
This project includes an `.nvmrc` file specifying Node.js 22. If you use nvm, you can run:
20+
21+
```bash
22+
nvm use
23+
```
24+
1525
## What's In The Box
1626

1727
### [Opinionated Configuration Presets](https://humanmade.github.io/webpack-helpers/modules/presets)

docs/changelog.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,50 @@ nav_order: 10
66

77
# Changelog
88

9-
## Next
10-
11-
- Include the `contenthash` in generated CSS filenames. [#204](https://github.com/humanmade/webpack-helpers/pull/204)
9+
## v1.0.0-alpha
10+
11+
### Added
12+
13+
- Full Webpack 5 support with modern optimizations and performance improvements
14+
- ESLint 9+ support with flat configuration format (`eslint.config.js`)
15+
- Modern `eslint-webpack-plugin` replacing deprecated `eslint-loader`
16+
- Enhanced TypeScript support for `.ts` and `.tsx` files
17+
- Updated peer dependencies to latest stable versions
18+
- Improved build performance with Webpack 5's enhanced tree shaking
19+
- Module federation capabilities support
20+
21+
### Changed
22+
23+
- **BREAKING**: Upgraded from Webpack 4 to Webpack 5
24+
- **BREAKING**: Updated ESLint support to use ESLint 9+ flat configuration format
25+
- **BREAKING**: Replaced deprecated `eslint-loader` with `eslint-webpack-plugin`
26+
- **BREAKING**: Updated minimum Node.js requirement to align with Webpack 5
27+
- Updated all bundled dependencies to latest stable versions
28+
- Improved error handling and debugging capabilities
29+
- Enhanced development server performance
30+
31+
### Removed
32+
33+
- Support for legacy `.eslintrc.*` configuration files (use `eslint.config.js` instead)
34+
- Webpack 4 compatibility and related legacy code
35+
- `eslint-loader` dependency (replaced with `eslint-webpack-plugin`)
36+
- Outdated peer dependency constraints
37+
38+
### Migration Guide
39+
40+
- Update your `package.json` to use `webpack@5`, `webpack-cli@5`, and `webpack-dev-server@5`
41+
- If using ESLint, migrate from `.eslintrc.*` files to `eslint.config.js` using the flat configuration format
42+
- Review and update any custom webpack configurations to ensure Webpack 5 compatibility
43+
- Update Node.js to a supported version if needed
44+
45+
## v0.12.0
46+
47+
* Include contenthash in generated CSS filenames by @kadamwhite in https://github.com/humanmade/webpack-helpers/pull/204
48+
* Use Just the HM Docs theme by @joeleenk in https://github.com/humanmade/webpack-helpers/pull/210
49+
* Add workflow to deploy GH pages by @joeleenk in https://github.com/humanmade/webpack-helpers/pull/212
50+
* Update to Jekyll 4, inherit from theme by @joeleenk in https://github.com/humanmade/webpack-helpers/pull/213
51+
* Update getting-started.md by @pamprn09 in https://github.com/humanmade/webpack-helpers/pull/216
52+
* Update externals for WP 6.2 and add snapshot update command by @Sephsekla in https://github.com/humanmade/webpack-helpers/pull/217
1253

1354
## v0.11.1
1455

0 commit comments

Comments
 (0)