mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
11 lines
290 B
JavaScript
11 lines
290 B
JavaScript
module.exports = function (content) {
|
|
let result
|
|
if (content instanceof Buffer) {
|
|
result = `Got a buffer of ${content.length} bytes`
|
|
} else {
|
|
result = `Didn't receive a buffer`
|
|
}
|
|
return Buffer.from(`module.exports = ${JSON.stringify(result)}`)
|
|
}
|
|
module.exports.raw = true
|