Index: utils/import_mapper/passthrough_hook.dart |
diff --git a/utils/import_mapper/passthrough_hook.dart b/utils/import_mapper/passthrough_hook.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..46985cfd072107f2aae1e9e03a388e0be859f0e6 |
--- /dev/null |
+++ b/utils/import_mapper/passthrough_hook.dart |
@@ -0,0 +1,15 @@ |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+/** |
+ * A trivial identity import hook that generates an import map that maps all |
+ * imports to their original import string. |
+ */ |
+#library('passthrough_hook'); |
+ |
+#import('import_mapper.dart'); |
+ |
+void main() { |
+ generateImportMap((context, name) => name); |
+} |