Skip to content

Commit

Permalink
Update webpack, and test Webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 9, 2020
1 parent e934f1b commit 5665102
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 932 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [10.x, 12.x, 14.x, 15.x]
webpack-version: [latest, next]
webpack-version: [latest, '4']
include:
- node: 14.x
os: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"react-intl-webpack-plugin": "^0.3.0",
"rimraf": "^3.0.0",
"semver": "7.3.2",
"webpack": "^4.0.0"
"webpack": "^5.4.0"
},
"scripts": {
"clean": "rimraf lib/",
Expand Down
4 changes: 3 additions & 1 deletion test/sourcemaps.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ test.cb("should output webpack's devtoolModuleFilename option", t => {
t.not(
data
.toString()
.indexOf(JSON.stringify(`==${globalConfig.entry}==`)),
.indexOf(
JSON.stringify(`==${globalConfig.entry.replace(/\\/g, "/")}==`),
),
-1,
);

Expand Down
Loading

0 comments on commit 5665102

Please sign in to comment.