docs(docs-infra): remove deprecated `Buffer` usage from stackblitz builder (#30369)
Fixes #30364 PR Close #30369
This commit is contained in:
parent
aca339e864
commit
876cd603f1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue