Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Update runner.js to be compatible with Node14 (#69)
Browse files Browse the repository at this point in the history
In Node14, `writeFileSync` performs a validation (validateStringAfterArrayBufferView) on the data passed into it and only accepts certain data types (i.e. string, Buffer, TypedArray, or DataView).

Currently `runner.js` passes a SourceMapGenerator into writeFileSync. So it needs to be converted into an accepted type (i.e a string).
  • Loading branch information
fenghaolw authored Jun 23, 2021
1 parent a802436 commit 95fefe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function compile(rawArgs) {
result => {
fs.writeFileSync(outCssPath, result.css);
if (args.sourcemap && result.map) {
fs.writeFileSync(outCssMapPath, result.map);
fs.writeFileSync(outCssMapPath, result.map.toString());
}
return true;
},
Expand Down

0 comments on commit 95fefe3

Please sign in to comment.