mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
Set LegacyResult.map to undefined rather than null (#1592)
This commit is contained in:
parent
54fd309079
commit
720c358c06
@ -1,3 +1,10 @@
|
||||
## 1.47.1
|
||||
|
||||
### JS API
|
||||
|
||||
* **Potentially breaking bug fix:** Match the specification of the new JS API by
|
||||
setting `LegacyResult.map` to `undefined` rather than `null`.
|
||||
|
||||
## 1.47.0
|
||||
|
||||
### JS API
|
||||
|
@ -357,7 +357,10 @@ RenderResult _newRenderResult(
|
||||
var end = DateTime.now();
|
||||
|
||||
var css = result.css;
|
||||
Uint8List? sourceMapBytes;
|
||||
// TODO(nweiz): Get rid of this cast once pulyaevskiy/node-interop#109 is
|
||||
// released.
|
||||
// ignore: prefer_void_to_null
|
||||
Uint8List? sourceMapBytes = undefined as Null;
|
||||
if (_enableSourceMaps(options)) {
|
||||
var sourceMapOption = options.sourceMap;
|
||||
var sourceMapPath =
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: sass
|
||||
version: 1.47.0
|
||||
version: 1.47.1-dev
|
||||
description: A Sass implementation in Dart.
|
||||
homepage: https://github.com/sass/dart-sass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user