| Index: lib/devc.dart
|
| diff --git a/lib/devc.dart b/lib/devc.dart
|
| index 0628fa97a6219890d4111561f935dadee76f8a61..5e8d3aac116f132661d6bce9c07b96458f34da12 100644
|
| --- a/lib/devc.dart
|
| +++ b/lib/devc.dart
|
| @@ -136,14 +136,13 @@ class Compiler {
|
| // location. These can be external dependencies or pieces of the
|
| // dev_compiler runtime.
|
| if (_options.outputDir == null || _options.outputDart) return;
|
| - var filepath = resourceOutputPath(node.uri);
|
| + var filepath = resourceOutputPath(node.uri, _entryNode.uri);
|
| assert(filepath != null);
|
| filepath = path.join(_options.outputDir, filepath);
|
| var dir = path.dirname(filepath);
|
| new Directory(dir).createSync(recursive: true);
|
| - var text = node.source.contents.data;
|
| - new File(filepath).writeAsStringSync(text);
|
| - if (_hashing) node.cachingHash = computeHash(text);
|
| + new File.fromUri(node.source.uri).copySync(filepath);
|
| + if (_hashing) node.cachingHash = computeHashFromFile(filepath);
|
| }
|
|
|
| bool _isEntry(DartSourceNode node) {
|
|
|