anchor.diff:        importStatements.addAll(buildImports(moduleVar, import, true));
       }
   
  -    // Prepend import statetements.
  +    // Prepend import statements.
       statements.insertAll(0, importStatements);
   
       // Append export statements.
       statements.addAll(buildExports(exportsVar, exports));
   
  +    var moduleName = module.name!;
       var resultModule = NamedFunction(
  -        loadFunctionIdentifier(module.name),
  +        loadFunctionIdentifier(moduleName),
           js.fun("function(#) { 'use strict'; #; }", [parameters, statements]),
           true);
   
       var moduleDef = js.statement('dart_library.library(#, #, #, #, #)', [
  -      js.string(module.name, "'"),
  +      js.string(moduleName, "'"),
         LiteralNull(),
         js.commentExpression(
             'Imports', ArrayInitializer(importNames, multiline: true)),
  
positive.code:   /// compilation, in order to include all the context needed for evaluation
    /// inside it.
    ///
    /// Returns a new function that combines all statements from tranformed
    /// imports from [items] and the body of the [function].
    Fun buildFunctionWithImports(List<ModuleItem> items, Fun function) {
      clear();
  
negative.code:     if (exports.isNotEmpty) {
        var exportedProps = <Property>[];
        for (var export in exports) {
          // export * (exportedNames is null) is not emitted by the compiler, so
          // we don't handle it here.
          var names = export.exportedNames!;
          for (var name in names) {
            var alias = name.asName ?? name.name!;
            exportedProps.add(Property(js.string(alias.name), name.name!));
          }
        }
        items.add(js.comment('Exports:'));
  