mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
d4a191e9a9
Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
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
|