Skip to content

Commit

Permalink
upgrade to webpack v5 stable version (#602)
Browse files Browse the repository at this point in the history
* upgrade to webpack 5

* remove duplicated semi

* try 5.1.3

* 5.2.0

* switch twilio.js to request.js for watcher test

* add nodejs lib fallback

* set node = true

* set node = true

* revert
  • Loading branch information
huozhi authored Oct 31, 2020
1 parent 4456076 commit 8e1e5fc
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 244 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"vm2": "^3.6.6",
"vue": "^2.5.17",
"vue-server-renderer": "^2.5.17",
"webpack": "5.0.0-beta.28",
"webpack": "5.2.0",
"when": "^3.7.8"
}
}
3 changes: 2 additions & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ for (const unitTest of fs.readdirSync(`${__dirname}/unit`)) {
const actual = code
.trim()
// Windows support
.replace(/\r/g, "");
.replace(/\r/g, "")
.replace(/;+/g, ";");
try {
expect(actual).toBe(expected);
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion test/watcher.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ it('Should support custom watch API', async () => {
console.time('Watched Build');
});
});
});
});
Loading

0 comments on commit 8e1e5fc

Please sign in to comment.