Skip to content

Commit cb63d8e

Browse files
fix: support webpack@5
1 parent 4e23630 commit cb63d8e

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

azure-pipelines.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
node-10-canary:
5757
node_version: ^10.13.0
5858
webpack_version: next
59-
continue_on_error: true
6059
steps:
6160
- task: NodeTool@0
6261
inputs:
@@ -78,7 +77,7 @@ jobs:
7877
displayName: 'Install dependencies'
7978
- script: npm i webpack@$(webpack_version)
8079
displayName: 'Install "webpack@$(webpack_version)"'
81-
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
80+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
8281
displayName: 'Run tests with coverage'
8382
- task: PublishTestResults@2
8483
inputs:
@@ -114,7 +113,6 @@ jobs:
114113
node-10-canary:
115114
node_version: ^10.13.0
116115
webpack_version: next
117-
continue_on_error: true
118116
steps:
119117
- task: NodeTool@0
120118
inputs:
@@ -136,7 +134,7 @@ jobs:
136134
displayName: 'Install dependencies'
137135
- script: npm i webpack@$(webpack_version)
138136
displayName: 'Install "webpack@$(webpack_version)"'
139-
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
137+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
140138
displayName: 'Run tests with coverage'
141139
- task: PublishTestResults@2
142140
inputs:
@@ -172,7 +170,6 @@ jobs:
172170
node-10-canary:
173171
node_version: ^10.13.0
174172
webpack_version: next
175-
continue_on_error: true
176173
steps:
177174
- script: 'git config --global core.autocrlf input'
178175
displayName: 'Config git core.autocrlf'
@@ -197,7 +194,7 @@ jobs:
197194
displayName: 'Install dependencies'
198195
- script: npm i webpack@$(webpack_version)
199196
displayName: 'Install "webpack@$(webpack_version)"'
200-
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
197+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
201198
displayName: 'Run tests with coverage'
202199
- task: PublishTestResults@2
203200
inputs:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"dist"
3737
],
3838
"peerDependencies": {
39-
"webpack": "^4.4.0"
39+
"webpack": "^4.4.0 || ^5.0.0"
4040
},
4141
"dependencies": {
4242
"loader-utils": "^1.1.0",

0 commit comments

Comments
 (0)