bazelbuild / rules_postcss

PostCSS rules for Bazel
Apache License 2.0
10 stars 13 forks source link

Update runner.js to be compatible with Node14 #69

Closed fenghaolw closed 3 years ago

fenghaolw commented 3 years ago

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).

This is a change that happened in google internal and should be upstreamed.