| Index: pkg/dev_compiler/lib/src/compiler/compiler.dart
|
| diff --git a/pkg/dev_compiler/lib/src/compiler/compiler.dart b/pkg/dev_compiler/lib/src/compiler/compiler.dart
|
| index 1e57ada7ac6d2c61058616381ee251ae593292bd..e789bca3278c080ed1642d2fb992e9810afb8947 100644
|
| --- a/pkg/dev_compiler/lib/src/compiler/compiler.dart
|
| +++ b/pkg/dev_compiler/lib/src/compiler/compiler.dart
|
| @@ -111,10 +111,10 @@ class ModuleCompiler {
|
| var compilingSdk = false;
|
| for (var sourcePath in unit.sources) {
|
| var sourceUri = Uri.parse(sourcePath);
|
| - if (sourceUri.scheme == 'dart') {
|
| - compilingSdk = true;
|
| - } else if (sourceUri.scheme != 'package') {
|
| + if (sourceUri.scheme == '') {
|
| sourceUri = path.toUri(path.absolute(sourcePath));
|
| + } else if (sourceUri.scheme == 'dart') {
|
| + compilingSdk = true;
|
| }
|
| Source source = context.sourceFactory.forUri2(sourceUri);
|
|
|
| @@ -503,7 +503,7 @@ Map placeSourceMap(
|
| if (match != null) return match;
|
|
|
| // Fall back to a relative path.
|
| - return path.toUri(path.relative(uri, from: dir)).toString();
|
| + return path.toUri(path.relative(path.fromUri(uri), from: dir)).toString();
|
| }
|
|
|
| for (int i = 0; i < list.length; i++) {
|
|
|