Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: lib/build/html_import_annotation_recorder.dart

Issue 981273002: fix relative @HtmlImport paths in deep folders in deployment mode (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/normalize_path.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/build/html_import_annotation_recorder.dart
diff --git a/lib/build/html_import_annotation_recorder.dart b/lib/build/html_import_annotation_recorder.dart
index 336ee7c2852601946a6686ffe962dc0c03f710b7..e517e33531194daeacba1093305c8da6b828d009 100644
--- a/lib/build/html_import_annotation_recorder.dart
+++ b/lib/build/html_import_annotation_recorder.dart
@@ -79,7 +79,7 @@ class HtmlImportAnnotationRecorder implements InitializerPlugin {
path.url.joinAll(segments.getRange(1, segments.length)),
from: path.url.dirname(path.url.join(bootstrapId.path)));
} else if (segments[1] == 'lib') {
- libPath = path.url.joinAll(segments.getRange(1, segments.length));
+ libPath = path.url.joinAll(segments.getRange(2, segments.length));
} else {
logger.error('Unable to import `${element.source.uri.path}` from '
'${bootstrapId}.');
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/normalize_path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698