diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -95,7 +95,7 @@ function compileEjs(pathname, contentBuffer) {
     let contentString = contentBuffer.toString()
     let compiledEjs = ejs.render(contentString, state.data, state.options)
 
-    return new Buffer(compiledEjs)
+    return new Buffer.from(compiledEjs)
 }
Update index.js

Updated Buffer() to Buffer.from()