Skip to content

Commit

Permalink
Updating the legacy loader to use the new DDC module loader API
Browse files Browse the repository at this point in the history
  • Loading branch information
Markzipan committed Nov 27, 2023
1 parent e67071c commit 11499f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dwds/lib/src/loaders/legacy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ class LegacyStrategy extends LoadStrategy {
return '''
$_baseUrlScript
var scripts = ${const JsonEncoder.withIndent(" ").convert(scripts)};
window.\$dartLoader.loadScripts(scripts);
window.\$dartLoader.loadConfig.loadScriptFn = function(loader) {
loader.addScriptsToQueue(scripts, null);
loader.loadEnqueuedModules();
};
window.\$dartLoader.loader.nextAttempt();
''';
}

Expand Down

0 comments on commit 11499f2

Please sign in to comment.