Skip to content

Commit 828788c

Browse files
committed
Fix some issues in shared-entry-concat-plugin.js and validator.js
1 parent 30f410e commit 828788c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/config/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ class Validator {
7979
module.exports = function(webpackConfig) {
8080
const validator = new Validator(webpackConfig);
8181

82-
validator.validate(webpackConfig);
82+
validator.validate();
8383
};

lib/webpack/shared-entry-concat-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getChunkFilename(compilation, chunkName) {
4141
function getAssetSource(asset) {
4242
let content = asset.source();
4343
if (Buffer.isBuffer(content)) {
44-
content = Buffer.toString('utf-8');
44+
content = content.toString('utf-8');
4545
}
4646

4747
return content;

0 commit comments

Comments
 (0)