From d91b8d5e4964c7272323f79df14f961f8a1cf888 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Wed, 17 Aug 2022 14:11:35 -0400 Subject: [PATCH] fix(lib/css-transform): support node 16 --- lib/css-transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/css-transform.js b/lib/css-transform.js index 7f6ea14..b2b3126 100644 --- a/lib/css-transform.js +++ b/lib/css-transform.js @@ -53,7 +53,7 @@ module.exports = function ({ config, entry, minify, outfile, watch }) { mkdirp.sync(path.dirname(outfile)) fs.writeFileSync(outfile, results.css) if (results.map) { - fs.writeFileSync(`${outfile}.map`, results.map) + fs.writeFileSync(`${outfile}.map`, results.map.toString()) } if (watch) { logger.log(`updated ${outfile}`)