5
5
// DO NOT EDIT. This file was generated from async_compile.dart.
6
6
// See tool/grind/synchronize.dart for details.
7
7
//
8
- // Checksum: 5178e366228bde7854df12221393857bb3022628
8
+ // Checksum: a9421a2975e79ad591ae32474cd076e1379d0e75
9
9
//
10
10
// ignore_for_file: unused_import
11
11
@@ -35,7 +35,8 @@ import 'visitor/serialize.dart';
35
35
/// Like [compile] in `lib/sass.dart` , but provides more options to support
36
36
/// the node-sass compatible API and the executable.
37
37
///
38
- /// At most one of `importCache` and `nodeImporter` may be provided at once.
38
+ /// If both `importCache` and `nodeImporter` are provided, the importers in
39
+ /// `importCache` will be evaluated before `nodeImporter` .
39
40
CompileResult compile (String path,
40
41
{Syntax ? syntax,
41
42
Logger ? logger,
@@ -65,7 +66,7 @@ CompileResult compile(String path,
65
66
(syntax == null || syntax == Syntax .forPath (path))) {
66
67
importCache ?? = ImportCache .none (logger: logger);
67
68
stylesheet = importCache.importCanonical (
68
- FilesystemImporter ( '.' ) , p.toUri (canonicalize (path)),
69
+ FilesystemImporter .cwd , p.toUri (canonicalize (path)),
69
70
originalUrl: p.toUri (path))! ;
70
71
} else {
71
72
stylesheet = Stylesheet .parse (
@@ -78,7 +79,7 @@ CompileResult compile(String path,
78
79
logger,
79
80
importCache,
80
81
nodeImporter,
81
- FilesystemImporter ( '.' ) ,
82
+ FilesystemImporter .cwd ,
82
83
functions,
83
84
style,
84
85
useSpaces,
@@ -130,7 +131,7 @@ CompileResult compileString(String source,
130
131
logger,
131
132
importCache,
132
133
nodeImporter,
133
- importer ?? (isBrowser ? NoOpImporter () : FilesystemImporter ( '.' ) ),
134
+ importer ?? (isBrowser ? NoOpImporter () : FilesystemImporter .cwd ),
134
135
functions,
135
136
style,
136
137
useSpaces,
0 commit comments