Skip to content

Commit 904740d

Browse files
authored
Upgrade to Webpack 5 (#655)
* Update webpack * Remove @types/webpack * Remove task instance from current task meta * Add task name to current task meta * Improve string typings for task name * Disable tests for Astroturf * Use temporary types for the most packages which uses @types/webpack before * Remove `any` types due to this change * Update `webpack-assets-manifest` to `v5` branch with Webpack 5 support * Update `html-webpack-plugin` to 5.0.0-alpha version with Webpack 5 support * Fix lint-staged config for prettier * Disable caching pnpm store on CI * Update Webpack dependency in all packages * Regenerate lock file (due to problem with webpack types)
1 parent 7bba4f7 commit 904740d

File tree

45 files changed

+1080
-1529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1080
-1529
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ build
22
node_modules
33
examples/*
44
!examples/__tests__
5+
*.d.ts

.github/workflows/ci-tests.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ jobs:
1010
- uses: pnpm/[email protected]
1111
with:
1212
version: 5.13.1
13-
- name: Retrieve content-addressable store from cache
14-
uses: actions/cache@v2
15-
with:
16-
path: /home/runner/.pnpm-store/v3
17-
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }}
18-
restore-keys: |
19-
${{ runner.os }}-node-
2013
- run: pnpm i
2114
- run: pnpm build
2215
- run: pnpm test

examples/__tests__/react-astroturf.test.ts

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

examples/react-16/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@zero-scripts/plugin-webpack-eslint": "workspace:*",
1818
"@zero-scripts/plugin-webpack-react": "workspace:*",
1919
"@zero-scripts/plugin-webpack-spa": "workspace:*",
20-
"webpack": "^4.44.2"
20+
"webpack": "^5.10.0"
2121
},
2222
"zero-scripts": {}
2323
}

examples/react-astroturf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@zero-scripts/plugin-webpack-eslint": "workspace:*",
1919
"@zero-scripts/plugin-webpack-react": "workspace:*",
2020
"@zero-scripts/plugin-webpack-spa": "workspace:*",
21-
"webpack": "^4.44.2"
21+
"webpack": "^5.10.0"
2222
},
2323
"zero-scripts": {
2424
"plugin-webpack-babel": {

examples/react-fast-refresh/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@zero-scripts/plugin-webpack-eslint": "workspace:*",
1818
"@zero-scripts/plugin-webpack-react": "workspace:*",
1919
"@zero-scripts/plugin-webpack-spa": "workspace:*",
20-
"webpack": "^4.44.2"
20+
"webpack": "^5.10.0"
2121
},
2222
"zero-scripts": {
2323
"plugin-webpack-react": {

examples/react-less/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@zero-scripts/plugin-webpack-react": "workspace:*",
1919
"@zero-scripts/plugin-webpack-spa": "workspace:*",
2020
"less": "3.12.2",
21-
"webpack": "^4.44.2"
21+
"webpack": "^5.10.0"
2222
},
2323
"zero-scripts": {}
2424
}

examples/react-sass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@zero-scripts/plugin-webpack-sass": "workspace:*",
1919
"@zero-scripts/plugin-webpack-spa": "workspace:*",
2020
"sass": "1.29.0",
21-
"webpack": "^4.44.2"
21+
"webpack": "^5.10.0"
2222
},
2323
"zero-scripts": {}
2424
}

examples/react-svg-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@zero-scripts/plugin-webpack-eslint": "workspace:*",
1919
"@zero-scripts/plugin-webpack-react": "workspace:*",
2020
"@zero-scripts/plugin-webpack-spa": "workspace:*",
21-
"webpack": "^4.44.2"
21+
"webpack": "^5.10.0"
2222
},
2323
"zero-scripts": {
2424
"plugin-webpack-react": {

examples/react-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@zero-scripts/plugin-webpack-spa": "workspace:*",
2121
"fork-ts-checker-webpack-plugin": "5.1.0",
2222
"typescript": "4.1.2",
23-
"webpack": "^4.44.2"
23+
"webpack": "^5.10.0"
2424
},
2525
"zero-scripts": {}
2626
}

0 commit comments

Comments
 (0)