Skip to content

Commit fc61bcc

Browse files
committed
fix: fix unknown encoding null for buffer.toString()
1 parent 032b972 commit fc61bcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/package-locators/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function (packageConfig, mock) {
3333
buffer => {
3434
return {
3535
path: relativePath,
36-
contents: buffer.toString(ext(filePath) === '.wasm' ? 'base64' : null)
36+
contents: buffer.toString(ext(filePath) === '.wasm' ? 'base64' : undefined)
3737
};
3838
},
3939
err => {

0 commit comments

Comments
 (0)