fix(dart/transform): Fix issue with deferred in .ng_deps
Fix an issue in the linking step which prevents libraries from being imported as `deferred`.
This commit is contained in:
@ -65,7 +65,9 @@ bool _isNotDartDirective(dynamic model) => !isDartCoreUri(model.uri);
|
||||
/// associated `.ng_deps.json` file, if one exists.
|
||||
Future<Map<String, String>> _processNgImports(NgDepsModel model,
|
||||
AssetReader reader, AssetId assetId, UrlResolver resolver) async {
|
||||
final importsAndExports = new List.from(model.imports)..addAll(model.exports);
|
||||
final importsAndExports =
|
||||
new List.from(model.imports.where((i) => !i.isDeferred))
|
||||
..addAll(model.exports);
|
||||
final retVal = <String, String>{};
|
||||
final assetUri = toAssetUri(assetId);
|
||||
return Future
|
||||
|
Reference in New Issue
Block a user