anchor.diff:    /// compilation, in order to include all the context needed for evaluation
     /// inside it.
     ///
  -  /// Returns a new function that combines all statements from tranformed
  +  /// Returns a new function that combines all statements from transformed
     /// imports from [items] and the body of the [function].
     Fun buildFunctionWithImports(List<ModuleItem> items, Fun function) {
       clear();
  
positive.code:       Identifier moduleVar, ImportDeclaration import, bool deferModules) {
      var items = <Statement>[];
  
      for (var importName in import.namedImports) {
        // import * is not emitted by the compiler, so we don't handle it here.
        assert(!importName.isStar);
        var asName = importName.asName ?? importName.name;
        var fromName = importName.name.name;
        // Load non-SDK modules on demand (i.e., deferred).
        if (deferModules && import.from.valueWithoutQuotes != dartSdkModule) {
          items.add(js.statement(
  
negative.code:           .add(js.statement('const # = require(#);', [moduleVar, import.from]));
  
        // TODO(jmesserly): optimize for the common case of a single import.
        for (var importName in import.namedImports!) {
          // import * is not emitted by the compiler, so we don't support it here.
          assert(!importName.isStar);
          var asName = importName.asName ?? importName.name;
          importStatements.add(js.statement(
              'const # = #.#', [asName, moduleVar, importName.name!.name]));
        }
      }
      statements.insertAll(0, importStatements);
  