Skip to content

Commit

Permalink
chore: remove condition for node 12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 3, 2022
1 parent 9e9cd23 commit 30fe526
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions playground/ssr-deps/read-file-content/index.js
@@ -1,9 +1,6 @@
const path = require('node:path')

module.exports = async function readFileContent(filePath) {
const fs =
process.versions.node.split('.')[0] >= '14'
? require('node:fs/promises')
: require('node:fs').promises
const fs = require('node:fs/promises')
return await fs.readFile(path.resolve(filePath), 'utf-8')
}

0 comments on commit 30fe526

Please sign in to comment.