Skip to content

Commit e0fd5ea

Browse files
committed
Fix a bug where names were broken through imports.
Closes #20 Closes #8
1 parent 17e29fd commit e0fd5ea

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.0-alpha.2
2+
3+
* Fix a bug where variables, functions, and mixins were broken in imported
4+
files.
5+
16
## 1.0.0-alpha.1
27

38
* Initial alpha release.

lib/src/environment.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ class Environment {
123123
/// otherwise independent.
124124
Environment global() => new Environment._(
125125
[_variables.first],
126-
new Map.fromIterable(_variables.first.keys, value: (_) => 1),
126+
new Map.fromIterable(_variables.first.keys, value: (_) => 0),
127127
[_functions.first],
128-
new Map.fromIterable(_functions.first.keys, value: (_) => 1),
128+
new Map.fromIterable(_functions.first.keys, value: (_) => 0),
129129
[_mixins.first],
130-
new Map.fromIterable(_mixins.first.keys, value: (_) => 1),
130+
new Map.fromIterable(_mixins.first.keys, value: (_) => 0),
131131
null,
132132
null);
133133

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.0.0-alpha.1
2+
version: 1.0.0-alpha.2
33
description: A Sass implementation in Dart.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/sass/dart-sass

0 commit comments

Comments
 (0)