Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/config/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ class Validator {
module.exports = function(webpackConfig) {
const validator = new Validator(webpackConfig);

validator.validate(webpackConfig);
validator.validate();
};
2 changes: 1 addition & 1 deletion lib/webpack/shared-entry-concat-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function getChunkFilename(compilation, chunkName) {
function getAssetSource(asset) {
let content = asset.source();
if (Buffer.isBuffer(content)) {
content = Buffer.toString('utf-8');
content = content.toString('utf-8');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked before somehow? Or, maybe being a Buffer is some edge-case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, most of the time it probably doesn't go into that if (not sure what triggers it).

However if it did the build would not fail (since Buffer.toString('utf-8') does return a JS string) but the generated file wouldn't work either... I don't think I've seen someone post an issue that could be related to that though.

}

return content;
Expand Down