Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jathak committed Dec 18, 2024
1 parent a5a8d25 commit 6f703f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/migrator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ abstract class Migrator extends Command<Map<Uri, String>> {
var importer = FilesystemImporter('.');
var importCache = ImportCache(importers: [
NodeModulesImporter(),
if ((globalResults!['pkg-importer'] as List<String>).contains('node'))
NodePackageImporter('.')
for (var item in globalResults!['pkg-importer'] as List<String>)
if (item == 'node') NodePackageImporter('.')
], loadPaths: globalResults!['load-path']);

var entrypoints = [
Expand Down

0 comments on commit 6f703f5

Please sign in to comment.