revScriptKey function
The name the export looks a script or shader's payload up by, as rml's
revScriptKey builds it: its module path, behind # and its snapshot's key
for a library's. A host path that starts with # doubles it, so no host
script can take a library's payload.
Implementation
String revScriptKey(String modulePath, {String library = ''}) {
if (library.isNotEmpty) {
return '#$library/$modulePath';
}
return modulePath.startsWith('#') ? '#$modulePath' : modulePath;
}