You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using only a single [ScriptModule] without referencing a single class, the compiler still does a "return $exports;" without ever defining it. As a result 'Uncaught ReferenceError: $exports is not defined ' is thrown.
I understand that I can just change the ScriptTemplate in the AssemblyInfo, but I'm just thinking, that it would be nice to have a working default behavior :)
I'd suggest a change in the ScriptGenerator.cs [Line 199]:
else
{
_writer.Write("var $exports = null;");
}
Cheers!
- btw. Thanks SO much for Schript# :D -
The text was updated successfully, but these errors were encountered:
When using only a single [ScriptModule] without referencing a single class, the compiler still does a "return $exports;" without ever defining it. As a result 'Uncaught ReferenceError: $exports is not defined ' is thrown.
I understand that I can just change the ScriptTemplate in the AssemblyInfo, but I'm just thinking, that it would be nice to have a working default behavior :)
I'd suggest a change in the ScriptGenerator.cs [Line 199]:
Cheers!
- btw. Thanks SO much for Schript# :D -
The text was updated successfully, but these errors were encountered: