docs(docs-infra): remove deprecated `Buffer` usage from stackblitz builder (#30369)

Fixes #30364

PR Close #30369
This commit is contained in:
Santosh Yadav 2019-05-11 20:21:48 +05:30 committed by Miško Hevery
parent aca339e864
commit 876cd603f1
1 changed files with 1 additions and 3 deletions

View File

@ -221,9 +221,7 @@ class StackblitzBuilder {
_encodeBase64(file) {
// read binary data
var bitmap = fs.readFileSync(file);
// convert binary data to base64 encoded string
return Buffer(bitmap).toString('base64');
return fs.readFileSync(file, { encoding: 'base64' });
}
_existsSync(filename) {